Radicas Docs
API referenceGenerated

Set Addon

POST
/billing/addon

Set the recurring event add-on quantity (+N events/month each) on the existing Stripe subscription — prorated line-item change; 0 removes it. Requires a converted (Stripe) subscription; the monthly allowance is credited on each invoice.paid.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/billing/addon" \  -H "Content-Type: application/json" \  -d '{    "quantity": 0  }'
{  "status": "string",  "plan_id": "string",  "current_period_end": "2019-08-24T14:15:22Z",  "trial": true,  "active": true,  "access_override": "string",  "credit_events": 0,  "features": [    "string"  ],  "overage_opt_in": true,  "addon_quantity": 0}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}