Skip to navigation

List all cards

Lists the account holder’s cards, newest createdAt first, or with sort=cardholderName by the cardholder’s last name, then first name. Cards that tie are in no particular order, and paging returns each once. EXTERNAL cards, added from accounts at other banks, are listed once a user holds them.

Filters combine with AND; repeat status or type to match any of the values. A userId or cardProgramId outside the account holder returns an empty page. A page can hold fewer than limit cards, even none, while pageInfo.hasNextPage is true; keep reading until it is false. Card details and tokens are never listed; read one card with extend instead.

extend adds user, accountHolder or cardProgram to every card, each with the read permission of that resource.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Query parameters

limitintegerOptional1-100Defaults to 25
The most items to return, from 1 to 100.
afterstringOptional1-2048 characters

The pageInfo.endCursor of the previous page. A cursor is valid for 24 hours, for the same request filters and the same API credential owner and account holder.

userIdstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters
Only the cards of this user.
cardProgramIdstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters
Only the cards issued on this card program.
statuslist of enumsOptional
Only cards in these statuses. Repeat the parameter for more than one.
Allowed values:
typelist of enumsOptional
Only cards of these types. Repeat the parameter for more than one.
Allowed values:
searchstringOptional1-256 characters

Only cards whose text has every word, case-insensitive. The text holds the cardholder’s name, the nickname, the last 4, the type, the status and the allocation. Put a phrase in double quotes to match it whole, and prefix a word with - to leave out cards that have it. Dates and amounts are refused: use cancelAt.gte and cancelAt.lt.

cancelAt.gteintegerOptional0-9007199254740991

Only cards with a cancelAt set at or after this, in epoch milliseconds.

cancelAt.ltintegerOptional0-9007199254740991

Only cards with a cancelAt set before this, in epoch milliseconds.

sortenumOptionalDefaults to createdAt

createdAt: newest first. cardholderName: by the cardholder’s last name, then first name, A to Z; with userId, newest first.

Allowed values:
extendlist of enumsOptional

Summaries to add to every card. user, accountHolder and cardProgram need users:read, accountHolders:read and financialAccounts:read. Repeat the parameter for more than one.

Allowed values:

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Response

A page of cards.
datalist of objects
The cards on this page.
pageInfoobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error