Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The details of the credit grant to create.
the Metronome ID of the customer
the amount of credits granted
the amount paid for this credit grant
the name of the credit grant as it will appear on invoices
The credit grant will only apply to usage or charges dated before this timestamp
Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.
1 - 128
The credit grant will only apply to usage or charges dated on or after this timestamp
The date to issue an invoice for the paid_amount.
The product(s) which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.). The array ordering specified here will be used to determine the order in which credits will be applied to invoice line items
Configure a rollover for this credit grant so if it expires it rolls over a configured amount to a new credit grant. This feature is currently opt-in only. Contact Metronome to be added to the beta.
Custom fields to attach to the credit grant.
Response
Success