Skip to content

Get a checkout link for a paid plan

POST
/v1/billing/checkout
curl --request POST \
--url https://api.ringingbytes.com/v1/billing/checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan": "payg" }'

A hosted checkout link for an organization without a plan. The same link is emailed to the organization’s owners; only a person can pay. Poll GET /v1/account for the outcome. Needs billing:checkout. At most 5 links an hour per organization (429). An organization that already has a plan gets 409 SUBSCRIPTION_EXISTS: agents cannot change or cancel plans.

Media typeapplication/json
object
plan
required
string
Allowed values: payg pro business helpdesk_starter helpdesk_growth helpdesk_scale

OK

Media typeapplication/json
object
url
required

Hosted checkout. Give it to a person: only a person can pay.

string
expires_at
required
Any of:
string
plan
required
string
Allowed values: payg pro business helpdesk_starter helpdesk_growth helpdesk_scale
emailed_to_owners
required

True only when the email service accepted the link for every owner. When false, give the link to your person yourself: nobody may have received it.

boolean
owner_emails
required

How the emails to the owners went. Failed emails are not retried.

object
owners
required

The organization’s owners.

integer
>= -9007199254740991 <= 9007199254740991
sent
required

Emails the email service accepted (one per owner). Less than owners when some failed or the server sends no email.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"plan": "payg"
}