Menu
List Discounts For A Subscription
List discounts for a subscription
/subscriptions/{subscription-id}/discountsUse it in a workflow
- Add a step and choose the Chargebee connector.
- Pick the List Discounts For A Subscription action (under Chargebee API).
- Fill in the fields below, then reference the result from later steps as
{{listDiscountsForASubscription.response.data}}.
Request
Path parameters
subscription-idstringrequiredQuery parameters
limitinteger (int32)The number of resources to be returned.
Default 10
offsetstring<p class="mb-2">Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set <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">offset</code> to the value 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">next_offset</code> obtained in the previous iteration of the API call.</p>
Headers
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-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.
Response
Returns 200 with an object. Read it in later steps with {{listDiscountsForASubscription.response.data.<field>}}.
listarray<object>discountobjectrequired18 fields<div class="api-description"><span featureId="cb-discounts"></span><p class="mb-2">A <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">discount</code>, just like <code><a href="/docs/api/coupons">coupons</a></code>, represents a deduction from the amounts in an <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>. While coupons are typically used by your customers, <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">discount</code>s can be directly applied to subscriptions by your sales team while negotiating new deals or upgrades. If the negotiations are on the price itself, the <a href=" https://www.chargebee.com/docs/price-override.html#api" target="_blank">price override</a> feature helps adjust the price further.</p><p class="mb-2">Although a <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">discount</code> appears as a deduction on an invoice, it is applied to a <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">subscription</code> while creating or updating 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">subscription</code>. Every <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">discount</code> in Chargebee is attached to only one <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">subscription</code>.</p><div class="alert alert-info"><p class="mb-2"><strong class="font-semibold">Note:</strong></p><ul class="list-disc list-outside ml-6 my-4 space-y-2"> <li class="text-base leading-relaxed">The sum of the line-item-level and invoice-level coupons together for a subscription, cannot exceed 10.</li> <li class="text-base leading-relaxed">When discounts are enabled in Chargebee, the <a href="https://www.chargebee.com/docs/coupons.html#applying-multiple-coupons-to-a-subscription" target="_blank">multi-coupons feature</a> is automatically activated.</li> </ul></div><h2>Adding a discount</h2><h3>Subscriptions</h3><p class="mb-2">A <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">discount</code> can be added to a <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">subscription</code> by calling either <a href="/docs/api/subscriptions/create-subscription-for-items">Create subscription</a> or <a href="/docs/api/subscriptions/update-subscription-for-items">Update subscription</a>. Once added, 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">discount</code> is applied to all subsequent invoices 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">apply_on</code> 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">invoice_amount</code>. When <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">apply_on</code> = <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">specific_item_price</code>, the discount is applied (as a <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">discount.line_item_discount</code>) in each invoice of the subscription that contains the specified item.</p><h3>Invoices</h3><p class="mb-2">A <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">discount</code> can be added to an <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> using <a href="/docs/api/invoices/create-invoice-for-items-and-one-time-charges">Create invoice for items and one-time charges</a> using 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">discounts</code> parameter.</p><h3>Quotes</h3><p class="mb-2">A <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">discount</code> can be added to a <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">quote</code> using the following operations:</p><ul class="list-disc list-outside ml-6 my-4 space-y-2"> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/create-a-quote-for-a-new-subscription-items">Create a quote for new subscription</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/create-a-quote-for-update-subscription-items">Create a quote for updating a subscription</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/create-a-quote-for-charge-and-charge-items">Create a quote for charge and charge item</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/edit-create-subscription-quote-for-items">Edit a quote for a new subscription</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/edit-update-subscription-quote-for-items">Edit a quote for updating a subscription</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/edit-quote-for-charge-items-and-charges">Edit a quote for charge items and charges</a> </li> </ul><h3>Estimates</h3><p class="mb-2">A discount can be added to an estimate using the following endpoints:</p><ul class="list-disc list-outside ml-6 my-4 space-y-2"> <li class="text-base leading-relaxed"> <a href="/docs/api/estimates/estimate-for-creating-a-subscription">Estimate for creating a subscription.</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/estimates/estimate-for-creating-a-customer-and-subscription">Estimate for creating a customer and subscription</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/estimates/estimate-for-updating-a-subscription">Estimate for updating a subscription</a> </li> </ul><h2>Removing a discount</h2><h3>Subscriptions</h3><p class="mb-2">A <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">discount</code> can be removed by calling <a href="/docs/api/subscriptions/update-subscription-for-items">Update subscription</a> with the relevant <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">discounts[operation_type][]</code> 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">remove</code>. Also, discounts that have <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">duration_type</code> 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">one_time</code> or <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">limited_period</code> are removed automatically upon expiry.</p><h3>Quotes</h3><p class="mb-2">A discount can be removed from a quote using the following operations:</p><ul class="list-disc list-outside ml-6 my-4 space-y-2"> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/edit-create-subscription-quote-for-items">Edit a quote for a new subscription</a> </li> <li class="text-base leading-relaxed"> <a href="/docs/api/quotes/edit-update-subscription-quote-for-items">Edit a quote for updating a subscription</a> </li> </ul><h3>Estimates</h3><p class="mb-2">A discount can be removed from an estimate using the following operation:</p><ul class="list-disc list-outside ml-6 my-4 space-y-2"> <li class="text-base leading-relaxed"> <a href="/docs/api/estimates/estimate-for-updating-a-subscription">Estimate for updating a subscription</a> </li> </ul><h2>Listing discounts</h2><p class="mb-2">A discount is associated with exactly one subscription. You can fetch all the discounts currently attached to a subscription by calling the <a href="/docs/api/subscriptions/list-discounts-for-a-subscription">List discounts for a subscription API</a> or by passing <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">include_discounts</code> 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">true</code> while creating, importing, updating or retrieving a subscription.</p><h2>Order of application of coupons and discounts</h2><p class="mb-2">When both <a href="/docs/api/coupons">coupons</a> and <a href="/docs/api/discounts">discounts</a> are applied simultaneously to a <a href="/docs/api/subscriptions">subscription</a> or <a href="/docs/api/invoices/create-invoice-for-items-and-one-time-charges">one-time invoice</a>, they're applied in the following order:</p><div class="relative w-full overflow-x-auto"><table class="cb-table" border="2"><tbody><tr><td class="ak-renderer-table-number-column"></td><th class="ak-renderer-tableHeader-sortable-column" colSpan="1" rowspan="1"><strong class="font-semibold">Summary</strong></th><th class="ak-renderer-tableHeader-sortable-column" colSpan="1" rowspan="1"><strong class="font-semibold">Description</strong></th></tr><tr><td class="ak-renderer-table-number-column">1</td><td colSpan="1" rowspan="1">Line-level, fixed amount coupons</td><td colSpan="1" rowspan="1"><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">coupon</code> with <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">apply_on</code> = <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">each_specified_item</code> and <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">discount_type</code> = <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">flat</code></td></tr><tr><td class="ak-renderer-table-number-column">2</td><td colSpan="1" rowspan="1">Line-level, fixed amount discounts</td><td colSpan="1" rowspan="1"><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">discount</code> with <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">apply_on</code> = <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">specific_item_price</code> and <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">type</code> = <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">fixed_amount</code></td></tr><tr><td class="ak-renderer-table-number-column">3</td><td colSpan="1" rowspan="1">Line-level, percentage coupons</td><td colSpan="1" rowspan="1"><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">coupon</code> with <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">apply_on</code> = <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">each_specified_item</code> and <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">discount_type</code> = <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">percentage</code></td></tr><tr><td class="ak-renderer-table-number-column">4</td><td colSpan="1" rowspan="1">Line-level, percentage discounts</td><td colSpan="1" rowspan="1"><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">discount</code> with <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">apply_on</code> = <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">specific_item_price</code> and <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">type</code> = <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">percentage</code></td></tr><tr><td class="ak-renderer-table-number-column">5</td><td colSpan="1" rowspan="1">Line-level, offer quantity coupons</td><td colSpan="1" rowspan="1"><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">coupon</code> with <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">apply_on</code> = <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">each_specified_item</code> and <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">discount_type</code> = <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">offer_quantity</code></td></tr><tr><td class="ak-renderer-table-number-column">6</td><td colSpan="1" rowspan="1">Line-level, offer quantity discounts</td><td colSpan="1" rowspan="1"><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">discount</code> with <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">apply_on</code> = <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">specific_item_price</code> and <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">discount_type</code> = <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">offer_quantity</code></td></tr><tr><td class="ak-renderer-table-number-column">7</td><td colSpan="1" rowspan="1">Invoice-level, fixed amount coupons</td><td colSpan="1" rowspan="1"><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">coupon</code> with <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">apply_on</code> = <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_amount</code> and <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">discount_type</code> = <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">flat</code></td></tr><tr><td class="ak-renderer-table-number-column">8</td><td colSpan="1" rowspan="1">Invoice-level, fixed amount discounts</td><td colSpan="1" rowspan="1"><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">discount</code> with <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">apply_on</code> = <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_amount</code> and <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">type</code> = <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">fixed_amount</code></td></tr><tr><td class="ak-renderer-table-number-column">9</td><td colSpan="1" rowspan="1">Invoice-level, percentage coupons</td><td colSpan="1" rowspan="1"><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">coupon</code> with <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">apply_on</code> = <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_amount</code> and <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">discount_type</code> = <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">percentage</code></td></tr><tr><td class="ak-renderer-table-number-column">10</td><td colSpan="1" rowspan="1">Invoice-level, percentage discounts</td><td colSpan="1" rowspan="1"><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">discount</code> with <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">apply_on</code> = <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_amount</code> and <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">type</code> = <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">percentage</code></td></tr></tbody></table></div><p class="mb-2">For example, consider the following scenario:</p><p class="mb-2">A subscription is created with:</p><ul class="list-disc list-outside ml-6 my-4 space-y-2"> <li class="text-base leading-relaxed">a plan price of $200 per month</li> <li class="text-base leading-relaxed">an addon price of $20 per month</li> <li class="text-base leading-relaxed">a flat $5 invoice discount</li> <li class="text-base leading-relaxed">a 1% off coupon on the addon</li> <li class="text-base leading-relaxed">a flat $2 coupon on the invoice</li> </ul><p class="mb-2">The above coupons and discount are applied in the following order:</p><div class="relative w-full overflow-x-auto"><table class="cb-table" border="2"><tbody><tr><td class="ak-renderer-table-number-column"></td><th class="ak-renderer-tableHeader-sortable-column" colSpan="1" rowspan="1"><strong class="font-semibold">Discount or coupon applied</strong></th><th class="ak-renderer-tableHeader-sortable-column" colSpan="1" rowspan="1"><strong class="font-semibold">Subtotal at each step</strong></th></tr><tr><td class="ak-renderer-table-number-column">1</td><td colSpan="1" rowspan="1">Initial subtotal (plan price + addon price)</td><td colSpan="1" rowspan="1">$200 + $20 = $220</td></tr><tr><td class="ak-renderer-table-number-column">2</td><td colSpan="1" rowspan="1">1% off coupon on the addon</td><td colSpan="1" rowspan="1">$200 + $(20 - 0.02) = $200 + $19.98 = $219.98</td></tr><tr><td class="ak-renderer-table-number-column">3</td><td colSpan="1" rowspan="1">Flat $2 coupon on the invoice</td><td colSpan="1" rowspan="1">$219.98 - $2 = $217.98</td></tr><tr><td class="ak-renderer-table-number-column">4</td><td colSpan="1" rowspan="1">Flat $5 invoice discount</td><td colSpan="1" rowspan="1">$217.98 - $5 = <strong class="font-semibold">$212.98</strong></td></tr></tbody></table></div></div>
next_offsetstring<p class="mb-2">This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input 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">offset</code>.</p>
{
"list": null,
"next_offset": null
}
Need more? See the Chargebee guide for connection setup and behaviour shared by every action.