Overview
Subscriptions represent recurring billing relationships with customers. They automatically renew at specified intervals until canceled.The Subscription Object
Unique identifier for the subscription
Status:
incomplete, incomplete_expired, trialing, active, past_due, canceled, or unpaidWhether the subscription is currently active
ID of the customer
ID of the product
ID of the price
Subscription amount in cents
Three-letter ISO currency code
Billing interval:
month or yearStart of current billing period
End of current billing period
Whether subscription will cancel at period end
When the subscription was canceled
When the subscription ended
Trial start date
Trial end date
Applied discount ID
Custom metadata
Creation timestamp
List Subscriptions
cURL
Query Parameters
Filter by organization
Filter by product
Filter by customer
Filter by external customer ID
Filter by discount
Filter by active status
Filter subscriptions set to cancel
Filter by metadata
Get Subscription
cURL
Path Parameters
Subscription ID
Create Subscription
cURL
This endpoint only creates subscriptions for free products. For paid products, use the checkout flow.
Request Body
Customer ID
Product ID (must be free)
Price ID
Custom metadata
Update Subscription
cURL
Path Parameters
Subscription ID
Request Body
Change to a different price of the same product
Update metadata
Errors
Subscription is locked (pending update)
Cancel Subscription
cURL
Path Parameters
Subscription ID
This revokes the subscription immediately. The customer loses access right away and no refund is issued.
Export Subscriptions
cURL
Query Parameters
Filter by organization
Response
Returns a CSV file with subscription data.Get Charge Preview
cURL
- Base subscription amount
- Metered usage charges
- Applied discounts
- Calculated taxes
- Total amount
Path Parameters
Subscription ID
Response
Total amount in cents
Tax amount in cents
Base subscription amount
Usage-based charges
Discount amount