Skip to content
  • Billing
  • Subscription management

Add metered usage for a customer via API

From time to time, you may need to manually add metered usage for an individual customer. You can do this via the Kinde API.

Adding usage values requires two key pieces of information:

  • your customer’s agreement ID
  • the feature code you want to record usage against

Get the agreement ID

Link to this section
  • Via API. Include the billing expand parameter in your request to access the agreement ID.

  • Via the Kinde UI - Open the user or organization record in Kinde and select Billing in the menu. The customer agreement shows as part of the subscription details.

Get the feature ID

Link to this section
  1. Open the plan the feature belongs to.
  2. Edit the feature (to view it) in the plan.
  3. Take note of the Key.

Submit usage data

Link to this section

POST the usage to the meter usage record API including the feature code and agreement ID to record a usage value.

Related articles