The capture operation immediately consumes credits for a completed action.
Behavior
- Credits are directly moved from usable → consumed.
- No intermediate hold or reservation is created.
Usage
Ideal for simple, immediate consumption scenarios where there is no need for multi-step confirmation or concurrency control.
The response returns both the created ledger_operation object and the updated ledger_account_balance.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
A unique, immutable identifier for the subscription against which credit grants are tracked.
The number of credits to immediately consume from the usable balance.
Pass this value as a decimal string. Maximum supported value: 9999999999999999999999999.9999999999 (up to 25 digits before the decimal and up to 10 digits after).
Behavior
Credits are directly moved from usable → consumed as part of this operation.
Constraints
- Must be a positive value.
- Evaluated against the current usable balance at the time of processing.
Example
If amount = "50", then 50 credits are immediately deducted from the usable balance and recorded as consumed.
Unix timestamp (in seconds) representing when the business operation occurred in the upstream system.
Usage
Used for period attribution, grace-period eligibility, and reporting accuracy.
Note
Late or out-of-order submissions appear in arrival order, while attribution and eligibility logic rely on ledger_operation_timestamp.