List cards
Cards
List Cards
List all cards belonging to your company, with optional filters by status, brand, or last-4 digits, plus aggregate statistics.
GET
List cards
Overview
GET /cards returns every card issued under your company, plus a statistics block summarizing counts and balances by status and per customer. Use it to populate dashboards, reconcile your own card records, or look up a specific card by last-4.
When to use it
- Render a “all cards” view in your back-office.
- Reconcile your records against Cartevo’s source of truth.
- Find a card by last-4 when a customer reports an issue without knowing the card ID.
Prerequisites
- Authenticated as a company user.
Request
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | string | No | Filter by card status. One of PENDING, ACTIVE, FROZEN, SUSPENDED, TERMINATED, FAILED. |
brand | string | No | Filter by VISA or MASTERCARD (case-insensitive). |
last4 | string | No | Last 4 digits of the card PAN. Useful for support lookups. |
sync | boolean | No | If true, force a re-fetch from the upstream issuer before returning. Slower; default false. |
Response
200 — Success
| Field | Type | Description |
|---|---|---|
data.company_id | string | Echoes your company ID for client-side validation. |
data.statistics.total | integer | Number of cards (filtered by query, if any). |
data.statistics.total_balance | number | Sum of balance across all returned cards (USD). |
data.statistics.available_slots | integer | How many more cards your company can issue under its current plan. |
data.statistics.by_customer | object | Map of customer_id → { cards, balance }. |
data.cards[] | array | Card records — see GET /cards/{id} for the per-card field reference. |
Note: This endpoint is not paginated — it returns the full set in a single response. If your company has more than a few thousand cards, prefer per-customer lookups via GET /customers/{id}/cards (currently undocumented; reach out if you need it).
Error responses
| Status | Trigger |
|---|---|
401 | Missing or expired Bearer token. |
400 | Invalid status or brand value. |
Code examples
cURL
Node.js (axios)
Related
GET /cards/{id}— full card detail (with optional reveal).POST /cards— issue a new card.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.