Topup credits
Topup a number of free credits. This action will not charge the customer.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
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.
32
Response
Credit transaction ID.
"cdt_BPZ19obsBS2qyo"
ID of the product related to the transaction.
"itm_3kXODDF42QXtnL"
Price details related to the transaction.
{
"id": "pri_0Jv8EbMDOGsHcn",
"amount": 20000,
"pack_size": 120
}
ID of the customer related to the transaction.
"cus_Typ0px2W0aiEtl"
ID of the payment method related to the transaction.
"pm_1xMpj5bwRqN7LM"
ID of the invoice related to the transaction.
"inv_1eTaiytfA0i2Va"
ID of the event related to the credit consumption.
Type of credit transaction.
topup
, usage
"topup"
Type of credit transaction.
app
, portal
, api
"api"
Monetary amount. Expressed in currency's smallest unit.
24000
Value of credits related to the transaction.
32
Credit balance after the transaction.
2000
Credit transaction creation date.
"2023-10-13T07:00:01.860Z"
Credit transaction last edition date.
"2023-10-13T07:00:01.860Z"
Was this page helpful?