POST /v1/customers/deposit to add credits to a user.
Minimal Example
Add a Wallet Category
Usecredit_type when you want this deposit to show up under a specific wallet category in the console and balance breakdown.
credit_type, for example: default, promo_campaign_2026, membership_gold.
Add a Validity Period
Usestarts_at and expires_at when these credits should only be usable during a specific time window.
starts_at the credits are inactive. After expires_at they are no longer counted.
Parameter Reference
Your internal ID for the customer. If the customer does not exist, it is created automatically.
Number of credits to add. Must be greater than 0.
Wallet category for this deposit. Use any string, such as
default, promo_campaign_2026, or membership_gold. Defaults to default.ISO 8601 datetime. Before this time, the deposited credits do not count toward the available balance.
ISO 8601 datetime. After this time, the deposited credits no longer count toward the available balance. Must be later than
starts_at.Prevents duplicate deposits. Repeating a request with the same key returns the original result with
is_idempotent_replay: true and does not create a second deposit.Display name for the customer. Created or updated on deposit.
Email address for the customer. Created or updated on deposit.
Arbitrary JSON attached to the customer record.
A human-readable note for this deposit.
Deposit Response
The customer ID passed in the request.
The underlying credit account created by this deposit.
Wallet category used for this deposit.
Total amount on this credit account record. Not the customer’s overall balance.
Amount added by this specific request.
Start time of this credit account’s validity window.
Expiry time of this credit account’s validity window.
The ledger record ID for this deposit.
true when the response was returned from a previous request with the same idempotency_key.Query Balance and Wallet Categories
Sum of all active credit accounts.
Credits already consumed across all accounts.
Credits currently reserved by in-progress staged deduction flows.
Credits available to spend:
total - used - frozen.Per-account balance breakdown. Each entry corresponds to one deposit’s credit account, identified by its
credit_type.Error Format
All API errors return an HTTP error status and a structurederror object:
Human-readable description of the error.
High-level error category, such as
bad_request.Stable machine-readable error code for programmatic handling.