Card Detokenize

POST https://gateway-api.paycertify.com/api/tokens/detokenize

This endpoint detokenizes a given credit card token. You will need to provide the token you wish to detokenize and as part of the response you’ll get the original number previously stored and it’s expiration month and year.

Parameter Type Length Presence Description Example
card_token string 8-19 Required The card token to de-tokenize 4111098765431111
Parameter Type Length Description Example
card_token.id uuid 36 This token’s ID 41f00869-d7b3-413e-9476-9ef1a8bc2f28
card_token.merchant_id uuid 36 The token’s merchant ID 41f00869-d7b3-413e-9476-9ef1a8bc2f28
card_token.card_number string 8-19 The original credit card number 4111111111111111
card_token.card_expiry_month string 8-19 The original credit card expiration month 12
card_token.card_expiry_year string 8-19 The original credit card expiration year 2025
  curl --request POST \
    --url https://gateway-api.paycertify.com/api/tokens/detokenize \
    --header 'Authorization: Bearer YOUR_API_TOKEN' \
    --form 'card_token=4111098765431111'

Responds with:

  {
    "card_token": {
      "id": "41f00869-d7b3-413e-9476-9ef1a8bc2f28",
      "merchant_id": "41f00869-d7b3-413e-9476-9ef1a8bc2f28",
      "card_number": "4111111111111111",
      "card_expiry_month": "12",
      "card_expiry_year": "2025"
    }
  }