Skip to Content
Payrudder
Credit holds

Consume what the work used and give the rest back

Each line becomes a consume row of the ledger (one per lot it took from) with the line's `reason`, its `units` and the hold's id. The lines may add up to at most the hold (409 `billing.credits.exceeds_hold`); what they leave is given back. No lines release the whole hold. A repeat of a commit that adds up to the same returns the first result with `replayed: true`. A released or expired hold cannot be committed (409 `billing.credits.hold_settled`, `billing.credits.hold_expired`).

Loading the operation...