Skip to Content
Billing

Start a checkout

Owner only. Returns an Atom Payments checkout URL for a paid Plan, or, with an active Subscription, changes it in place (prorated) and returns `checkout_url: null`. The Plan changes only when the payment webhook arrives. 409 billed_by_partner on a partner Network.

POST
/accounts/{account_id}/checkout

Owner only. Returns an Atom Payments checkout URL for a paid Plan, or, with an active Subscription, changes it in place (prorated) and returns checkout_url: null. The Plan changes only when the payment webhook arrives. 409 billed_by_partner on a partner Network.

Authorization

headerAuthorizationBearer <token>

qlt_… Access token (kind api)

Path Parameters

account_id*string

Request Body

application/json
  1. body
plan*string
Value in"unlimited""unlimited_1tb""unlimited_5tb"
interval*string
Value in"month""year"

Response Body

OK

application/json
  1. response
checkout_url*string|null
subscription?
Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/accounts/string/checkout' \  -H 'Content-Type: application/json' \  -d '{  "plan": "unlimited",  "interval": "month"}'
Example Response
{  "checkout_url": "string",  "subscription": {    "plan": "free",    "interval": "month",    "status": "free",    "current_period_start": "2019-08-24T14:15:22Z",    "current_period_end": "2019-08-24T14:15:22Z",    "cancel_at_period_end": true  }}