Error
A valid request URL is required to generate request examples{
"subscription": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plan": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"currency": "<string>",
"isActive": true,
"entitlements": {},
"monthlyPrice": 123,
"sortOrder": 123
},
"status": "active",
"provider": "<string>",
"paymentMethodType": "<string>",
"autoRenew": true,
"billingInterval": "monthly",
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"cancelAtPeriodEnd": true,
"externalCustomerId": "<string>",
"externalSubscriptionId": "<string>"
},
"checkoutSession": {
"sessionId": "<string>",
"provider": "<string>",
"mode": "<string>",
"subscriptionStatus": "<string>",
"provisioned": true,
"paymentMode": "recurring_card",
"checkoutUrl": "<string>",
"externalCustomerId": "<string>",
"externalSubscriptionId": "<string>"
}
}API Reference
Upgrade or switch the organisation subscription plan through the billing provider abstraction.
POST
/
billing
/
checkout
Error
A valid request URL is required to generate request examples{
"subscription": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plan": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"currency": "<string>",
"isActive": true,
"entitlements": {},
"monthlyPrice": 123,
"sortOrder": 123
},
"status": "active",
"provider": "<string>",
"paymentMethodType": "<string>",
"autoRenew": true,
"billingInterval": "monthly",
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"cancelAtPeriodEnd": true,
"externalCustomerId": "<string>",
"externalSubscriptionId": "<string>"
},
"checkoutSession": {
"sessionId": "<string>",
"provider": "<string>",
"mode": "<string>",
"subscriptionStatus": "<string>",
"provisioned": true,
"paymentMode": "recurring_card",
"checkoutUrl": "<string>",
"externalCustomerId": "<string>",
"externalSubscriptionId": "<string>"
}
}Headers
Body
application/json