v1
latestOpenAPI 3.1.02026-07-222392081.7 MBCustomers > Credits
Create credit product
Create a credit entity for a given product with an optional balance.
post/v1/customers/{id}/credits
Path parameters
idstring required
Request body
Example request
{
"product_id": "itm_3kXODDF42QXtnL",
"name": "Credit name",
"current_balance": 2000,
"low_count_threshold": 10,
"auto_topup": {
"credit_count": 32,
"amount_excluding_tax": 2000
}
}Response
Credit created
Example response
{
"product_id": "itm_3kXODDF42QXtnL",
"customer_id": "cus_Typ0px2W0aiEtl",
"name": "Credit name",
"current_balance": 2000,
"low_count_threshold": 10,
"last_refreshed_at": "2025-11-23T09:00:01.860Z",
"auto_topup": {
"credit_count": 32
},
"created_at": "2025-10-12T07:00:01.860Z",
"updated_at": "2025-10-13T10:00:01.860Z"
}