younifyd
Menu

Resume Subscription Estimate

Resume subscription estimate

POST/subscriptions/{subscription-id}/resume_subscription_estimate

Use it in a workflow

  1. Add a step and choose the Chargebee connector.
  2. Pick the Resume Subscription Estimate action (under Chargebee API).
  3. Fill in the fields below, then reference the result from later steps as {{resumeSubscriptionEstimate.response.data}}.

Request

Path parameters

subscription-idstringrequired

Headers

chargebee-request-origin-devicestring

The 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-ipstring

The IP address of the customer where the request originated

chargebee-event-actionsstring

skip all actions to be done on the events

One ofall-disabled

chargebee-event-emailstring

skip only emails

One ofall-disabled

chargebee-event-webhookstring

skip only webhooks

One ofall-disabled

chargebee-business-entity-idstring

If 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.

resume_optionstring

List of options to resume the subscription. \* immediately - Resume immediately \* specific_date - Resume on a specific date

One ofimmediatelyspecific_date

charges_handlingstring

Applicable when charges get added during this operation and **resume_option** is set as 'immediately'. Allows to raise invoice immediately or add them to unbilled charges. \* add_to_unbilled_charges - Add to unbilled charges \* invoice_immediately - Invoice immediately

One ofinvoice_immediatelyadd_to_unbilled_charges

subscriptionobject

Parameters for subscription

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.

json
{
  "resume_option": null,
  "charges_handling": null,
  "subscription": null
}

Response

Returns 200 with an object. Read it in later steps with {{resumeSubscriptionEstimate.response.data.<field>}}.

estimateobject

During 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)required

The time at which this estimate got generated

subscription_estimateobject9 fields

Represents the subscription details when the 'estimate' operations are invoked.

subscription_estimatesarray<object>9 fields

Is 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 fields

Represents the preview of the invoice generated immediately when the 'estimate' operations are invoked.

invoice_estimatesarray<object>18 fields

Is 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 fields

Represents the preview of the invoice generated at term end when the 'estimate' operations are invoked.

credit_note_estimatesarray<object>16 fields

Represents the preview of the credit-notes generated during 'estimate' operation. Currently applicable only for the 'Update Subscription Estimate' operation.

unbilled_charge_estimatesarray<object>25 fields

Represents the preview of the unbilled charges generated during 'estimate' operation. Currently not applicable for the 'Subscription renewal estimate' operation.

json
{
  "estimate": null
}

Need more? See the Chargebee guide for connection setup and behaviour shared by every action.