v5

latestOpenAPI 3.1.02026-07-262421791.5 MB
card-sensitive-details

Get sensitive card details

Fetches the card's Primary Account Number (PAN), security code (CVV2), expiry date, and cardholder name.

Requires an encrypted JWE payload for security. See the sensitive card details guide for implementation details.

To retrieve sensitive card details, the card must be in either ACTIVE or FROZEN status. A 403 response will be returned for cards in any other status.

{% admonition type="warning" %} This endpoint is SCA protected when applicable. If your profile is registered within the UK and/or EEA, SCA most likely applies. For more information, see implementing SCA. {% /admonition %}

post/twcard-data/v1/sensitive-card-data/details

Headers

x-tw-twcard-card-tokenstring uuid required

The card token identifying which card to retrieve details for.

X-External-Correlation-Idstring uuid

Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.

Request body

keyVersioninteger required

The version of the encryption key to use. Always set to 1.

encryptedPayloadstring required

Your JWE encrypted payload.

Example request

{
  "keyVersion": 1,
  "encryptedPayload": "<your JWE>"
}

Response

Sensitive card details retrieved successfully.

noncestring uuid

An arbitrary UUID issued from the cryptographic communication.

cvv2string

The card CVV2 security code.

panstring

The card Primary Account Number.

expiryDatestring

The card expiry date in MM/YY format.

cardholderNamestring

Name on the card.

Example response

{
  "nonce": "33d51227-9ad6-4624-b4b7-7853b56076dd",
  "cvv2": "111",
  "pan": "4396910000012345",
  "expiryDate": "10/31",
  "cardholderName": "John Smith"
}