POST /plans

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Specifies the merchant on whose behalf the request is being made. Include this parameter if the request is being performed by a platform organization that is acting on behalf of one of its merchants. Without this parameter, operations initiated by a platform organization will default to being associated with the platform itself.

Body Params
string
required
string
required
string
required
string
enum

Defines the plan type. Possible values:
• subscription: recurring plan billed according to the interval.
• unique: single-charge plan (one-time payment).

Allowed:
string
enum

For type = subscription. Possible values:
• day
• week
• month
• quarterly
• semianually
• year

Allowed:
number
required

Amount to be charged per billing cycle.
If subscription_type = fixed, this is the amount to be charged every billing cycle.
If subscription_type = variable, this is unit price amount of the plan.

string

ISO 4217 currency code (e.g. USD, EUR). Determines the currency in which the customer is charged.

number

Total number of billing cycles. If set, the subscription will automatically end after the specified number of cycles

boolean

Indicates whether billing should be deferred until a product or service is received or confirmed by the customer. Useful when a subscription is created before the service is actually activated.

number

Number of free trial days before the first charge. Should be a number between 1 and 90. If omitted, billing starts immediately.

string
string
enum

Defines whether the subscription amount is fixed or can vary per billing cycle. Possible values:
• fixed: the same amount is charged every cycle (default).
• variable: the amount may change across billing cycles (e.g. Quantity/Per-Unit Subscription:).

Allowed:
number

Day of the month when the charge should occur (1–31). If omitted, the billing day is based on the subscription start date.

string
enum

Only if subscription_type=variable. Determines how to handle billing cycles where no consumption is reported:
• no_charge: customer is not charged for the cycle.
• last_charge: customer is charged the same amount as in the last cycle that had consumption.

Allowed:
Headers
string
string
Responses

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