Skip to main content
POST
Buy credits with the saved card or bank account

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
amount_cents
integer
required

What to pay

Required range: x >= 1
expected_credit_cents
integer
required

The credits the page quoted

Required range: x >= 1
purchase_key
string<uuid>
required

Caller-supplied UUID naming this purchase

terms_version
string
required

The purchase terms version shown before Buy.

Response

A repeat of the purchase key; the first purchase

credit_purchase
object
required

One purchase of credits: what was paid, what it granted, and where its money stands. succeeded means the credits were granted; processing means the payment is still settling.

balance_cents
integer
required

The credit balance after the purchase

duplicate
boolean
required

Whether this returns a purchase already made with the same key.