Skip to main content
POST
Buy credit

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Ankra-Organisation-Id
string<uuid>

Act in another organisation the token's owner is an active member of; defaults to the token's own organisation.

Body

application/json
amount_cents
integer
required
success_url
string
cancel_url
string
promo_code
string

Response

The Checkout session to open

top_up_id
string<uuid>
checkout_url
string
amount_cents
integer
promo_code
string | null
bonus_micros
integer