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

Note
  • The response includes only supported payment methods under the saved_payment_methods section.

  • If a customer has saved payment methods that are not supported, they will be explicitly listed separately in the response under an unsupported_payment_methods section.

Authentication and Security

The API supports two authentication methods:

  1. API Key (Basic Auth): Use the Authorization header with a base64-encoded API key.

  2. Client Authentication Token (Query Parameter): Provide the client_auth_token as a query parameter.

API Endpoints
Sandbox Link
POST
https://sandbox.juspay.in/customers/:customer_id/payment_methods
Production Link
POST
https://api.juspay.in/customers/:customer_id/payment_methods
Authorization Header
Headers
Query Params
200 : Success
Last updated 1 month ago