Skip to main content
The Marqeta platform facilitates the use of digital wallets for storing tokenized cards and making payments. The API provides endpoints that enable mobile applications to provision tokens into a digital wallet. It also provides endpoints for retrieving digital wallet tokens and for managing their lifecycle through state transitions. For an overview of digital wallet tokens, see Digital Wallets and Tokenization.

Create digital wallet token provisioning request for Apple Wallet

Action: POST Endpoint: /digitalwalletprovisionrequests/applepay Use this endpoint to return card data for use in provisioning a digital wallet token into Apple Wallet. The returned card data is encrypted using the digital wallet provider’s encryption key, thereby reducing your Payment Card Industry (PCI) compliance overhead.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Submit a post-tokenization authentication decision

Action: POST Endpoint: /digitalwallets/postTokenizationAuthenticationDecision Use this endpoint to submit a post-tokenization authentication decision from the customer to Marqeta in a secure card on file scenario. Marqeta validates the request, stores it, and forwards the authentication decision to Mastercard Digital Enablement Service (MDES) in real time. Marqeta then returns the MDES response back to the customer synchronously. This enables issuers to notify MDES of the cardholder’s authentication outcome following tokenization, ensuring that the token requestor receives timely and accurate decisioning.

Request body

Response body

Create a digital wallet token provisioning request for Google Wallet as part of UPP

Action: POST Endpoint: /digitalwalletprovisionrequests/v2/androidpay Use this endpoint to retrieve the card data needed to provision a digital wallet token into Google Wallet as part of Unified Push Provisioning (UPP). The returned card data is encrypted using the digital wallet provider’s encryption key, thereby reducing your Payment Card Industry (PCI) compliance overhead.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Create digital wallet token provisioning request for Google Wallet

Action: POST Endpoint: /digitalwalletprovisionrequests/androidpay Use this endpoint to return card data for use in provisioning a digital wallet token into Google Wallet. The returned card data is encrypted using the digital wallet provider’s encryption key, thereby reducing your Payment Card Industry (PCI) compliance overhead.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Create digital wallet token provisioning request for Samsung Wallet

Action: POST Endpoint: /digitalwalletprovisionrequests/samsungpay
This endpoint is limited in availability. For more information, contact your Marqeta representative.
Use this endpoint to return card data for use in provisioning a digital wallet token into Samsung Wallet. The returned card data is encrypted using the digital wallet provider’s encryption key, thereby reducing your Payment Card Industry (PCI) compliance overhead.

Request body

Response body

Create digital wallet token provisioning request for XPay

Action: POST Endpoint: /digitalwalletprovisionrequests/xpay
This endpoint is limited in availability. For more information, contact your Marqeta representative.
Use this endpoint to return card data for use in provisioning a digital wallet token into an XPay digital wallet. The returned card data is encrypted using the digital wallet provider’s encryption key, thereby reducing your Payment Card Industry (PCI) compliance overhead.

Request body

Response body

Create digital wallet token transition

Action: POST Endpoint: /digitalwallettokentransitions Use this endpoint to transition a digital wallet token from one state to another.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Error responses

Sample error response body

JSON

Retrieve digital wallet token transition

Action: GET Endpoint: /digitalwallettokentransitions/{token} Use this endpoint to retrieve a specific digital wallet token transition. This endpoint supports field filtering.

URL path parameters

URL query parameters

Response body

Sample response body

JSON

List transitions for digital wallet token

Action: GET Endpoint: /digitalwallettokentransitions/digitalwallettoken/{token} Use this endpoint to return an array of all transitions for a particular digital wallet token. This endpoint supports field filtering, pagination, and sorting.

URL path parameters

URL query parameters

Response body

Sample response body

JSON

List digital wallet tokens

Action: GET Endpoint: /digitalwallettokens Use this endpoint to retrieve a list of digital wallet tokens.

URL query parameters

Response body

Retrieve digital wallet token

Action: GET Endpoint: /digitalwallettokens/{token} Use this endpoint to retrieve a specific digital wallet token.

URL path parameters

Response body

Sample response body

JSON

List digital wallet tokens for card

Action: GET Endpoint: /digitalwallettokens/card/{card_token} Use this endpoint to return an array of all digital wallet tokens for a particular card. This endpoint supports pagination.

URL path parameters

URL query parameters

Response body

Sample response body

JSON

Retrieve digital wallet token PAN

Action: GET Endpoint: /digitalwallettokens/{token}/showtokenpan Use this endpoint to retrieve a digital wallet token with the entire primary account number (PAN) displayed. The PAN returned is of the digital wallet token and not of the card. For security reasons, the PAN is not fully visible on the digital wallet token returned by GET /digitalwallettokens/{token}.
Sending a request to this endpoint requires Payment Card Industry (PCI) Data Security Standard (DSS) compliance. You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder’s PAN, personal identification number (PIN), and card expiration date.

URL path parameters

Response body

Sample response body

JSON

Create request for Apple Wallet web push provisioning

Action: POST Endpoint: /digitalwallets/wpp/applePayJWT Use this endpoint to add a card to Apple Wallet via a web application.

Header parameter

Request body

Response body

Create request for Google Wallet web push provisioning

Action: POST Endpoint: /digitalwallets/wpp/googlePayPushProvisioningNotification Use this endpoint to add a card to Google Wallet via a web application. This endpoint does not return a payload in response to a request. Instead, a successful call will return a response code only.

Header parameter

Request body

Create a request for Google Wallet web push provisioning (UPP)

Action: POST Endpoint: /digitalwallets/wpp/v2/googlePayPushProvisioningNotification Use this endpoint to add a card to Google Wallet via a web application using the Unified Push Provisioning (UPP) flow.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Check eligibility for Click to Pay for Mastercard

