Skip to navigation

Retrieve a card

Returns one card of the account holder.

extend=cardToken adds a short-lived token for the issuer’s card display SDK; cardToken.type names that SDK and cardToken.issuerId is the card’s ID at its issuer. Pass the cardToken unchanged to the embedded card viewer’s mount({ container, cardToken }). extend=cardDetails adds the full card number and security code, needs the cardDetails:reveal permission and is recorded in the audit log. Both need an ACTIVE card; some issuers only offer cardToken, and an EXTERNAL card offers neither. Responses are never cached.

extend=user, extend=accountHolder and extend=cardProgram add a summary of each, with the read permission of that resource.

Authentication

AuthorizationBearer

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

Path parameters

cardIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters
The card's ID.

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

extendlist of enumsOptional

Members to add to the card. cardToken and cardDetails need an ACTIVE card, and cardDetails the cardDetails:reveal permission. 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

The card, with the extensions asked for.
idstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

object"card"

Always card.

livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

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

A resource ID. Treat it as an opaque, case-sensitive string.

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

A resource ID. Treat it as an opaque, case-sensitive string.

typeenum

VIRTUAL and PHYSICAL cards are issued on a card program. An EXTERNAL card was added from an account at another bank, which issues it, sets its limits and services it; it changes here only and publishes no events.

Allowed values:
statusenum

PENDING until the card is issued and activated, INACTIVE while a physical card waits for its holder to activate it or after it was turned off as lost or stolen. statusReason tells these apart.

Allowed values:
policyobject

Spending limits in the account holder’s currency, and the card’s other spending controls. Each limit is at least the narrower ones: transaction, daily, weekly, monthly, then total. A control that is not set is absent. Where the card was issued with a limit tolerance, an authorization slightly above a limit may still be approved; the limits read back here are always the ones that were set.

createdAtdatetime
When the card was created.
updatedAtdatetime
When the card last changed.
cardProgramIdstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The card program the card is issued on. Absent on an EXTERNAL card.

statusReasonenumOptional

Why the card is PENDING or INACTIVE; absent in any other status. ISSUING: being issued and activated. DRAFT: added but not issued. AWAITING_ACTIVATION: a physical card waiting for its holder to activate it. DEACTIVATED: turned off, for example as lost or stolen.

Allowed values:
nicknamestringOptional
Your label for the card. Absent when not set.
last4stringOptionalformat: "^[0-9]{4}$"
Last four digits of the card number. Absent until the card is issued.
networkenumOptional
Card network.
Allowed values:
expirationMonthintegerOptional1-12
The month the card expires, 1 to 12. Absent until the card is issued.
expirationYearintegerOptional
The year the card expires. Absent until the card is issued.
activatedAtdatetimeOptional

When the card first became ACTIVE. Absent until it has.

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

A resource ID. Treat it as an opaque, case-sensitive string.

fulfillmentobjectOptional
walletTokenslist of objectsOptional
Apple Pay and Google Pay tokens for this card.
pendingChangeobjectOptional

A change to the card that is still in progress, or whose outcome is still being confirmed with the card issuer. Present only while it is; until it resolves, every other change to the card is refused with SERVICE_UNAVAILABLE.

cardTokenobjectOptional

Only on GET /cards/{cardId} with extend=cardToken: what the issuer’s card display SDK needs to show the card details in the cardholder’s browser or app. The embedded card viewer takes it unchanged.

cardDetailsobjectOptional

Only on GET /cards/{cardId} with extend=cardDetails. Never store or log these values.

userobjectOptional

The card’s user, with extend=user.

accountHolderobjectOptional

The card’s account holder, with extend=accountHolder.

cardProgramobjectOptional

The card’s program, with extend=cardProgram. Its financial account has the same ID.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error