Get token
curl -X GET "https://test-fep.kashier.io/v3/cards/tokens/string?merchantId=string" \ -H "Kashier-Hash: string"{ "status": "SUCCESS", "messages": { "en": "Card tokens is retrieved successfully", "ar": "Card tokens is retrieved successfully" }, "response": { "paymentMethod": { "type": "CARD", "card": { "expiry": { "month": "12", "year": "25" }, "number": "512345********2346", "nameOnCard": "John Doe", "cardToken": "7a5e3c72-61d9-4ebf-88b9-27dc0f77b638", "type": "perm" } } }}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 a token is still valid. To list every token a customer has saved, use Retrieve tokens instead. The request is validated with a Kashier-Hash header — an HMAC SHA256 hash of the path /?tokenization={merchantId}.{customerReference} 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 merchant Id
your customer 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
Retrieve tokens GET
Retrieves a customer's saved card tokens and info. The request is validated with a Kashier-Hash header — an HMAC SHA256 of the path /?tokenization={mid}.{customerReference} keyed with your Payment…
Delete token DELETE
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 pa…