Skip to main content
POST
Only for programs where ZBD tracks earnings. If you track earnings yourself, this returns 403 feature_not_enabled.
Adds value to a user’s balance, for example a reward or currency they bought through a platform store. Nothing is drawn from your funding when you credit, only when the user cashes out.

Configuration

Header Parameters

string
required
Your ZBD API key.
string
required
A UUID you generate for this credit. Retrying with the same key never credits the user twice.
string
Content Type

Body Parameters

string
required
The ZBD user ID returned by Create a User.
string
required
Why the user is being credited: reward, purchased_token (currency they bought through a platform store), or adjustment. The type decides what the user can do with the value later, including whether they can cash it out. Your ZBD contact confirms which types your program can use.
integer
required
Amount in the currency’s smallest unit.
string
required
The currency code, for example USD or a currency you defined.
string
Your own ID for this credit, returned in the transaction history.
string
Shown in the user’s history.
string
The project the credit belongs to.
To take a credit back, call Debit a User with its transaction_id.

Errors