schedule_item
element for each billing period you want to grant them credit for.
This call shows an example of the create a credit action:
priority
. The priority dictates which credits get burned down first. To learn more, see Manage credits and commits.
credit_type_id
is the currency that the credit should be entered in. Find the list of currency IDs in the Metronome app under General Settings → Pricing Units.
2714e483-4ff1-48e4-9e25-ac732e8f24f2
.product_id
is the ID of the product you want to show on the invoice. In the example, you have a product called Customer Satisfaction Credit
. If you want the credit to apply to specific products on the account instead of any and all products, include those IDs in the applicable_product_ids
container.
DRAFT
state, you can correct this in Metronome by passing in an event that negates the original usage. To do so, pass an event with a negative quantity/value that matches the the billable metric of the product you want to credit.
For example, if your billable metric aggregates by a property of token_count
, where you normally pass positive values, negate the relevant usage by passing a negative value to token_count
. For example:
finalized
state, you can grant the customer a credit towards future billings or create a credit memo directly in your customer A/R management system. Metronome doesn’t allow the correction/adjustment of usage events for finalized invoices.