Create a plan

Creates a new subscription plan with one or more price options. Customers subscribe to individual options within a plan.

POST

Headers

string

The Bearer token for authentication.

string

The user agent of the request. Must contain at least two identifiers separated by a space.

string

The content type of the request.

Request Body

application/json
string

Short description about the plan

string

A detailed summary explaining what the plan is about.

string

Currency code in ISO 4217 format.

SRDUSDEUR
array

List of plan line options.

string

Short description about the option.

float

Price per unit.

number

The number of days for each billing interval. (e.g. 30 for monthly or 365 for yearly)

object

Custom key-value pairs that can be used for option specific features.

Response Body

application/json
boolean

Indicates that the request was successful.

object

The data of the newly created resource.

string

The ID of the newly created resource.