GET
/
v1
/
customers
/
{id}
/
credits
/
{productId}
curl --request GET \
  --url https://api.hyperline.co/v1/customers/{id}/credits/{productId} \
  --header 'Authorization: Bearer <token>'
{
  "product_id": "itm_3kXODDF42QXtnL",
  "current_balance": 2000,
  "customer_id": "cus_Typ0px2W0aiEtl",
  "name": "Credit name",
  "low_count_threshold": 10,
  "last_refreshed_at": "2023-11-23T09:00:01.860Z",
  "created_at": "2023-10-12T07:00:01.860Z",
  "updated_at": "2023-10-13T10:00:01.860Z"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

id
string
required
productId
string
required

Response

200 - 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.