Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Headers

Idempotency-Key
string
required

Required. A unique value per request, 8 to 255 visible characters. Reuse it only to retry the same request. A request that finished, with a success or a refusal such as a declined card, answers a retry with its first answer and idempotentReplay: true, and nothing runs or is charged again: once the card is fixed, try again with a new key. After a 503 that says nothing was changed, the same key runs the request again. After a 500, or any other answer whose outcome is not known, the same key answers 409 IDEMPOTENCY_OUTCOME_UNKNOWN: read the wallet back, then use a new key.

Required string length: 8 - 255

Body

application/json

The plan to buy.

planCode
enum<string>
required

The plan to buy.

Available options:
BRONZE,
SILVER,
GOLD,
DIAMOND
{key}
any

Response

Paid: the minutes are in your wallet.

success
boolean
required
Example:

true

data
object
required
idempotentReplay
boolean

Present, and true, when this answer is a replay of an earlier request with the same Idempotency-Key.