> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve user data for Click to Pay for Visa

> Use this endpoint to get user data for Click to Pay for Visa.

GET/digitalwallets/clicktopay/visa/getdata/\{user\_token}

Use this endpoint to get user data for Click to Pay for Visa.

For more information about this ecommerce checkout solution, see [Click to Pay](https://www.marqeta.com/docs/developer-guides/digital-wallets-and-tokenization.md#_click_to_pay).

## Header parameter

| Fields | Description |
| - | - |
| req-sys-id string  Required | Identifier generated by the card program. These identifiers are used for troubleshooting requests between the card program and Marqeta. **Allowable Values:**  36 char max |
| external-consumer-id-owner-bid string  Required | Visa Business Identifier (BID) of the entity to which an External Consumer ID belongs. **Allowable Values:**  1–8 chars |

## URL path parameters

| Fields | Description |
| - | - |
| user\_token string  Required | Unique identifier of the cardholder. **Allowable Values:**  Existing Visa Click To Pay User Token |

## Response body

| Fields | Description |
| - | - |
| data array of objects  Returned | Array of objects containing information of a Visa Click to Pay cardholder **Allowable Values:**  Valid array of data objects |
| data\[].**intent** object  Returned | Intent of the Visa Click to Pay operation. **Allowable Values:**  `type`, `value` |
| data\[].intent.**type** string  Returned | Type of the operation. **Allowable Values:**  `PRODUCT_CODE` |
| data\[].intent.**value** string  Returned | Value of the operation. **Allowable Values:**  `CLICK_TO_PAY` |
| data\[].**consumerInformation** object  Returned | Object containing cardholder details for Visa Click to Pay operation. **Allowable Values:**  `externalConsumerID`, `firstName`, `middleName`, `lastName`, `phones`, `emails`, `locale`, `countryCode`, `state` |
| data\[].consumerInformation.**externalConsumerID** string  Conditionally returned | Unique identifier of the cardholder. **Allowable Values:**  `externalConsumerID` |
| data\[].consumerInformation.**firstName** string  Conditionally returned | First name of the cardholder. **Allowable Values:**  `firstName` |
| data\[].consumerInformation.**middleName** string  Conditionally returned | Middle name of the cardholder. **Allowable Values:**  `middleName` |
| data\[].consumerInformation.**lastName** string  Conditionally returned | Last name of the cardholder. **Allowable Values:**  `lastName` |
| data\[].consumerInformation.**phones** array of strings  Conditionally returned | Phone numbers of the cardholder. **Allowable Values:**  Array of valid phone numbers |
| data\[].consumerInformation.**emails** array of strings  Conditionally returned | Email addresses of the cardholder. **Allowable Values:**  Array of valid email addresses |
| data\[].consumerInformation.**locale** string  Conditionally returned | Language and country in which the Visa Click to Pay service communicates with the cardholder, in ISO-639-1 format. **Allowable Values:**  `locale` |
| data\[].consumerInformation.**countryCode** string  Conditionally returned | Country code of the cardholder. **Allowable Values:**  `countryCode` |
| data\[].consumerInformation.**state** string  Conditionally returned | State of the cardholder. **Allowable Values:**  `state` |
| data\[].**paymentInstruments** array of objects  Returned | Array of objects containing details of payment instruments for Visa Click to Pay. **Allowable Values:**  `type`, `accountNumber`, `nameOnCard`, `expirationDate`, `tokenDetails`, `paymentAccountReference`, `billingAddress`, `status` |
| data\[].paymentInstruments\[].**type** string  Conditionally returned | Type of the payment instrument. **Allowable Values:**  `CARD` |
| data\[].paymentInstruments\[].**accountNumber** string  Conditionally returned | Masked account number of the payment instrument. **Allowable Values:**  16–19 chars |
| data\[].paymentInstruments\[].**nameOnCard** string  Conditionally returned | Name on the card. **Allowable Values:**  1–120 chars |
| data\[].paymentInstruments\[].**expirationDate** string  Conditionally returned | Date of the expiration in the format YYYY-MM. **Allowable Values:**  7 chars |
| data\[].paymentInstruments\[].**tokenDetails** object  Conditionally returned | **Allowable Values:**  `tokenReferenceID`, `tokenRequestorID` |
| data\[].paymentInstruments\[].tokenDetails.**tokenReferenceID** string  Returned | Unique reference identifier for the token. **Allowable Values:**  1–50 chars |
| data\[].paymentInstruments\[].tokenDetails.**tokenRequestorID** string  Returned | Unique token requestor identifier. **Allowable Values:**  1–11 chars |
| data\[].paymentInstruments\[].**paymentAccountReference** string  Conditionally returned | Reference of the payment account. **Allowable Values:**  29–50 chars |
| data\[].paymentInstruments\[].**billingAddress** object  Conditionally returned | Billing address for Visa Click to Pay. **Allowable Values:**  `address1`, `city`, `state`, `country`, `postalCode` |
| data\[].paymentInstruments\[].billingAddress.**address1** string  Conditionally returned | First line of the billing address. **Allowable Values:**  1–64 chars |
| data\[].paymentInstruments\[].billingAddress.**address2** string  Conditionally returned | Optional second line of the billing address. **Allowable Values:**  1–64 chars |
| data\[].paymentInstruments\[].billingAddress.**city** string  Conditionally returned | City of the billing address. **Allowable Values:**  1–32 chars |
| data\[].paymentInstruments\[].billingAddress.**state** string  Conditionally returned | State of the billing address. **Allowable Values:**  1–3 chars |
| data\[].paymentInstruments\[].billingAddress.**country** string  Returned | Country of the billing address. **Allowable Values:**  3 chars |
| data\[].paymentInstruments\[].billingAddress.**postalCode** string  Conditionally returned | Postal code of the billing address. **Allowable Values:**  1–9 chars |
| data\[].paymentInstruments\[].**status** string  Conditionally returned | Status of the payment instrument. **Allowable Values:**  `ACTIVE`, `INACTIVE`, `SUSPENDED`, `DELETED` |

## Sample response body

```json JSON expandable lines wrap theme={null}
{
  "data": [
    {
      "intent": {
        "type": "PRODUCT_CODE",
        "value": "CLICK_TO_PAY"
      },
      "paymentInstruments": [
        {
          "type": "CARD",
          "status": "ACTIVE",
          "cardType": "Visa Platinum",
          "issuerName": "Bank A",
          "nameOnCard": "John Doe",
          "tokenDetails": {
            "tokenReferenceID": "hflasdhflsdkfhoin3y038yfwn",
            "tokenRequestorID": "1234567890"
          },
          "accountNumber": "4111111145551140",
          "billingAddress": {
            "city": "San Francisco",
            "state": "CA",
            "country": "USA",
            "postalCode": "94105",
            "addressLine1": "1000 Market Street",
            "addressLine2": "Building 56",
            "addressLine3": "Suite 101"
          },
          "expirationDate": "2030-01",
          "panReferenceID": "alikbndesfiluwbn1342fs",
          "paymentAccountReference": "paymentAccountReferenceValues"
        }
      ],
      "consumerInformation": {
        "emails": [
          "alex123@hotmail.com"
        ],
        "locale": "en_US",
        "phones": [
          "16504005555"
        ],
        "status": "ACTIVE",
        "consent": {
          "version": "1.0",
          "presenter": "Bank A",
          "timeOfConsent": "2026-05-05T12:12:12.000Z"
        },
        "lastName": "Miller",
        "firstName": "Alex",
        "middleName": "Robert",
        "countryCode": "USA",
        "externalConsumerID": "63421837-d597-4f0f-89e4-930c1a7b9e85",
        "nationalIdentifiers": [
          {
            "type": "PASSPORT",
            "value": "A123456"
          }
        ]
      }
    }
  ]
}
```


## Related topics

- [Click to Pay for Visa Overview](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-visa.md)
- [Digital Wallets Management Overview](https://www.marqeta.com/docs/core-api/digital-wallets-management.md)
- [Retrieve Click to Pay for Visa request status](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-visa/retrieve-click-pay-visa-request-status.md)
- [Enroll a cardholder to Click to Pay for Visa](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-visa/enroll-cardholder-click-pay-visa.md)
- [Update cardholder information for Click to Pay for Visa](https://www.marqeta.com/docs/core-api/digital-wallets-management/click-to-pay-visa/update-cardholder-information-click-pay-visa.md)
