younifyd
Menu

Subscription Renewal Estimate

Subscription renewal estimate

GET/subscriptions/{subscription-id}/renewal_estimate

Use it in a workflow

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

Request

Path parameters

subscription-idstringrequired

Query parameters

include_delayed_chargesboolean

If true, all the unbilled charges will be included for the invoice estimate.

Default true

use_existing_balancesboolean

<p class="mb-2">The generated invoice_estimate/next_invoice_estimate will include all the balances - Promotional Credits, Refundable Credits, and Excess Payments - if any. If you don&#x27;t want these balances to be included you can specify &#x27;false&#x27; for the parameter <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">use_existing_balances</code>.</p>

Default true

ignore_scheduled_cancellationboolean

if true, ignores scheduled cancellation for non renewing subscription.

Default false

ignore_scheduled_changesboolean

If true, ignores all recurring charges scheduled during renewal.

Default false

exclude_tax_typestring

Indicates whether tax calculation should be excluded for the operation. This attribute is applicable only when a third-party tax provider is configured. If no such provider is set up, this parameter will be ignored. \* exclusive - Excludes only **exclusive** tax calculations, and only when exclusive taxes are applicable. \* none - No exclusions are applied. All applicable taxes are calculated based on the standard tax configuration.

One ofexclusivenoneDefault "none"

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

Response

Returns 200 with an object. Read it in later steps with {{subscriptionRenewalEstimate.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.

Subscription Renewal Estimate — Chargebee — Documentation