KashierDevelopersKashier Developers

Delete token

curl -X DELETE "https://test-fep.kashier.io/v3/cards/tokens/string?customerReference=string&merchantId=string" \  -H "Kashier-Hash: string"
{  "status": "SUCCESS",  "messages": {    "en": "Token deleted successfully.",    "ar": "Token deleted successfully."  },  "response": {    "token": "7a5e3c72-61d9-4ebf-88b9-27dc0f77b638",    "merchantId": "MID-24-989",    "customerReference": "01163550555"  }}

Removes a saved card token — useful for removing an expired card, a new card, or a stolen card's old information. The request is validated with a Kashier-Hash header — an HMAC SHA256 hash of the path /?tokenization={mid}.{reference} generated from your backend with your secret. Use only those parameters in the hash creation; don't add extra parameters.

Path Parameters

token*string

the card token you have saved before

Query Parameters

customerReference*string

your customer Id

merchantId*string

your merchant Id

Header Parameters

Kashier-Hash*string

Order hash generated from your backend using the HMAC SHA256 crypto mechanism, as described in the Kashier hashing documentation.

Response Body

application/json

application/json

application/json

application/json

DELETE
/v3/cards/tokens/{token}