Skip to main content
GET
A virtual currency has two rates, one for each direction. ZBD sets them with you, and you read them here. Purchases made off ZBD, such as through Steam or Meta, don’t use the purchase rate. You decide what the purchase is worth and credit the user that amount. Rates only move forward. A new rate takes over from the previous one instead of replacing it, so the history stays readable. Ask your ZBD contact to change a rate.

Configuration

Header Parameters

string
required
Your ZBD API key.

Path Parameters

string
required
The virtual currency code, for example GEMS.

Query Parameters

boolean
Only the rates in force now, without earlier ones.

Response

string
purchase or redemption.
string
The currency being converted.
string
The currency it converts to.
string
How many units of to_currency one unit of from_currency converts to. It’s a string so the precision survives, so parse it as a decimal, not a float.
boolean
Whether this is the rate in force now.
string
When the rate took effect, as an ISO 8601 timestamp.

Errors