List Subscriptions
Retrieve all subscriptions for the authenticated customer.Query Parameters
Filter by product ID(s).
Filter by active (
true) or cancelled (false) status.Search by product or organization name.
Number of results per page (max 100).
Page number for pagination.
Response
Array of subscription objects.
Pagination metadata with
total_count and page.Example
Get Subscription
Retrieve a single subscription by ID.Path Parameters
The subscription ID.
Response
Returns a subscription object with full details including product, pricing, and benefits.Example
Preview Next Charge
Get a preview of the upcoming charge for an active subscription, including metered usage.Path Parameters
The subscription ID.
Response
Total amount to be charged (in cents).
Currency code (USD, EUR, etc.).
Breakdown of charges including base price and metered usage.
Start of the billing period.
End of the billing period.
Example
Charge previews are only available for active subscriptions with an upcoming renewal.
Update Subscription
Modify a subscription’s plan, seats, or cancellation status.Path Parameters
The subscription ID.
Request Body
The request body can contain one of the following update types: Switch Product:ID of the product to switch to (upgrade/downgrade).
New seat count (minimum 1).
How to handle prorations:
create_prorations (default) or always_invoice.Set to
true to cancel at period end, false to uncancel.Reason for cancellation:
too_expensive, missing_features, switched_service, unused, customer_service, low_quality, too_complex, or other.Free-form feedback about why the customer is canceling.
Examples
Switch to Different Product:Cancel Subscription
Immediately cancel a subscription (alternative to settingcancel_at_period_end).
Path Parameters
The subscription ID.
Response
Returns the updated subscription object withcancel_at_period_end set to true.
Example
This sets the subscription to cancel at the end of the current billing period. The customer retains access until then.
Permissions
Subscription management requires appropriate permissions:- List/Get: Any authenticated customer or member
- Update/Cancel: Customer or member with
billing_managerorownerrole
Subscription States
Subscriptions can be in the following states:- active: Currently active and renewing
- trialing: In trial period
- canceled: Set to cancel at period end (still active)
- past_due: Payment failed, retrying
- unpaid: Payment failed permanently
- incomplete: Initial payment not completed
- incomplete_expired: Initial payment expired
Proration Behavior
When updating seats or switching products mid-cycle, you can control how prorations are handled:- create_prorations (default): Creates credit for unused time and charges for new time
- always_invoice: Immediately invoices any additional charges