Move the organization to another plan

Moves a self-serve organization between the free plan and Pro.

PUT/v1/billing/plan

Moves a self-serve organization between the free plan and Pro. Moving up starts at once: the larger limits and sizes are there now and the month is prorated. Moving down takes effect at the start of next month, with no refund for the rest of this one; until then pending_change names it, and moving up again cancels it. Pro needs a card on file (conflict). An invited organization's plan is staff's (conflict). The same plan again is a no-op. A higher plan is agreeing to pay more, so only a signed-in person whose role may read billing can call it, with a fresh second factor; an API key answers person_required. With billing off it is conflict; 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 PUT "https://api.pod.mapier.ai/v1/billing/plan" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"plan":"free"}'

Parameters

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

Body

FieldTypeRequiredWhat it is
plan"free" | "pro"Yes

Answer

200. The plan now, and when the one asked for starts.

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: invalid, 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.changePlan(plan)
Pythonpod.billing.change_plan(plan)