Create plan

Requires the write_subscription_plans permission. Plans default to disabled. No contract is created by creating a plan.

Body Params

Create a plan. Supply priceModifierValue when selecting fixed_price or percent_discount.

boolean

Defaults to false on creation.

string
required
length between 1 and 100

Trimmed plan name. Maximum 100 UTF-8 bytes; maxLength alone does not enforce the byte limit.

string
enum
required

Use day with intervalCount 7 for weekly billing.

Allowed:
integer
1 to 9999

Defaults to 1 on creation.

integer
0 to 9999

Zero means no cycle limit; defaults to zero.

integer
0 to 999

Free-trial duration in days; zero means no trial.

string
enum

Defaults to none. When explicitly set to a non-none value, priceModifierValue is required.

Allowed:
number
≤ 9999999999

Required with an explicit non-none modifier. Positive; percent_discount maximum 100; fixed_price maximum 9999999999. Rounded to four decimal places. Fixed-price values exclude VAT.

Responses

401

Missing, expired or invalid OAuth access token.

403

Required permission is missing or access to this business is forbidden.

404

Resource or parent not found in the authenticated business.

429

Rate limit exceeded. The response may have no JSON body. Retry reads with bounded backoff.

500

Server error. A mutation may already have taken effect; reconcile its outcome before retrying.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json