POST
/
v1
/
customers
/
{id}
/
credits

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
product_id
string
required

Credit product ID.

current_balance
number | null

Current credit balance.

name
string | null
required

Credit name

low_count_threshold
number | null
required

Value indicating a low threshold.

Response

201 - application/json
product_id
string
required

Credit product ID.

current_balance
number
required

Current credit balance.

customer_id
string
required

Customer ID related to the credit

name
string
required

Credit name

low_count_threshold
number | null
required

Value indicating a low threshold.

last_refreshed_at
string
required

Credit last refresh date.

created_at
string
required

Credit creation date.

updated_at
string
required

Credit last edition date.