Use this API to pause an active or non-renewing subscription. When a subscription is paused, it does not renew, and Chargebee does not generate renewal invoices for it. This allows you to temporarily suspend a customer's service without canceling the subscription.
Prerequisites & Constraints
- The Pause Subscription feature must be enabled for the site.
- Only subscriptions in the
activeornon_renewingstate can be paused. - Subscriptions with active contract_terms cannot be paused.
Impacts
Subscription
If the pause_option parameter is set to immediately, the subscription's status changes to paused. The next_billing_at, pause_date, and resume_date values are updated based on the input parameters.
Unbilled Charges
If the subscription has unbilled charges and is paused immediately, you can choose to leave the charges unbilled or invoice them. If invoiced, Chargebee attempts payment collection based on the customer's auto-collection settings. If payment fails or auto-collection is not enabled, the invoice is marked as unpaid.
Use the unbilled_charges_handling parameter to set your preference.
Dunning
If the subscription has unpaid invoices in dunning and is paused immediately, you can choose to either stop or continue the dunning process.
Use the invoice_dunning_handling parameter to set your preference.
Scheduled Ramps
Any future subscription ramps (such as price or quantity changes) effective on or after the pause date are automatically deleted.
Advanced Invoices
If the subscription has an advance invoice, Chargebee creates an adjustment credit note if the invoice is unpaid or in a payment-due state. If the invoice is already paid, a refundable credit note is created.
Implementation Notes
Before calling this API, perform the following checks:
- Confirm that the subscription
statusisactiveornon_renewing. If it isn't, the API returns aninvalid_state_for_pauseerror. - Check the
has_scheduled_changesattribute. Iftrue, either remove the scheduled changes before calling the API or avoid the operation. Otherwise, the API returns anoperation_failederror. - Ensure that the
contract_termattribute is not present, or if it is present, thatcontract_term.statusis notactive. Otherwise, the API returns aninvalid_requesterror. - If a subscription is in the
non_renewingstate and you want to set the pause date to a future date, the pause date must be earlier than the cancellation date. If you specify a resume date, it must also be earlier than the cancellation date.
Sample Request
URL Format
Input Parameters
List of options to pause the subscription.
Pause immediately
Pause at the end of current term
Pause on a specific date
Pause at the end of the current term, and resume automatically after the set number of billing cycles (in skip_billing_cycles) have been skipped
Date on which the subscription will be paused. Applicable when specific_date option is chosen in the pause_option field.
For non-renewing subscriptions, pause_date should be before the cancellation date.
Applicable when unbilled charges are present for the subscription and pause_option is set as immediately. Note: On the invoice raised, an automatic charge is attempted on the payment method available, if customer's auto-collection property is set to on.
Retain as unbilled
If no_action is chosen, charges are added to the resumption invoice.
Invoice charges
If invoice is chosen, an automatic charge is attempted on the payment method available if the customer has enabled auto-collection. If a payment collection fails or when auto-collection is not enabled, the invoice is closed as unpaid.
Handles dunning for invoices already in the dunning cycle when a subscription is paused. Applicable when pause_option is set as immediately.
If invoice is in the dunning cycle, invoice_dunning_handing allows you to stop or continue dunning.
Continue dunning
Stop dunning
The number of subscription billing cycles that will be skipped. The subscription resumes after the set number of billing cycles have been skipped. This is applicable only when the value of of pause_option
is billing_cycles
.
Returns
Resource object representing subscription
Resource object representing customer
Resource object representing card
Resource object representing invoice
Resource object representing unbilled_charge
Resource object representing credit_note