Get buyer's tokens

get
/api/v3/buyers/{buyerId}/tokens
lts

This endpoint returns a list of all tokens associated with the buyer. Includes detailed information about each token and payment method.

Header parameters
Attribute
Requirement
Description
x-public-key
mandatory
a public key that identifies the merchant account (there can be several for one merchant)
x-buyer-ip
mandatory
is responsible for information about the buyer's IP address
x-date
mandatory
is responsible for the date and time of sending the request
x-token
mandatory
generated on the merchant side
x-source
mandatory
identifier of the type of service that is the initiator of the request
x-id
mandatory
service identifier from which the current request is made
Request parameters
Attribute
Type
Requirement
Description
Standard
buyerId
string
mandatory
Unique ID of buyer in the system
uuid
Response parameters
Attribute
Type
Description
data
array of objects
An array of payment methods with tokens
meta
array
Provides metadata about the response
{
    "data": [
        {
            "id": "6a6d2f1a-cc44-4779-a937-147494fb9e69",
            "value": "5032",
            "paymentMethodType": "card",
            "paymentMethodIdentifier": "461fb87dfb1336593ae416e9ca6b8a1652c4262d6ea8b694acfe1c873013ddb1124e23cbb02ef1c7af5717b1b649476ff633c1fa63f2190aec215ae0c0818849",
            "tokens": [
                {
                    "id": 1163866,
                    "provider": "safecharge",
                    "mid": "default",
                    "bin": "400002",
                    "email": "qa.auto+st+olkgqsehap@rockalab.com",
                    "isEnabled": true,
                    "chargeId": "1ead2740-e000-4805-bdcb-13d0dedda2e2",
                    "createdAt": "2024-10-24 06:32:54",
                    "updatedAt": "2024-10-24 08:23:21",
                    "successfullyUsedAt": "2024-10-24 06:32:54"
                }
            ]
        }
    ],
    "meta": {
        "type": "collection",
        "total": 1,
        "offset": 0
    }
}