Subscriptions/createSubscription
Create a subscription
PlannedPlanned. This contract is published ahead of the build. It is not callable yet — treat it as the shape to design against, not a live endpoint.
Bill a saved payment method on a recurring schedule.
POST
/v1/subscriptionsStart recurring billing for a customer against a price, charging a saved payment
method each period. The first invoice is raised immediately unless a trial is set.
Request body
application/json
customerIdstringRequiredExample "cus_123"
priceIdstringRequiredExample "price_pro_monthly"
paymentMethodIdstringRequiredExample "pm_9c2a4f10"
trialDaysintegernullableExample 14
Response
application/json
idstringExample "sub_9c2a4f10"
customerIdstringExample "cus_123"
priceIdstringExample "price_pro_monthly"
statusenumtrialingactivepast_duecanceledExample "active"
currentPeriodEndstring · ISO 8601Example "2026-04-09T09:14:22Z"
cancelAtPeriodEndbooleanExample false
createdAtstring · ISO 8601Example "2026-04-09T09:14:22Z"
createSubscription