GET
/
v1
/
customers
/
{id}
/
credits
/
{productId}
/
transactions
curl --request GET \
  --url https://api.hyperline.co/v1/customers/{id}/credits/{productId}/transactions \
  --header 'Authorization: Bearer <token>'
{
  "meta": {
    "total": 1,
    "taken": 1,
    "skipped": 123
  },
  "data": [
    {
      "id": "cdt_BPZ19obsBS2qyo",
      "product_id": "itm_3kXODDF42QXtnL",
      "price": {
        "id": "pri_0Jv8EbMDOGsHcn",
        "amount": 20000,
        "pack_size": 120
      },
      "customer_id": "cus_Typ0px2W0aiEtl",
      "payment_method_id": "pm_1xMpj5bwRqN7LM",
      "invoice_id": "inv_1eTaiytfA0i2Va",
      "event_id": "<string>",
      "type": "topup",
      "source": "api",
      "amount_excluding_tax": 123,
      "credit_count": 32,
      "balance_after": 2000,
      "created_at": "2023-10-13T07:00:01.860Z",
      "updated_at": "2023-10-13T07: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

Query Parameters

take
number | null
default: 50
skip
number | null
default: 0
id
string | null
type
string | null
invoice_id
string | null
created_at
string | null

Response

200 - application/json
meta
object
required
data
object[]
required

List of CreditTransaction.