Create a plan
Needs the catalog:write scope, or a full-access key. About scopes
api/v1/plansAuthorization
AuthorizationRequiredBearer <token>
An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).
In: header
Request Body
application/jsonOptionalproduct_idRequiredstring
"uuid"nameRequiredstring
1Maximum length: 200codeRequiredstring
1Maximum length: 100pricing_modelRequiredstring
"flat" | "per_seat" | "metered" | "tiered" | "volume" | "package"intervalRequiredstring
"monthly" | "quarterly" | "annual" | "one_time"amount_centsRequiredstring
Plan price, in minor units, serialized as a decimal string (also accepted as a plain integer on input).
"^\\d+$"currencyRequiredstring
"USD" | "AUD" | "CAD" | "GBP" | "EUR" | "INR" | "NPR"included_unitsstring
Included usage units before metered overage applies, serialized as a decimal string.
"^\\d+$"package_sizeinteger
unit_namestring
50billing_timingstring
advance (default for new plans) invoices each period at its START; arrears at its end. Metered usage is always billed in arrears.
"advance" | "arrears"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.
Plan created.