Action: GET Endpoint: /digitalwallets/clicktopay/mastercard/checkeligibility Use this endpoint to check if a provided BIN prefix is eligible for Click to Pay for Mastercard. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

URL query parameters

Response body

Sample response body

JSON

Enroll a card to Click to Pay for Mastercard

Action: POST Endpoint: /digitalwallets/clicktopay/mastercard/enroll Use this endpoint to enroll a card in Click to Pay for Mastercard. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Retrieve Click to Pay for Mastercard enrollment status

Action: GET Endpoint: /digitalwallets/clicktopay/mastercard/status/{token} Use this endpoint to return the status of a specific Click to Pay for Mastercard request. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Enroll a cardholder to Click to Pay for Visa

Action: POST Endpoint: /digitalwallets/clicktopay/visa/enroll Use this endpoint to enroll a new cardholder in Click to Pay for Visa. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Enroll a card to Click to Pay for Visa

Action: POST Endpoint: /digitalwallets/clicktopay/visa/enrollcards Use this endpoint to enroll a new card for an existing cardholder in Click to Pay for Visa. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Retrieve user data for Click to Pay for Visa

Action: GET Endpoint: /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.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Update cardholder information for Click to Pay for Visa

Action: PUT Endpoint: /digitalwallets/clicktopay/visa/users Use this endpoint to update cardholder information for Click to Pay for Visa. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Delete cardholder information for Click to Pay for Visa

Action: DELETE Endpoint: /digitalwallets/clicktopay/visa/users Use this endpoint to delete cardholder information for Click to Pay for Visa. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Update card information for Click to Pay for Visa

Action: PUT Endpoint: /digitalwallets/clicktopay/visa/cards Use this endpoint to update card information for Click to Pay for Visa. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Delete card information for Click to Pay for Visa

Action: DELETE Endpoint: /digitalwallets/clicktopay/visa/cards/{card_token} Use this endpoint to delete card information for Click to Pay for Visa. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Retrieve Click to Pay for Visa request status

Action: GET Endpoint: /digitalwallets/clicktopay/visa/status/{requestTraceId} Use this endpoint to return the status of a Click to Pay for Visa request. For more information about this ecommerce checkout solution, see Click to Pay.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Create a Visa Alias

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases Use this endpoint to create a Visa Alias.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Retrieve Visa Alias by Visa Alias ID

Action: GET Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId} Use this endpoint to retrieve a Visa Alias by its Visa Alias ID.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Update Visa Alias by Visa Alias ID

Action: PUT Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId} Use this endpoint to update a Visa Alias by its Visa Alias ID.

Header parameter

URL path parameters

Request body

Sample request body

JSON

Delete Visa Alias by Visa Alias ID

Action: DELETE Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId} Use this endpoint to delete a Visa Alias by Visa Alias ID.

Header parameter

URL path parameters

Retrieve alias internal ID

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases/aliasId Use this endpoint to retrieve the internal ID associated with a Visa Alias.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Update alias status

Action: PUT Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId}/status Use this endpoint to update the status of a Visa Alias.

Header parameter

URL path parameters

Request body

Sample request body

JSON

Create Visa Alias payment credential

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId}/cards Use this endpoint to create a payment credential associated with a Visa Alias.

Header parameter

URL path parameters

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Retrieve a Visa Alias payment credentials

Action: GET Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId}/cards Use this endpoint to retrieve a list of payment credentials associated with a Visa Alias.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Retrieve payment credential

Action: GET Endpoint: /digitalwallets/aliasdirectory/visa/cards/{paymentCredentialId} Use this endpoint to retrieve an existing payment credential.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Update payment credential

Action: PUT Endpoint: /digitalwallets/aliasdirectory/visa/cards/{paymentCredentialId} Use this endpoint to update an existing payment credential.

Header parameter

URL path parameters

Request body

Sample request body

JSON

Delete an existing payment credential

Action: DELETE Endpoint: /digitalwallets/aliasdirectory/visa/cards/{paymentCredentialId} Use this endpoint to delete an existing payment credential.

Header parameter

URL path parameters

Create an additional Visa Alias

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases/{aliasId}/additionalAlias Use this endpoint to create additional Visa Aliases associated with an existing main Visa Alias.

Header parameter

URL path parameters

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Delete an additional Visa Alias

Action: DELETE Endpoint: /digitalwallets/aliasdirectory/visa/additionalAliases/{additionalAliasId} Use this endpoint to delete an additional Visa Alias by its Visa Alias ID.

Header parameter

URL path parameters

Retrieve Visa Alias by external ID

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases/getByExternalId Use this endpoint to retrieve a Visa Alias by its external ID.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Create a report request

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/reports Use this endpoint to create a new report request.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Retrieve report status by report ID

Action: GET Endpoint: /digitalwallets/aliasdirectory/visa/reports/{reportId} Use this endpoint to retrieve the status of a report by its report ID.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Retrieve file by file ID and report ID

Action: GET Endpoint: /digitalwallets/aliasdirectory/visa/reports/{reportId}/file/{fileId} Use this endpoint to retrieve a file by its file ID and report ID.

Header parameter

URL path parameters

Response body

Sample response body

JSON

Check for Visa Alias

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases/inquiry Use this endpoint to check for available Visa Aliases for alias resolution. One or more Visa Aliases may be available.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Resolve a Visa Alias

Action: POST Endpoint: /digitalwallets/aliasdirectory/visa/aliases/resolve Retrieve information about a Visa Alias and all the associated payment credentials.

Header parameter

Request body

Sample request body

JSON

Response body

Sample response body

JSON