true keeps access until the period ends. Defaults to false (immediate).
Your own reference number.
/api/public/v1/billing/cancelEnd a plan now, or when the paid period runs out.
Identify the member with the `x-auth-user` header (their pagename or username) alongside your API key — this is whose subscription is canceled. The company owner's plan cannot be canceled via the API; manage it from the company billing settings.
at_period_endbooleanoptionaltrue keeps access until the period ends. Defaults to false (immediate).
referencestringoptionalYour own reference number.
| Field | Type | Description |
|---|---|---|
| at_period_endopt | boolean | true keeps access until the period ends. Defaults to false (immediate). |
| referenceopt | string | Your own reference number. |
{ "success": true, "pagename": "johndoe", "status": "canceled", "endsAt": "2026-02-05T10:00:00.000Z" }{ "success": false, "error": "The company owner's plan cannot be canceled via the API; manage it from the company billing settings." }/api/public/v1/billing/canceltrue keeps access until the period ends. Defaults to false (immediate).
Your own reference number.