Credits
Consume Credits
Consume credits with given parameters
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The idempotency key that will be used to ensure the request is only performed once
Path Parameters
Company ID. It should have a prefix 'cmp_'.
Body
application/json
The customer ID to consume credits
The type of the credit to be consumed, can be one of AMOUNT or UNITS
The amount which has value in cents and a currency
The specific credit ID to consume
The billable item ID whose units are to be consumed
Add any notes attached to the credit consumption
The units to consume
Required range:
x >= 0