Create a usage entry for a credit product. This will impact the balance of the customer by usage_retained.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Credit usage entry payload
The created credit transaction
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.
null
Expiration date for credits linked to this transaction
null
Type of credit transaction.
topup, usage, expiration "topup"
Type of credit transaction.
app, portal, api, system "api"
Monetary amount. Expressed in currency's smallest unit.
Value of credits related to the transaction.
32
Credit balance after the transaction.
2000