Skip to main content
GET
/
v1
/
customers
/
{customer_id}
/
payment-methods
List Payment Methods
curl --request GET \
  --url https://api.sandbox.zafapay.com/v1/customers/{customer_id}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "customer_id": "cust_abc123",
  "payment_methods": [
    {
      "id": "pmi_abc123",
      "type": "card",
      "connector_id": "conn_xxx",
      "card": {
        "brand": "visa",
        "last4": "4242",
        "exp_month": 12,
        "exp_year": 2025
      },
      "is_default": true,
      "status": "active",
      "blocked_reason": null,
      "created_at": "2024-01-15T10:30:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication using access token

Path Parameters

customer_id
string
required

Customer ID

Example:

"cust_abc123"

Response

Success

customer_id
string

Customer ID

Example:

"cust_abc123"

payment_methods
object[]

List of saved payment methods