Purchase credits
Purchase a number of credits. This action will generate an invoice and charge the customer. Can take a few seconds to complete.
POST
/
v1
/
customers
/
{id}
/
credits
/
{productId}
/
purchase
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Value indicating a number of credits to add. If price_id
is defined, this value must correspond to a full credit pack for the price.
Total custom monetary amount in the currency's smallest unit for the added credits. Either amount_excluding_tax
or price_id
must be defined.
Price ID used to add credits. The price must be of type bundle
. Either amount_excluding_tax
or price_id
must be defined.
Was this page helpful?