ChargebeeAPI

List discounts for a subscription

Try in API Explorer

Retrieves a list of discount resources currently attached to a specific subscription. The list is sorted in descending order based on the created_at timestamp.

Note This endpoint does not return coupon or coupon_code resources.

Sample Request

URL Format

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

Input Parameters

limit
optional, integer, default=10, min=1, max=100

The number of resources to be returned.

offset
optional, string, max chars=1000

Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset to the value of next_offset obtained in the previous iteration of the API call.

Returns

next_offsetoptional, string, max chars=1000

This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter offset.

discountDiscount object
Resource object representing discount