Create Subscription
Create a recurring subscription for a customer
POST
Documentation Index
Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint creates a new subscription for recurring billing. Subscriptions automatically generate invoices and process payments based on the billing cycle.
Authentication
This endpoint requires a valid API key withsubscriptions:write permissions.
Request Body
Customer ID for the subscription
Subscription plan ID
Subscription start date (ISO 8601)
Default payment method for automatic billing
Number of subscriptions (default: 1)
Trial period end date (ISO 8601)
Date to anchor billing cycles (ISO 8601)
Additional subscription items
Coupon to apply to subscription
Shipping address for physical subscriptions
Additional custom fields