WiPay
WAPIsv2.0.0Trusted Cards

Retrieve Trusted Cards

Retrieve stored trusted card details

Retrieve trusted cards on file for the authenticated user. You can retrieve all cards or filter by UUID. Card numbers are masked for security.

If a UUID is supplied but is not linked to the authenticated user, the endpoint returns data: [].

Endpoints

GET /trusted-cards
GET /trusted-cards/{uuid}
AccessRequirement
AuthenticatedYes
Required Scopewapi-trusted-cards-retrieve, or wapi-trusted-cards-all
Rate Limit15 requests per minute

Request

Headers

HeaderValue
Acceptapplication/json
AuthorizationBearer <access_token>
X-WAPI-Keywapi_live_<kid>_<secret> or wapi_test_<kid>_<secret>

Send exactly one of Authorization or X-WAPI-Key.

Path Parameters

ParameterTypeRequiredDescription
uuidstringNoThe UUID of a specific trusted card to retrieve. Omit to retrieve all cards.

Notes:

  • uuid, when provided, must be a valid UUID.
  • verify_expiry is returned in UTC when the card is still awaiting verification.

Responses

200 OK

Unverified card
{
  "message": "OK",
  "data": [
    {
      "card_type": "visa",
      "environment": "sandbox",
      "exp_yy": "23",
      "exp_mm": "12",
      "first_name": "TEST",
      "last_name": "TESTER",
      "pan": "************1111",
      "uuid": "213e4777-2179-4fbd-9540-84e8ed83187a",
      "verified": false,
      "verify_expiry": "2023-04-28T08:57:04+00:00"
    }
  ]
}
Verified card
{
  "message": "OK",
  "data": [
    {
      "card_type": "visa",
      "environment": "sandbox",
      "exp_yy": "23",
      "exp_mm": "12",
      "first_name": "TEST",
      "last_name": "TESTER",
      "pan": "************1111",
      "uuid": "213e4777-2179-4fbd-9540-84e8ed83187a",
      "verified": true,
      "verify_expiry": null
    }
  ]
}
No cards on file
{
  "message": "OK",
  "data": []
}

Card Object

FieldTypeDescription
uuidstringUnique card identifier (UUID v4)
card_typestringCard brand (e.g., "visa", "mastercard")
panstringMasked card number (last 4 digits visible)
first_namestringCardholder's first name
last_namestringCardholder's last name
exp_mmstringExpiration month (2 digits)
exp_yystringExpiration year (2 digits)
environmentstring"sandbox" or "live"
verifiedbooleanWhether the card has been verified
verify_expirystring | nullVerification deadline (null if verified)

400 Bad Request

{
  "message": "The uuid is not a valid UUID (version 4)."
}

401 Unauthorized

{
  "message": "Unauthorized"
}

403 Forbidden

{
  "message": "Invalid scope(s) provided."
}

Example

curl -X GET "https://ttsb.wipayfinancial.com/wapi/trusted-cards/213e4777-2179-4fbd-9540-84e8ed83187a" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"