Fetch Customer's Saved Payment Methods
Overview
This API enables merchants to fetch a customer's saved payment methods, helping create a faster and smoother checkout experience.
Supported Payment Methods
Currently, we support retrieving the following saved payment methods:
Virtual Payment Addresses (VPAs)
Cards
Wallets
The response includes only supported payment methods under the
saved_payment_methodssection.If a customer has saved payment methods that are not supported, they will be explicitly listed separately in the response under an
unsupported_payment_methodssection.
Authentication and Security
The API supports two authentication methods:
API Key (Basic Auth): Use the Authorization header with a base64-encoded API key.
Client Authentication Token (Query Parameter): Provide the client_auth_token as a query parameter.
Required for API key-based authentication
Example:- Eg: Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Specifies the content type of the request
Example:- application/json
We recommend passing the customer_id as the x-routing-id. If the customer is checking out as a guest, you can pass an alternative ID that helps track the payment session lifecycle. For example, this could be an Order ID or Cart ID.
This ID is associated with the customer. It plays a key role in ensuring consistency and maintaining connections across different systems. If you fail to pass the same x-routing-id for the same customer in all related API calls, it could lead to issues with API functionality. Therefore, it’s crucial that you use the same x-routing-id for all requests tied to the same customer.
Example:- customer_1122
Required for client token authentication
Example:- tkn_2424d8a02437437e896e10f3cc4ffb1a
Optional order ID to retrieve specific payment methods
Example:- order1737617967d
An array containing details of saved UPI Collect VPAs.
Number of Saved VPA’s
Timestamp (ISO 8601 format) of the last time this VPA was used.
The Virtual Payment Address saved by the customer.
An array containing details of saved card
The subtype of the card (e.g., VISA SIGNATURE)
Contains tokenization details of the card.
Status of the token (e.g., ACTIVE).
Last 4 digits of the tokenized card.
Reference ID for the tokenized card.
Expiry month of the card.
Expiry year of the card.
Unique fingerprint of the tokenized card.
Extended classification of the card (e.g., CREDIT, DEBIT).
Global identifier for the card across merchants.
User-defined label for the saved card (if any).
Indicates the provider classification, typically NETWORK.
Vault used to store card details (e.g., JUSPAY).
Juspay's internal reference for this saved card.
Primary card type such as CREDIT or DEBIT.
Identifier for the merchant where the card was originally saved.
Brand/network of the card (e.g., VISA, MASTERCARD).
The issuing bank (e.g., Kotak Mahindra Bank).
Indicates if this card supports tokenization for network tokens.
Expiry month of the card (e.g., 08).
Network provider of the card (VISA, MASTERCARD, etc.).
Indicates whether the card is expired.
Unique fingerprint for identifying the card securely.
Juspay-specific bank identifier (e.g., JP_KOTAK).
Expiry year of the card (e.g., 2028).
Cardholder’s name as entered during card addition.
ISO country code of the card (e.g., 356 for India).
Masked card number (e.g., XXXX-XXXXXXXX-0952).
ISIN (International Securities Identification Number) for the card.
Country of the issuing bank (e.g., INDIA).
Last four digits of the card for display purposes.
Indicates whether the wallet is currently linked to the user account.
Unique identifier for the saved wallet payment method.
Contains additional information about the wallet.
Masked mobile number associated with the wallet.
Device ID from which the wallet is accessed or registered.
Name of the wallet provider (e.g., TATANEU).
Internal or gateway-specific reference ID for the wallet.
Timestamp indicating when the wallet data was last refreshed.
Contains sub-level wallet usage and balance details.
Timestamp of the last usage of the wallet.
Current wallet balance. null if balance is not available.
Timestamp when the sub-detail was last updated.
Name of the wallet payment method.
Type of payment method (e.g., WALLET).

