Skip to main content
POST
Create Plan

Authorizations

X-API-KEY
string
header
required

Body

application/json

Create Plan Request

amount
string

Price amount in major units (for example "9.99"), as a decimal string.

currency
string

ISO 4217 or crypto currency code for the price (for example "USD", "USDC").

description
string

Human-readable plan description shown to customers.

interval
enum<string>

Billing interval unit for recurring plans. One of Minute, Hour, Day, Week, Month, Year.

Available options:
Unknown,
Minute,
Hour,
Day,
Week,
Month,
Year
intervalCount
integer

Number of interval units between billings. Defaults to 1. For Month: 1, 2, 3, 4, or 6. For Year: 1, 2, or 3.

metadata
object

Arbitrary key-value metadata to attach to the plan.

name
string

Display name of the plan.

reference
string

Optional merchant-defined reference for this plan.

trial_period
string

Optional trial period duration before the first charge (for example "P7D" for 7 days).

Response

OK

data
object

Response payload when the request succeeded.

error
boolean

True when the request failed.

message
string

Human-readable status or error message.