Introducing the Chargebee CLI

List credit rate versions

Lists every version of a metered feature's credit rate, newest first.

Use it to show how a credit rate changed over time: each version includes its rate, change_option, effective_from, and the note given for the change.

Implementation Notes

  • A version in this list is not necessarily the one applied to a given subscription; that depends on the subscription and on each version's change_option. To see the rate that applies to a subscription, use List credit rates for a subscription.

Sample Request

list immutable global credit rate versions

Sample Result[JSON]

URL Format

GET https://[site].chargebee.com/api/v2/metered_features/{metered-feature-id}/credit_rate_versions

Input Parameters

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

The number of versions to return.

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_offset
optional, string, max chars=1000

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

Credit rate object

A version of the credit rate.