Adjust participant balance
Manually credit or debit a participant’s balance.
CREDIT: adds funds. No upper boundDEBIT: removes funds. Fails if the participant does not have sufficientavailablebalance, unlessallow_negativeistrue(used for clawbacks)
Authorizations
API key passed in the X-API-Key header.
Headers
Idempotency key (1-255 printable ASCII chars). Equivalent to the idempotency_key body field; if both are provided they must match. Replays with the same key and identical parameters return the original journal_entry_id; the same key with different parameters returns 409 idempotency_conflict.
255Path Parameters
Participant ID
Body
Adjustment details
Adjustment amount (must be positive)
1"100.00"
Asset to adjust
"550e8400-e29b-41d4-a716-446655440001"
Reason for this adjustment
1 - 500"Customer service credit"
Program this adjustment belongs to
"550e8400-e29b-41d4-a716-446655440000"
Whether to credit or debit
CREDIT, DEBIT "CREDIT"
DEBIT only. When true, allows this adjustment to overdraw and set a negative balance.
false
Balance bucket to adjust. Defaults to AVAILABLE
AVAILABLE, HELD "AVAILABLE"
Client-provided key to dedupe retries. May also be supplied via the Idempotency-Key HTTP header; when both are present they must match. Identical adjusts with the same key return the original journal_entry_id; a reused key with different payload returns 409 idempotency_conflict.
1 - 255"adjust-order-123"
Response
Adjustment applied
Amount adjusted
"100.00"
Asset ID
"550e8400-e29b-41d4-a716-446655440001"
Balance after the adjustment
Balance bucket that was adjusted
"AVAILABLE"
Ledger journal entry created by this adjustment
"550e8400-e29b-41d4-a716-446655440000"
Confirmation message
"Balance adjusted successfully"
Program ID
"550e8400-e29b-41d4-a716-446655440000"
Whether the adjustment was a credit or debit
"CREDIT"