Retrieve Enrolled Payment Methods

Get the list of payment methods the user has enrolled.

Instruments vaulted by an Apple Pay or Google Pay CIT (vault_on_success: true) are intentionally not included in this list. The vaulted_token is returned only in the CIT payment response, so store it on your side. A stored wallet token can still be resolved with Retrieve Enrolled Payment Method by ID. See Stored credentials.

GET/customers/{customer_id}/payment-methods

Path Parameters

customer_idstringrequired

The unique identifier of the customer, created using the Create Customer endpoint (MAX 64; MIN 36).

Response

200

payment_methodsobject[]
Show payment_methods properties
idempotency_keyany
namestring
descriptionstring
iconstring
typestring
categorystring
countrystring
statusstring
sub_statusany
vaulted_tokenstring
callback_urlany
actionany
redirect_urlany
created_atstring
updated_atstring
card_dataobject
Show card_data properties
iinstring
lfdstring
expiration_monthinteger
expiration_yearinteger
number_lengthinteger
security_code_lengthinteger
security_code_expires_ininteger

Seconds left before the stored security code stops being available to the PCI forward proxy. Returns -1 once that window has closed, and is omitted entirely when the card carries no security code. Only present for organizations with the PCI forward proxy enabled.

brandstring
issuerany
issuer_namestring
issuer_codestring
categoryany
typestring
last_successfully_usedboolean
last_successfully_used_atstring

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/customers/<customer_id>/payment-methods" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "payment_methods": [
    {
      "idempotency_key": null,
      "name": "VISA ****1111",
      "description": "VISA ****1111",
      "icon": "https://icons.prod.whitelabel.com/visa_logosimbolo.png",
      "type": "CARD",
      "category": "CARD",
      "country": "US",
      "status": "ENROLLED",
      "sub_status": null,
      "vaulted_token": "46adcbc0-aa26-4867-a4e7-28a5ad9100ae",
      "callback_url": null,
      "action": null,
      "redirect_url": null,
      "created_at": "2023-08-05T14:22:06.766268Z",
      "updated_at": "2023-08-05T14:22:06.766268Z",
      "card_data": {
        "iin": "41111111",
        "lfd": "1111",
        "expiration_month": 3,
        "expiration_year": 27,
        "number_length": 16,
        "security_code_length": 3,
        "security_code_expires_in": 842,
        "brand": "VISA",
        "issuer": null,
        "issuer_name": "JPMORGAN_CHASE_BANK_NA",
        "issuer_code": "US_JPMORGAN_CHASE_BANK_NA",
        "category": null,
        "type": "CREDIT"
      },
      "last_successfully_used": false,
      "last_successfully_used_at": ""
    }
  ]
}