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; must be greater than 0
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
The date to issue an invoice for the paid_amount.
Options for prepaid credits. If specified, the credits will not be released until payment is received.
The credit grant will only apply to usage or charges dated on or after this timestamp
Reason for the credit grant. This may be shown to your users.
Internal-only identifier used to categorize your credit grant. Your users won't see this.
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
Response
Success