Billing
Cancel the subscription, or a scheduled change
Admins only.
POST/v1/organizations/{organizationId}/billing/cancel
what: subscription (the default) stops the subscription at the end of the period already paid for; the plan stays until then and billing.resume undoes it. what: pendingChange withdraws a scheduled downgrade and keeps the current plan. Refused with 501 while billing is not connected.
Requires the account:write scope. Operation billing.cancel. MCP tool billing_cancel. CLI, once published: gtable billing cancel.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
organizationId | string | yes |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
what | “subscription” or “pendingChange” | no | Default "subscription". |
Response
Success
dataobjectrequiredRefused
errorobjectrequired