Skip to main content
GET
/
api
/
canary
/
customers
/
{id}
/
payment-methods
List Customer's Payment Methods
curl --request GET \
  --url https://api.cashful.africa/api/canary/customers/{id}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "pm_001",
      "customerId": "customer_789",
      "type": "card",
      "brand": "visa",
      "last4": "4242",
      "expiryMonth": 12,
      "expiryYear": 2025,
      "isDefault": true,
      "createdAt": "2025-01-15T10:30:00.000Z",
      "updatedAt": "2025-01-15T10:30:00.000Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 1,
    "hasMore": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the customer

Query Parameters

limit
number

Maximum number of records to return

offset
number

Number of records to skip

Response

Successfully retrieved customer's payment methods

data
object[]
required
pagination
object
required