Returns a Stripe checkout URL for subscribing to a plan
POST
/billing/api/v1/subscriptions/organizations/{org_id}/checkout
Path Parameters
org_idstringrequired
Organization ID
Request Body
Subscribe request
Required
end_trialboolean
plan_idstringrequired
price_idstringrequired
Example:
{
"end_trial": true,
"plan_id": "string",
"price_id": "string"
}Responses
200
OK
Response Fields:
applied(boolean)checkout_url(string)
Example:
{
"applied": true,
"checkout_url": "string"
}400
Bad Request
Example:
{
"key": "value"
}404
Not Found
Example:
{
"key": "value"
}