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
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.
header
AuthorizationBearer <token>qlt_… Access token (kind api)
account_id*stringapplication/json- body
plan*stringValue in
"unlimited""unlimited_1tb""unlimited_5tb"interval*stringValue in
"month""year"OK
application/json- response
checkout_url*string|nullsubscription?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 }}