Create a subscription
Subscriptions
Create a Subscription
Subscribes a customer to a plan.
POST
Create a subscription
Subscribe a customer to a plan. Creates the first renewal automatically.
Response
Authorizations
Use your secret API key as a Bearer token.
Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).
Body
application/json
Response
Subscription created
Unique identifier (prefixed sub_)
Example:
"sub_1a2b3c4d5e"
Organization identifier
Customer identifier
Subscription plan identifier
Payment method identifier
trialing— Subscription is in trial periodactive— Subscription is active and billing normallypast_due— Payment failed, retryingpaused— Subscription is pausedcanceled— Subscription was canceledexpired— Subscription has expired
Available options:
trialing, active, past_due, paused, canceled, expired Whether the subscription cancels at the end of the current period
Available options:
live, sandbox