Ormuz Credit ManagementHelperStable

Consume credit exposure (Ormuz Credit Management)

Records a `credit_consumed` movement when a business fact actually uses part of granted exposure.

Overview

Records a credit_consumed movement when a business fact actually uses part of granted exposure.

Example

When issuing an invoice from a credit sale, record that the corresponding amount is now consumed.

Parameters 8

companyRequiredCompany
Buyer company whose credit limit or exposure is read or modified.
sourceOptionalInvoice
Business object — invoice, order, or checkout — materializing credit consumption when available.
currencyOptionalcurrency code
ISO 4217 currency of the relevant limit or exposure.
amount_excluding_taxOptionalamount
Amount excluding tax of the credit movement, in minor monetary units.
amount_including_taxOptionalamount
Amount including tax of the credit movement, in minor monetary units.
authorization_movementOptionalcommon.credit_exposure_movement
Optional credit_granted movement from the same exposure. This link adds transactional traceability without changing exposure arithmetic.
reasonOptionalstring
Business reason explaining why this credit movement is recorded.
metadataOptionalmetadata
Free-form metadata associated with the limit or movement according to the common.metadata contract.

Outputs 1

credit_exposureCredit exposure
Current credit exposure after reading or applying the requested movement.

Behavior

Consumption increases net exposure consumption and may be linked to the source business fact and original authorization movement. Factual overconsumption is recorded and becomes observable rather than automatically rejected.

Key point The credit ledger retains facts as movements. A correction produces a new explicit movement instead of silently rewriting a historical fact.

Limits and responsibilities

  • This node records a fact: it may record consumption above authorization when business reality requires it.
  • Overconsumption must be handled as an observable anomaly by your process, not hidden by rewriting history.
  • The link to an authorization movement is optional and does not automatically partition exposure among several grants.