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
The company ID with the prefix 'cmp_'.
Body
The customer ID for the customer to whom the credit will be attached
The name of the credit. This will show up in invoices
The state of the credit that can be one of ACTIVE, REVOKED, EXPIRED or CONSUMED
ACTIVE
, REVOKED
, EXPIRED
, CONSUMED
The type of the credit that can be one of AMOUNT or UNITS
AMOUNT
, UNITS
The amount of the credit, if the type of credit is AMOUNT
The expiration date for the credit in RFC-3339 format
The billable item ID for the type of unit credits
The specific subscription ID to which the credit is attached
The number of units of the credit, if the type of credit UNITS
Response
Created
The amount which has value in cents and a currency
The amount which has value in cents and a currency