Retrieve Enrolled Payment Method by ID PCI Data

Retrieve a specific payment method that a user has enrolled in, including the full card number in the response.

Retrieve Enrolled Payment Method

To retrieve the enrolled payment method information, you need to provide the payment_method_id, which is the vaulted_token received when using the Enroll Payment Method endpoint.

PCI merchants only

This endpoint is only available for PCI-certified merchants. To enable it, contact your Key Account Manager (KAM).

GET/customers/{customer_id}/payment-methods/{payment_method_id}

Path Parameters

customer_idstringrequired

The unique identifier of the customer, created using the Create Customer endpoint (UUID, 36 chars).

payment_method_idstringrequired

The unique identifier of the payment_method. This information was received as the vaulted_token by enrolling a payment method using Enroll Payment Method (UUID, 36 chars).

Response

200

idempotency_keystring
idstring
account_idstring
namestring
descriptionstring
typestring
categorystring
countrystring
statusstring
sub_statusstring

Additional status detail.

vaulted_tokenstring
actionstring
redirect_urlstring

URL to redirect the customer to, for redirect workflows.

created_atstring
updated_atstring
enrollmentobject
Show enrollment properties
sessionstring
sdk_required_actionboolean
providerobject
Show provider properties
idstring
typestring
tokenstring
provider_statusstring

Status returned by the provider.

customer_payerobject
Show customer_payer properties
first_namestring
last_namestring
emailstring
genderstring
date_of_birthstring
documentobject
Show document properties
document_numberstring
document_typestring
phoneobject
Show phone properties
numberstring
country_codestring
billing_addressobject
Show billing_address properties
address_line_1string
address_line_2string
countrystring
statestring
citystring
zip_codestring
card_dataobject
Show card_data properties
numberstring

Full card number. Only returned for PCI-certified merchants.

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
issuerstring
issuer_codestring

Code of the card-issuing bank.

country_codestring

ISO 3166-1 alpha-2 country code of the card’s issuing country, derived from BIN lookup when the card is vaulted. Null when BIN enrichment data is unavailable.

categorystring
typestring
fingerprintstring
network_tokenobject

Network token details for the card. Only returned when a network token has been provisioned for the card.

Show network_token properties
networkstring

Card network that provisioned the token.

numberstring

The DPAN: the full network token number provisioned by the network, read from the vault. Only returned for PCI-certified merchants.

statusstring

Status of the network token.

parstring

Payment Account Reference (PAR) associated with the underlying card.

network_token_idstring

Token reference assigned by the card network.

token_dataobject
Show token_data properties
iinstring
lfdstring
expiration_monthinteger
expiration_yearinteger
responseobject
Show response properties
codestring
messagestring
last_successfully_usedboolean

Whether the payment method was successfully used at least once.

last_successfully_used_atstring

Timestamp of the last successful use (ISO 8601).

verifyobject
Show verify properties
vault_on_successboolean
currencystring

Currency of the card verification, as sent when the payment method was enrolled (ISO 4217).

external_subscriptionobject

The external subscription this payment method was linked to when it was enrolled. Returned only when the enrollment was created with verify.vault_on_success set to true and carried an external_subscription object. The key is omitted when there is no link, so an absent external_subscription does not prove the enrollment has none: the field is also omitted when the verification payment cannot be retrieved. Retrieve the verification payment to confirm.

Show external_subscription properties
idstring

Identifier of the subscription in your system.

customer_idstring

Identifier of the subscription’s customer in your system.

paymentobject

Payment details associated with the verification, if applicable.

preferredboolean

Whether this is the customer’s preferred payment method.

provider_dataobject

Additional data from the provider

Show provider_data properties
raw_requestobject

Obfuscated copy of the request WHITELABEL sent to the provider. Only returned for allowlisted organizations.

raw_responseobject

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]

404

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/customers/<customer_id>/payment-methods/<payment_method_id>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "idempotency_key": "2ca58c6d-8794-4c8f-a2f6-bba4b7498b74",
  "id": "2fd6bf11-2129-4061-9c2a-34e196f89753",
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "name": "VISA ****1111",
  "description": "VISA ****1111",
  "type": "CARD",
  "category": "CARD",
  "country": "US",
  "status": "ENROLLED",
  "sub_status": null,
  "vaulted_token": "7ced7717-f860-4705-a376-58a714953de9",
  "action": "FORM",
  "redirect_url": null,
  "created_at": "2024-06-04T12:47:46.992602Z",
  "updated_at": "2024-06-04T12:47:46.992603Z",
  "enrollment": {
    "session": "",
    "sdk_required_action": false
  },
  "provider": {
    "id": "YUNO",
    "type": "YUNO",
    "token": "e47299a5-269e-42a1-9be1-9f64e400413a",
    "provider_status": null
  },
  "customer_payer": {
    "first_name": "John",
    "last_name": "Doe",
    "email": "john.doe@example.com",
    "gender": "M",
    "date_of_birth": "1990-02-28",
    "document": {
      "document_number": "123456789",
      "document_type": "SSN"
    },
    "phone": {
      "number": "5551234567",
      "country_code": "1"
    },
    "billing_address": {
      "address_line_1": "123 Main St",
      "address_line_2": "Apt 4B",
      "country": "US",
      "state": "NY",
      "city": "New York",
      "zip_code": "10001"
    }
  },
  "card_data": {
    "number": "4111111111111111",
    "iin": "41111111",
    "lfd": "1111",
    "expiration_month": 3,
    "expiration_year": 26,
    "number_length": 16,
    "security_code_length": 3,
    "security_code_expires_in": 842,
    "brand": "VISA",
    "issuer": "JPMORGAN CHASE BANK N A",
    "issuer_code": null,
    "country_code": "US",
    "category": "CREDIT",
    "type": "CREDIT",
    "fingerprint": "55a7fe38-cdc3-45dc-8c5f-820751799c76",
    "network_token": {
      "network": "VISA",
      "number": "4895370000004321",
      "status": "ACTIVE",
      "par": "V0010013022182956191212272716",
      "network_token_id": "DM4MMC1GB000000011cdd1c11c874e27",
      "token_data": {
        "iin": "489537",
        "lfd": "4321",
        "expiration_month": 9,
        "expiration_year": 2030
      },
      "response": {
        "code": "00",
        "message": "Approved"
      }
    }
  },
  "last_successfully_used": null,
  "last_successfully_used_at": null,
  "verify": {
    "vault_on_success": false,
    "currency": "string",
    "external_subscription": {
      "id": "string",
      "customer_id": "string"
    },
    "payment": null
  },
  "preferred": null,
  "provider_data": {
    "raw_request": {},
    "raw_response": {}
  }
}