Create credit product
Create a credit entity for a given product with an optional balance for a customer.
POST
/
v1
/
customers
/
{id}
/
credits
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
id
string
requiredBody
application/json
product_id
string
requiredCredit product ID.
current_balance
number | null
Current credit balance.
name
string | null
requiredCredit name
low_count_threshold
number | null
requiredValue indicating a low threshold.
Response
201 - application/json
product_id
string
requiredCredit product ID.
current_balance
number
requiredCurrent credit balance.
customer_id
string
requiredCustomer ID related to the credit
name
string
requiredCredit name
low_count_threshold
number | null
requiredValue indicating a low threshold.
last_refreshed_at
string
requiredCredit last refresh date.
created_at
string
requiredCredit creation date.
updated_at
string
requiredCredit last edition date.
Was this page helpful?