Ormuz Credit ManagementHelperStable

Consume credit exposure (Ormuz Credit Management)

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

Vue d’ensemble

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

Exemple

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

Parameters 8

companyRequisCompany
Buyer company whose credit limit or exposure is read or modified.
sourceOptionnelInvoice
Business object — invoice, order, or checkout — materializing credit consumption when available.
currencyOptionnelcurrency code
ISO 4217 currency of the relevant limit or exposure.
amount_excluding_taxOptionnelamount
Amount excluding tax of the credit movement, in minor monetary units.
amount_including_taxOptionnelamount
Amount including tax of the credit movement, in minor monetary units.
authorization_movementOptionnelcommon.credit_exposure_movement
Optional credit_granted movement from the same exposure. This link adds transactional traceability without changing exposure arithmetic.
reasonOptionnelstring
Business reason explaining why this credit movement is recorded.
metadataOptionnelmetadata
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.