ChargebeeAPI
Join the Chargebee Developers Discord — Connect, ask questions, and build faster.Join

Pause a subscription

Idempotency Supported

Pauses the subscription, changing its status to paused. This prevents the subscription from getting renewed. No new charges are created until the subscription is resumed.

Note:

  • Applicable only for active/non-renewing subscriptions.
  • If paused indefinitely, the subscription is cancelled on the cancelled_at date.
  • Advance charges, if any, are refunded as credits.

Sample Request

URL Format

POST https://[site].chargebee.com/api/v2/subscriptions/{subscription-id}/pause

Input Parameters

pause_option
optional, enumerated string

List of options to pause the subscription.

Possible Enum Values
immediately

Pause immediately

end_of_term

Pause at the end of current term

specific_date

Pause on a specific date

billing_cycles

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

pause_date
optional, timestamp(UTC) in seconds

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.

unbilled_charges_handling
optional, enumerated string

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.

Possible Enum Values
no_action

Retain as unbilled If no_action is chosen, charges are added to the resumption invoice.

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.

invoice_dunning_handling
optional, enumerated string

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.

Possible Enum Values
continue

Continue dunning

stop

Stop dunning

skip_billing_cycles
optional, integer, min=1

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 .

resume_date
optional, timestamp(UTC) in seconds

For a paused subscription, it is the date/time when the subscription is scheduled to resume. If the pause is for an indefinite period, this value is not returned. For non-renewing subscriptions,resume_date should be before the cancellation date.

Returns

subscriptionSubscription object
Resource object representing subscription
customerCustomer object
Resource object representing customer
cardCard object
Resource object representing card
invoiceInvoice object
Resource object representing invoice
Resource object representing unbilled_charge
credit_notesoptional
Resource object representing credit_note