KashierDevelopersKashier Developers

Retrieve tokens

curl -X GET "https://test-fep.kashier.io/v3/cards/customer?customerReference=string&merchantId=string"
{  "status": "SUCCESS",  "messages": {    "en": "Card tokens retrieved successfully",    "ar": "Card tokens retrieved successfully"  },  "response": {    "paymentMethods": [      {        "type": "CARD",        "card": {          "expiry": {            "month": "06",            "year": "25"          },          "number": "512345******2346",          "nameOnCard": "John Doe",          "cardToken": "00000000-0000-4000-8000-000000000010"        },        "customer": {          "reference": "01000000000"        }      },      {        "type": "CARD",        "card": {          "expiry": {            "month": "12",            "year": "25"          },          "number": "512345******2346",          "nameOnCard": "John Doe",          "cardToken": "00000000-0000-4000-8000-000000000011"        },        "customer": {          "reference": "01000000000"        }      },      {        "type": "CARD",        "card": {          "expiry": {            "month": "12",            "year": "25"          },          "number": "512345******2346",          "nameOnCard": "John Doe",          "cardToken": "00000000-0000-4000-8000-000000000012"        },        "customer": {          "reference": "01000000000"        }      },      {        "type": "CARD",        "card": {          "expiry": {            "month": "12",            "year": "25"          },          "number": "512345******2346",          "nameOnCard": "John Doe",          "cardToken": "00000000-0000-4000-8000-000000000013"        },        "customer": {          "reference": "01000000000"        }      }    ]  }}

Retrieves a customer's saved card tokens and info. Send a Kashier-Hash header — an HMAC SHA256 of the path /?tokenization={mid}.{customerReference} keyed with your Payment API Key (not the Secret Key). Use only those parameters in the hash creation; don't add extra parameters.

Authorization

kashierHash
Kashier-Hash<token>

A request hash you compute on your server — an HMAC SHA256 keyed with your Payment API Key — sent in the Kashier-Hash header. It is computed per request, so it is not a stored credential. See the hashing guide for the string to sign.

In: header

Query Parameters

customerReference*string

your customer Id

merchantId*string

your merchant Id

Response Body

application/json

application/json

application/json

GET
/v3/cards/customer