Get card by ID or token (v1)

Overview

Internal API to retrieve a single card of a party using either its card ID or its card token. Exactly one of cardId or cardToken must be provided. The response includes both identifiers.

GET (/internal/v1/parties/{partyId}/cards)

Parameters

  • partyId (path) (required): The ID of the party that owns the cards. See PartyId model.

  • cardId (query): The card ID. Provide either this or cardToken.

  • cardToken (query): The card token. Provide either this or cardId.

  • includeStatusHistory (query): Set to true to include history of card transitions in the response.

Responses

200 OK

Internal representation of a card. Same non-sensitive data as BasicCard, plus the card token, so internal services can reference a card by either its card ID or its card token.

400 Bad Request

Bad request response

404 Not Found

Not found error response

500 Internal Server Error

Internal server error response

Architecture

36 properties

Internal representation of a card. Same non-sensitive data as BasicCard, plus the card token, so internal services can reference a card by either its card ID or its card token.

cardId string
required

Unique identifier for the card.

cardholder string
required

Name of the person who owns the card.

type string

The Card Type. The current set of possible values includes: - VIRTUAL - PHYSICAL Please note that new possible values can be added in the future.

primaryAccountId string
required

Unique identifier for the account the card is associated to.

maskedPan string
required

Display-friendly, obfuscated version of the Primary Account Number (PAN).

expirationDate string <MM/YY>
required

Expiry date of the card

cardStatus string
required

Card current status

Allowed values: ACTIVE INACTIVE FROZEN TERMINATED EXPIRED
cardStatusDateTime string <date-time>
required
cardStatusHistory array [object]
fulfillmentStatus string
required

Card fulfillment status

Allowed values: ISSUED ORDERED SHIPPED DELIVERED
fulfillmentStatusDateTime
required
fulfillmentStatusHistory array [object]
alias string

The card alias.

atmWithdrawalsAllowed boolean

Indicates whether ATM cash withdrawals are permitted for the card. By default at card creation this is true.

onlinePaymentsAllowed boolean

Indicates whether online (e-commerce) payments are permitted for the card. By default at card creation this is true.

contactlessAllowed boolean

Indicates whether contactless payments are permitted for the card. By default at card creation this is true.

additionalAttributes object

Free-form map of non-standard attributes.

limitsList array [object]
productId string

The product id value associated with the card. If none is provided, then the default product id for virtual cards will be used.

customisation object

The customisation to be applied on the card.

walletTokens array [object]
token string

The card token used as a card reference by internal services.

7 properties

Bad request response

code string
Allowed values: urn:plmr:cards:api:INVALID_CARD_LOOKUP_REQUEST urn:plmr:cards:api:BAD_REQUEST urn:plmr:cards:api:INVALID_PARAM urn:plmr:cards:api:WEB_APPLICATION
message string
requestId string
fieldErrors array [object]
3 properties

Not found error response

code string
Allowed values: urn:plmr:cards:api:RESOURCE_UNKNOWN urn:plmr:cards:api:CARD_NOT_FOUND
message string
requestId string
7 properties

Internal server error response

code string
Allowed values: urn:plmr:cards:api:INTERNAL_SERVER_ERROR
message string
requestId string
fieldErrors array [object]