End the paid plan at the end of the month

Cancels Pro: the organization keeps Pro to the end of the month already paid for, with no refund, and then returns to the free plan and its allowance.

POST/v1/billing/cancel

Cancels Pro: the organization keeps Pro to the end of the month already paid for, with no refund, and then returns to the free plan and its allowance. Sandboxes are never deleted by a cancel; ones past the free plan's limits stay asleep until they fit. changePlan to Pro before the month ends undoes it. On the free plan there is nothing to cancel (conflict); closing the account is a separate call. Only a signed-in person whose role may read billing, with a fresh second factor; an API key answers person_required. The billing provider not answering is upstream.

For people only: a signed-in person with a fresh second factor makes this call. An API key is refused with person_required. The person's role must be one that may read billing.

Request

curl -X POST "https://api.pod.mapier.ai/v1/billing/cancel" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN"

Parameters

NameInTypeRequiredWhat it is
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Answer

200. The plan now, and the change waiting for the end of the month.

200
{
  "plan": "invited",
  "effective": "now",
  "effective_at": "2026-11-23T12:00:00.000Z",
  "pending_change": null
}
FieldTypeAlwaysWhat it is
plan"invited" | "free" | "pro"Yes
effective"now" | "period_end"Yes
effective_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
pending_changePendingPlanChange | nullYes

Errors

The refusals this call is known for: person_required, forbidden, conflict, upstream. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.billing.cancel()
Pythonpod.billing.cancel()