curl --request GET \
--url https://api.hyperline.co/v1/customers/{id}/credits \
--header 'Authorization: Bearer <token>'
{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0
},
"data": [
{
"product_id": "itm_3kXODDF42QXtnL",
"current_balance": 2000,
"customer_id": "cus_Typ0px2W0aiEtl",
"name": "Credit name",
"low_count_threshold": 10,
"last_refreshed_at": "2024-11-23T09:00:01.860Z",
"created_at": "2024-10-12T07:00:01.860Z",
"updated_at": "2024-10-13T10:00:01.860Z"
}
]
}
List all credits products attached to a customer.
curl --request GET \
--url https://api.hyperline.co/v1/customers/{id}/credits \
--header 'Authorization: Bearer <token>'
{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0
},
"data": [
{
"product_id": "itm_3kXODDF42QXtnL",
"current_balance": 2000,
"customer_id": "cus_Typ0px2W0aiEtl",
"name": "Credit name",
"low_count_threshold": 10,
"last_refreshed_at": "2024-11-23T09:00:01.860Z",
"created_at": "2024-10-12T07:00:01.860Z",
"updated_at": "2024-10-13T10:00:01.860Z"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?