Change plan (and optionally seats)
Needs the subscriptions:write scope, or a full-access key. About scopes
api/v1/subscriptions/{id}/change-planAuthorization
AuthorizationRequiredBearer <token>
An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).
In: header
Request Body
application/jsonOptionalplan_idstring
Exactly one of plan_id / plan_code.
"uuid"plan_codestring
A plan code; its latest active version is used.
1Maximum length: 200quantityAny properties in integer, string
prorationstring
create (default) bills the difference now; none switches and waits for the period.
"create" | "none"whenstring
now (default) switches immediately; period_end stages the change for the renewal.
"now" | "period_end"metadataobject
Merged onto the subscription’s metadata with the plan move. Refused with when: period_end.
Path Parameters
idRequiredstring
"uuid"Header Parameters
Idempotency-Keystring
A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 idempotency_key_reused; a key whose first request is still running answers 409 idempotency_in_progress.
The applied (or staged) change. Does not charge: a finalized proration invoice is charged separately.