Skip to main content
POST
/
v1
/
billing
/
checkout
Create Checkout
curl --request POST \
  --url https://api.example.com/v1/billing/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tier": "<string>"
}
'
{
  "checkout_url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Initiate a subscription upgrade.

tier
string
required

Target subscription tier: 'plus' ($20/mo, 2000 ops) or 'pro' ($99/mo, 10000 ops).

Response

Successful Response

Checkout session for subscription upgrade.

checkout_url
string
required

URL to redirect the user to for payment. Opens the hosted checkout page.