KashierDevelopersKashier Developers

Delete token

curl -X DELETE "https://test-fep.kashier.io/v3/cards/tokens/string?customerReference=string&merchantId=string"
{  "status": "SUCCESS",  "messages": {    "en": "Token deleted successfully.",    "ar": "Token deleted successfully."  },  "response": {    "token": "00000000-0000-4000-8000-000000000010",    "merchantId": "MID-XXXXX-XXX",    "customerReference": "01000000000"  }}

Removes a saved card token — useful for removing an expired card, a new card, or a stolen card's old information. Send a Kashier-Hash header — an HMAC SHA256 hash of the path /?tokenization={mid}.{reference} keyed with your Payment API 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

Path Parameters

token*string

the card token you have saved before

Query Parameters

customerReference*string

your customer Id

merchantId*string

your merchant Id

Response Body

application/json

application/json

application/json

application/json

DELETE
/v3/cards/tokens/{token}