How to obtain the Usage ID of a usage that is added to a subscription?

Modified on: Tue, 25 Jul, 2023 at 4:50 PM

Scope

Can I retrieve the usage ID from Chargebee UI?

How do I retrieve the usage ID via API?

Can I export the usage IDs?


Summary

Usage ID is automatically added by the system when usage is added to a subscription. The usage ID is needed in order to perform a bulk operation to Delete Usage.


However, at present, the usage ID is neither exportable nor can be seen anywhere on the UI but only via API.


Solution

The Usage ID can only be obtained via the API.

The  list usage API calls to get the usage IDs - https://apidocs.chargebee.com/docs/api/usages#list_usages


Related Articles and Documentation

How to set metered billing for a plan with base fee/without base fee? - PC 2.0

‘usage_date’ must fall within the period when the ‘item_price’ was active in the subscription

How to delete usages for a metered billing subscription?


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×