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
the card token you have saved before
Query Parameters
your customer Id
your merchant Id
Header Parameters
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
Get token GET
Retrieves a single saved card token by its value, returning the masked card number, expiry, and cardholder name. Use it to show a customer which card is on file before charging it, or to check that…
List saved card tokens GET
Lists every card token saved on your merchant account, with the agreement each one was saved under. This is the account-wide view, and it is a different endpoint from the customer-scoped GET /v3/ca…