Use a plan_id from List plans, e.g. starter.
Defaults to monthly.
When the plan starts. Defaults to now.
Your own order or invoice number, stored on the history record.
/api/public/v1/billing/subscriptionRecord the plan someone bought in your own payment system.
Only available when the company turned on Sign Up / Payment Link in White Label settings. Identify the member with the `x-auth-user` header (their pagename or username) alongside your API key — this is whose subscription is set. The company owner's plan cannot be changed via the API; manage it from the company billing settings. Call List plans to see which plan_id values your company offers.
plan_idstringrequiredUse a plan_id from List plans, e.g. starter.
billing_modemonthly | annualoptionalDefaults to monthly.
effective_fromstring (ISO 8601)optionalWhen the plan starts. Defaults to now.
referencestringoptionalYour own order or invoice number, stored on the history record.
| Field | Type | Description |
|---|---|---|
| plan_idreq | string | Use a plan_id from List plans, e.g. starter. |
| billing_modeopt | monthly | annual | Defaults to monthly. |
| effective_fromopt | string (ISO 8601) | When the plan starts. Defaults to now. |
| referenceopt | string | Your own order or invoice number, stored on the history record. |
{
"success": true,
"pagename": "johndoe",
"planKey": "starter",
"planName": "Starter",
"startedAt": "2026-01-05T10:00:00.000Z",
"renewsAt": "2026-02-05T10:00:00.000Z"
}{ "success": false, "error": "Turn on Sign Up / Payment Link in White Label settings before using the billing API." }{ "success": false, "error": "The company owner's plan cannot be changed via the API; manage it from the company billing settings." }/api/public/v1/billing/subscriptionUse a plan_id from List plans, e.g. starter.
Defaults to monthly.
When the plan starts. Defaults to now.
Your own order or invoice number, stored on the history record.