Create a subscription plan
Subscriptions
Create a Subscription Plan
POST
Create a subscription plan
Create a new subscription plan with a billing interval, amount, and token.
Response
Authorizations
Use your secret API key as a Bearer token.
Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).
Body
application/json
Plan name
Maximum string length:
256Example:
"Pro Monthly"
Billing amount in USD
Required range:
x >= 0.01Example:
19.99
Billing interval for subscription plans
Available options:
daily, weekly, monthly, yearly Stablecoin token
Available options:
USDT, USDC Blockchain network
Available options:
tron, arbitrum, base Plan description
Maximum string length:
1024Number of free trial days
Required range:
x >= 0Response
Subscription plan created
Unique identifier (prefixed plan_)
Example:
"plan_1a2b3c4d5e"
Organization identifier
Plan name
Plan description
Billing amount
Currency code
Stablecoin token
Available options:
USDT, USDC Billing interval for subscription plans
Available options:
daily, weekly, monthly, yearly Number of intervals between billings
Number of free trial days
active— Plan is available for new subscriptionsarchived— Plan is no longer available for new subscriptions
Available options:
active, archived Available options:
live, sandbox