Subscription Action
Cancel, pause, resume, or add free days to a subscription.
Authorizations
Authenticate requests using your standard bearer API key (e.g. YOUR_API_KEY).
Path Parameters
The customer subscription ID
"mem_123"
The subscription task to execute
add_free_days, cancel, pause, resume, uncancel, adjust_seats Body
Number of free days to add (used with action: add_free_days)
1 <= x <= 365030
Cancellation mode (used with action: cancel)
immediate, at_period_end 50"immediate"
Whether to void subsequent payments (used with action: pause)
true
ID of the addon product to adjust seats for (used with action: adjust_seats)
"prod_seat_123"
The new seat quantity (used with action: adjust_seats)
x >= 05
Proration strategy mode (used with action: adjust_seats)
prorated_immediately, full_immediately, difference_immediately, do_not_bill "do_not_bill"
A unique idempotency key to prevent duplicate mutative actions for network transient retries.
100"sub_action_idem_123"
Response
Subscription action processed successfully.
- Option 1
- Option 2
Represents a customer subscription membership resource, containing current billing terms, plan, status, and metadata.
The unique ID of the subscription
"mem_123"
The status of the subscription (e.g. completed, active, trialing, past_due, canceled)
"active"
Timestamp when the subscription was created
"2025-01-01T12:00:00.000Z"
Timestamp when the member joined
"2025-01-01T12:00:00.000Z"
Timestamp when the subscription was last updated
"2025-01-01T12:00:00.000Z"
The management URL for the billing/subscription
"https://example.com/billing/manage/mber_123"
The member details
The user details
Start timestamp of the current renewal period
null
End timestamp of the current renewal period
null
Whether the subscription is set to cancel at the end of the billing period
false
The cancel option details
null
The reason for cancellation
null
Timestamp when the subscription was canceled
null
The currency used for payments
"usd"
The company context details
The plan associated with this subscription
The promo code applied to the subscription
null
The product associated with the subscription
The license key associated with this subscription
null
Additional metadata for the subscription
{ "is_usage_based": "false" }
Whether the payment collection is currently paused
false
The checkout configuration ID used
"ch_123"
The price/amount of the membership
99
The type of the membership plan
"renewal"
The business customer ID
"cust_123"