Menu
Pause Subscription Estimate
Pause subscription estimate
/subscriptions/{subscription-id}/pause_subscription_estimateUse it in a workflow
- Add a step and choose the Chargebee connector.
- Pick the Pause Subscription Estimate action (under Chargebee API).
- Fill in the fields below, then reference the result from later steps as
{{pauseSubscriptionEstimate.response.data}}.
Request
Path parameters
subscription-idstringrequiredHeaders
chargebee-request-origin-devicestringThe device from which the customer has made the request
chargebee-request-origin-userstring (email)The email address of your customer/user. Use this when the email address has only ASCII characters.
chargebee-request-origin-user-encodedstring (email)The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored.
chargebee-request-origin-ipstringThe IP address of the customer where the request originated
chargebee-event-actionsstringskip all actions to be done on the events
One ofall-disabled
chargebee-event-emailstringskip only emails
One ofall-disabled
chargebee-event-webhookstringskip only webhooks
One ofall-disabled
chargebee-business-entity-idstringIf the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation.
Request body
Enter the body as JSON in the step's Body field.
pause_optionstring<p class="mb-2">List of options to pause the subscription.</p> * billing_cycles - <p class="mb-2">Pause at the end of the current term, and resume automatically after the number of billing cycles you specify in <code><a href="/docs/api/estimates/pause-subscription-estimate#subscription_skip_billing_cycles">skip_billing_cycles</a></code></p> * immediately - <p class="mb-2">Pause immediately</p> * end_of_term - <p class="mb-2">Pause at the end of current term</p> * specific_date - <p class="mb-2">Pause on a specific date</p>
One ofimmediatelyend_of_termspecific_datebilling_cycles
unbilled_charges_handlingstring<p class="mb-2">Applicable when unbilled charges are present for the subscription and <code><a href="/docs/api/estimates/pause-subscription-estimate#pause_option">pause_option</a></code> is set as <code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">immediately</code>. <strong class="font-semibold">Note:</strong> On the invoice raised, an automatic charge is attempted on the payment method available, if customer's auto-collection property is set to <code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">on</code>.</p> * invoice - <p class="mb-2">Invoice charges If <code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">invoice</code> 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.</p> * no_action - <p class="mb-2">Retain as unbilled If <code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">no_action</code> is chosen, charges are added to the resumption invoice.</p>
One ofno_actioninvoice
subscriptionobjectParameters for subscription
pause_dateinteger (unix-time)<p class="mb-2">When a pause has been scheduled, it is the date/time of scheduled pause. When the subscription is in the <code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">paused</code> state, it is the date/time when the subscription was paused.</p>
resume_dateinteger (unix-time)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.
skip_billing_cyclesinteger (int32)Number of billing cycles this subscription should be paused. The subscription resumes after the paused billing cycles end.
{
"pause_option": null,
"unbilled_charges_handling": null,
"subscription": null
}
Response
Returns 200 with an object. Read it in later steps with {{pauseSubscriptionEstimate.response.data.<field>}}.
estimateobjectDuring the process of signing up customers to subscriptions, use the Estimates API to evaluate the details of the purchase before actually signing them up. The details returned by the API include the invoice amounts, next billing date and unbilled charges. For example, consider that you are creating a new subscription or update an existing one. Use the Estimates API before that to deduce the details such as the amount the customer would be charged, the state the subscription would be in after creation or updation, and so on. If you have configured the [Avalara integration](https://www.chargebee.com/docs/2.0/avalara.html), Chargebee retrieves the tax amount from Avalara for the invoice. This counts against your Avalara API limits.
created_atinteger (unix-time)requiredThe time at which this estimate got generated
subscription_estimateobject9 fieldsRepresents the subscription details when the 'estimate' operations are invoked.
subscription_estimatesarray<object>9 fieldsIs a list of estimated subscriptions i.e., an array of *subscription_estimate* objects. It is generated when 'Create an estimate for purchase' operation is invoked
invoice_estimateobject18 fieldsRepresents the preview of the invoice generated immediately when the 'estimate' operations are invoked.
invoice_estimatesarray<object>18 fieldsIs a list of estimated invoices i.e., an array of *invoice_estimate* objects. It is generated when 'Create an estimate for unbilled charges' operation is invoked
payment_schedule_estimatesarray<object>7 fields<p class="mb-2"><code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">payment_schedule_estimate</code> is used to hold the details related to payment schedules for an invoice. It will contain a list of <code class="bg-gray-100 text-gray-800 font-medium border border-gray-300 rounded px-1.5 py-0.5 mx-1 text-sm font-mono whitespace-nowrap">payment_schedules</code> resources.</p> <span featureId="cb-payment-schedules" isMicro="true"></span>
next_invoice_estimateobject18 fieldsRepresents the preview of the invoice generated at term end when the 'estimate' operations are invoked.
credit_note_estimatesarray<object>16 fieldsRepresents the preview of the credit-notes generated during 'estimate' operation. Currently applicable only for the 'Update Subscription Estimate' operation.
unbilled_charge_estimatesarray<object>25 fieldsRepresents the preview of the unbilled charges generated during 'estimate' operation. Currently not applicable for the 'Subscription renewal estimate' operation.
{
"estimate": null
}
Need more? See the Chargebee guide for connection setup and behaviour shared by every action.