Buyer credit management

Combine several limit sources, calculate capacity actually available for a sale, then trace every grant, consumption, reversal, release, or settlement in the company's credit exposure.

Business objective

Credit management is not just one “limit” number. Ormuz separates the limit policy, the effective limit calculated at a point in time, the exposure already committed, and the capacity decision made for a specific operation.

Policy decides, the ledger records

The process decides when a credit request should be approved. The credit_exposure then records actual movements of granted, consumed, released, or settled capacity so the history remains explicit.

Four concepts not to confuse

NotionQuestionObject / output
Credit limitWhich limits are declared for this company, this currency, and this tax basis?credit_limit
Effective limitHow should still-applicable limits be combined today?effective_credit_limit
ExposureWhat capacity has already been granted, consumed, released, or settled?credit_exposure
Capacity checkDoes the current request fit within available capacity?credit_availability_check

Credit journey

Active limits
Effective limit
Capacity check
Grant
Consume
Settle / release / reverse
Current exposure

The capacity decision precedes the grant. Subsequent movements evolve exposure without rewriting the history of earlier movements.

For a simple journey, credit.evaluate_credit_availability combines effective-limit resolution, exposure reading, and the approved/rejected decision. Separate nodes remain useful when your process needs to inspect or alter each step.

1. Define and resolve limits

Create applicable policies with credit.add_credit_limit. A limit carries a currency, an excluding_tax or including_tax basis, validity period, and source — for example the merchant, a credit insurer, or a BNPL provider.

credit.fetch_effective_credit_limit first filters active limits valid on the requested date, then applies the selected strategy:

StrategyEffectTypical use
maximumKeeps the highest applicable limit.Several alternative sources, one retained capacity.
minimumKeeps the most conservative.Policy where the most restrictive source wins.
cumulativeAdds the applicable limits.Explicitly cumulative complementary capacities.
Credit limits in this test account show the company, authorized amount, source, and validity.
Credit limits in this test account show the company, authorized amount, source, and validity. Enlarge

2. Evaluate available capacity

credit.check_credit_availability compares an effective limit, current exposure, and requested amount. It routes to approved or rejected and produces an explicit check object that you can retain in process context.

If the result is favorable and business policy genuinely authorizes the operation, use credit.grant_credit. The grant creates a movement credit_granted and returns its movement identifier, which can then be linked to consumption, release, or settlement movements for better traceability.

A favorable capacity check is not a universal decision

It answers one request, point in time, currency, and basis. When commercial conditions change, recalculating capacity is preferable to blindly reusing an old result.

3. Evolve exposure

Business factNodeMovement
A sale consumes creditcredit.consume_credit_exposurecredit_consumed
A consumption must be reversedcredit.reverse_credit_consumptioncredit_consumption_reversed
An unused authorization is releasedcredit.release_credit_exposurecredit_released
A covered receivable is settledcredit.settle_credit_exposurecredit_settled
Remaining exposure is canceledcredit.cancel_credit_exposurecredit_cancelled

Movements are appended; they do not rewrite previous facts. A reversal references a precise movement credit_consumed and may be partial, but cumulative reversals cannot exceed the original consumption.

Overconsumption: record before correcting

Consumption from a reliable business fact may exceed prior authorization. Ormuz records the movement instead of rejecting the fact, then makes the anomaly observable through credit_exposure.overconsumed when the threshold is crossed.

Do not hide a real divergence

The ledger represents what happened. Overconsumption must trigger your risk-handling process; it must not be corrected by artificially reducing consumption or rewriting past authorization.

Checklist

  • Keep excluding-tax/including-tax basis and currency consistent across limits, capacity, and exposure.
  • Explicitly choose the limit-combination strategy.
  • Recalculate capacity at the time of an important decision.
  • Create a movement credit_granted only after a favorable business decision.
  • Consume credit from the business fact that actually materializes the commitment.
  • Reference the authorization movement when this transactional traceability is known.
  • Use a reversal instead of modifying past consumption.
  • Treat credit_exposure.overconsumed as an observable business incident.