Skip to main content
POST
Takes value from the user’s balance and pays it to you, for example for a cosmetic, a battle pass, or an entry fee. Your backend makes the call, since your game decides what’s being bought and what it costs. The full amount goes to you, so there are no recipients to send.

Configuration

Header Parameters

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

Body Parameters

string
required
The user making the purchase.
string
required
The currency code, for example GEMS.
integer
required
The price, in the currency’s smallest unit.
string
Your own ID for the purchase, such as an order ID.
string
Shown in the user’s history.
string
The project the purchase belongs to.
Returns the same fields as Get a Transaction.

Errors