Skip to main content
GET
/
customers
/
{customer_id}
/
payment-methods
List all saved payment methods
curl --request GET \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{customer_id}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "saved_payment_methods": {
      "upi_collect": [
        {
          "count": 123,
          "last_used": "<string>",
          "vpa": "<string>"
        }
      ],
      "wallet": [
        {
          "id": "<string>",
          "wallet": "<string>",
          "gateway_reference_id": "<string>",
          "last_refreshed": "<string>",
          "linked": "<string>",
          "metadata": {
            "mobile_number": "<string>",
            "device_id": "<string>"
          },
          "sub_details": {
            "last_used": "<string>",
            "current_balance": "<string>",
            "last_refreshed": "<string>",
            "payment_method": "<string>",
            "payment_method_type": "<string>"
          }
        }
      ],
      "card": [
        {
          "card_sub_type": "<string>",
          "extended_card_type": "<string>",
          "provider_category": "<string>",
          "vault_provider": "<string>",
          "card_type": "<string>",
          "card_token": "<string>",
          "card_exp_month": "<string>",
          "expired": true,
          "tokenize_support": true,
          "card_exp_year": "<string>",
          "name_on_card": "<string>",
          "country_code": "<string>",
          "card_number": "<string>",
          "card_global_fingerprint": "<string>",
          "nickname": "<string>",
          "card_reference": "<string>",
          "metadata": {
            "origin_merchant_id": "<string>"
          },
          "card_issuer": "<string>",
          "provider": "<string>",
          "card_sub_type_category": "<string>",
          "card_fingerprint": "<string>",
          "juspay_bank_code": "<string>",
          "card_isin": "<string>",
          "card_brand": "<string>",
          "card_issuer_country": "<string>"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Access token

Path Parameters

customer_id
string
required

Customer Id

Query Parameters

payment_methods
string

Filter payment methods by type. Accepts multiple payment method types separated by commas. Example: payment_method=upi_collect,card,wallet. Available payment method types include: upi_collect, card, wallet.

Response

OK

message
string
success
boolean
content
object