Customer cards
Customers
List Customer Cards
Retrieve every card belonging to a single customer.
GET
Customer cards
Overview
GET /customers/{id}/cards returns all cards owned by the specified customer. Use it instead of GET /cards (which lists every card in your company) when you only want one customer’s cards — there is no customer_id filter on the company-wide list.
When to use it
- Show a customer’s cards on their profile.
- Check how many cards a customer holds before issuing another.
Prerequisites
- The customer must belong to your company.
Request
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | Customer ID (UUID). |
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
sync | boolean | false | When true, refreshes each card’s balance and status from the provider before returning (slower). Omit for the cached database values. |
Response
200 — Success
data is an array of the customer’s cards. An empty list is returned as 404 (no cards found for the customer).
Error responses
| Status | Trigger |
|---|---|
404 | The customer has no cards, or does not belong to your company. |
Code examples
cURL
cURL (with provider sync)
Related
GET /cards— list all cards in your company.GET /cards/{id}— full details for one card.GET /customers/{id}/transactions— all card transactions for the customer.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Customer ID.
Query Parameters
When true, refreshes each card's balance and status from the provider before returning. Slower; omit for the cached database values.