Sazabi
APIBilling

Change the plan

POST
/billing/plan-change

Apply a plan upgrade or schedule a downgrade. Requires a user credential with billing:manage.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/billing/plan-change" \  -H "Content-Type: application/json" \  -d '{    "planSlug": "string"  }'
{  "billingSubscriptionChangeId": "string",  "billingSubscriptionId": "string",  "status": "string",  "type": "string",  "effectiveAt": "2019-08-24T14:15:22Z",  "invoiceId": "string",  "creditDeficitAmount": "string",  "creditDeficitChargeAmount": "string",  "creditTopUpAmount": "string",  "immediateChargeAmount": "string",  "subscriptionChargeAmount": "string",  "proratedCreditGrantAmount": "string"}