# Get non-PCI card information
Get card non-sensitive (non-PCI) information.
NOTE: This endpoint requires an account-specific access token - a token encoded with a Pismo account ID.
# OpenAPI definition
```json
{
"openapi": "3.0.1",
"info": {
"title": "Card issuing - Cards",
"version": "1.4.6",
"description": "Card endpoints API",
"contact": {
"name": "API Support",
"url": "https://developers.pismo.io/support/"
},
"license": {
"name": "Copyright Pismo"
}
},
"servers": [
{
"url": "https://sandbox.pismolabs.io",
"description": "Sandbox API server for testing."
},
{
"url": "https://gw-pci.pismolabs.io",
"description": "Sandbox PCI API server for testing"
}
],
"security": [
{
"BearerAuth": []
}
],
"tags": [
{
"name": "Cards",
"description": "Card management endpoints"
}
],
"components": {
"parameters": {
"accountIdHeader": {
"in": "header",
"name": "x-account-id",
"schema": {
"type": "integer"
},
"description": "Pismo account ID",
"required": true
},
"cardId": {
"in": "path",
"name": "cardId",
"schema": {
"type": "string"
},
"description": "Pismo card ID",
"required": true
},
"customerIdHeader": {
"in": "header",
"name": "x-customer-id",
"schema": {
"type": "integer"
},
"required": true,
"description": "Pismo customer ID"
}
},
"schemas": {
"ABUenabled": {
"type": "boolean",
"description": "\nThis field is **DEPRECATED**. For more information, refer to the [ABU documentation](https://developers.pismo.io/pismo-docs/docs/cards-overview-1#mastercards-automatic-billing-updater-option) in the Cards overview guide.\n\n\nWhen a card is created or reissued, or its account credentials change, Mastercard is notified if this feaure is enabled. Notification updates are sent to Mastercard on a daily basis. \n\nFor more information, refer to Mastercard's ABU documentation.\n",
"example": true,
"deprecated": true
},
"BIN": {
"type": "string",
"description": "Bank Identification Number (BIN). A 6 or 8 digit number identitying the card network, issuer, and product.",
"example": "87634277"
},
"Brand": {
"type": "string",
"description": "Card network, i.e., Visa, Mastercard, ELO, RuPay, Private",
"example": "Visa"
},
"CardAlias": {
"type": "string",
"description": "Card alias name for a `VIRTUAL` card. \n\nThis field is **REQUIRED** to be unique for each `VIRTUAL` card a customer owns.\n\nNo matter what is passed for a `PLASTIC` card, the value is always `PLASTIC`.\n",
"minLength": 1,
"maxLength": 50,
"example": "Vacation card"
},
"CardID2": {
"type": "integer",
"description": "Pismo card ID",
"example": 123456
},
"CardInfoResponse3": {
"type": "object",
"description": "Card information - non sensitive PCI information",
"properties": {
"id": {
"$ref": "#/components/schemas/CardID2"
},
"hash": {
"$ref": "#/components/schemas/Hash"
},
"status": {
"$ref": "#/components/schemas/CardStatus"
},
"printed_name": {
"$ref": "#/components/schemas/PrintedName"
},
"name": {
"$ref": "#/components/schemas/CardAlias"
},
"type": {
"$ref": "#/components/schemas/CardType"
},
"bin": {
"$ref": "#/components/schemas/BIN"
},
"brand": {
"$ref": "#/components/schemas/Brand"
},
"template_id": {
"$ref": "#/components/schemas/TemplateID"
},
"program_id": {
"$ref": "#/components/schemas/ProgramID"
},
"issuing_date": {
"$ref": "#/components/schemas/IssuingDate"
},
"transaction_limit": {
"$ref": "#/components/schemas/TransactionLimit"
},
"expiration_date": {
"$ref": "#/components/schemas/ExpirationDate2"
},
"last_4_digits": {
"$ref": "#/components/schemas/Last4Digits"
},
"track_number": {
"type": "integer",
"description": "Sequential counter incremented every time card is reissued.",
"example": 1
},
"reissued_card_id": {
"$ref": "#/components/schemas/ReissuedCardID"
},
"password_tries": {
"$ref": "#/components/schemas/PasswordTries"
},
"contactless_enabled": {
"$ref": "#/components/schemas/Contactless"
},
"abu_enabled": {
"$ref": "#/components/schemas/ABUenabled"
},
"dual_message_debit": {
"$ref": "#/components/schemas/DualMessageDebit"
},
"embossing_custom_field": {
"$ref": "#/components/schemas/EmbossingCustomField"
},
"mode": {
"$ref": "#/components/schemas/Mode"
},
"validity_period_hours": {
"$ref": "#/components/schemas/ValidityPeriodHours"
},
"valid_until": {
"$ref": "#/components/schemas/ValidUntil2"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
}
}
},
"CardStatus": {
"type": "string",
"description": "Card status enum. Refer to the [Card lifecycle and statuses](https://developers.pismo.io/pismo-docs/docs/card-lifecycle-and-statuses) guide for more information and a complete list.\n",
"example": "NORMAL"
},
"CardType": {
"type": "string",
"description": "Card type enum:\n * `PLASTIC` - Physical card - plastic or metal.\n * `VIRTUAL` - Digital card with fixed PAN and dynamic CVV.\n * `TEMPORARY` - Virtual card with a fixed PAN and CVV meant for short-term use, typically 24 hours. For more information, refer to [Configuring temporary cards](https://developers.pismo.io/pismo-docs/docs/cards-overview-1#configuring-temporary-cards) in the Cards management guide.\n * `RECURRING` - Virtual card with a fixed PAN and CVV originally meant for use with recurring subscriptions. This type is being **DEPRECATED** and it is recommended you use `VIRTUAL` instead. \n",
"example": "VIRTUAL",
"enum": [
"PLASTIC",
"VIRTUAL",
"RECURRING",
"TEMPORARY"
]
},
"Contactless": {
"type": "boolean",
"description": "For physical cards. Is card enabled for contactless transactions? \n \nWith contactless transactions, you hold or tap the card on contactless-enabled card reader to complete a transaction. This requires that both the card and the terminal have Near Field Communication (NFC) technology. Most embossers can create plastic contactless cards.\n\nDefault is `true`.\n",
"default": true,
"example": false
},
"DualMessageDebit": {
"type": "boolean",
"description": "For Mastercard - if card is DMC, where the debit has authorization and confirmation at different times, base I and base II, respectively. Unlike Mastercard's Maestro debit, where authorization and confirmation take place at the same time (base I). \n\nDefault is `false`.\n"
},
"EmbossingCustomField": {
"type": "string",
"description": "For physical cards. Additional information for embossing company. For example: tracking number or whether the card should be plastic or metal. \n\nYou can use this field for any embossing needs specific to your business. Whatever is sent must be agreed upon with the embosser—what to send, what values to send, what format to send, what size to send for each value, and so on.\n",
"example": "Tracking ID = 5859930",
"maxLength": 1000
},
"ExpirationDate2": {
"type": "string",
"description": "Card expiration date. RFC 3339 format",
"example": "2023-02-09T15:29:04.000Z"
},
"Hash": {
"type": "string",
"description": "Encrypted Primary Account Number (PAN). This field does not exist until the card PCI data is asynchronously created.\n",
"example": "WEPvOQuZvjfYEd0iBmr43bhWyOsylIsW95ebYrLD89App2iEq9IizP+8w73pxKQ4mI47EdhzYHF9RfXjrBOyug=="
},
"IssuingDate": {
"type": "string",
"description": "Date/time when card was issued in RFC3339 format, i.e., 2019-07-03T17:23:18Z",
"example": "2019-07-03T17:23:18Z"
},
"Last4Digits": {
"type": "string",
"description": "Last four Primary Account Number (PAN) digits. This field does not exist until the card PCI data is asynchronously created.\n",
"example": "4321"
},
"Metadata": {
"type": "object",
"description": "Any key-value object. Max length = 3200 bytes. This **must** be valid JSON data.",
"example": {
"my-custom-key": "my-custom-value"
},
"maxLength": 3200
},
"Mode": {
"type": "string",
"description": "Mode enum:\n`CREDIT` - Single credit card\n`DEBIT` - Single debit card\n`COMBO` - Card has both a credit and debit *mode*, meaning it is associated with both a credit and debit program and account.\n`MULTIPLE` - Combination card created with the DEPRECATED [Create combo card](https://developers.pismo.io/pismo-docs/reference/post-v1-combocard-relationship) endpoint. \n\nFor more information, refer to the [mode documentation](https://developers.pismo.io/pismo-docs/docs/cards-overview-1#create-a-combination-card-with-card-modes) in the Card management guide.\n",
"example": "CREDIT",
"enum": [
"CREDIT",
"DEBIT",
"COMBO",
"MULTIPLE"
]
},
"PasswordTries": {
"type": "integer",
"description": "Number of times the password was tried",
"example": 1
},
"PrintedName": {
"type": "string",
"minLength": 2,
"maxLength": 26,
"example": "Chester Fields",
"description": "Printed/embossed card name.\n\nCurrently, you have 3 ways to populate this field:\n \n 1. During account creation via the `application.applicant.personal.social_name` field.\n 2. During account creation via the `application.applicant.personal.name` field when the field in #1 is not set.\n 3. Passing the `printed_name` field during card creation, updating a card, or when reissuing a card. This takes priority over #1 and #2.\n\nNo letters with accents, numbers, or special characters - only letters (a-z|A-Z) and space, as specified in the ISO EMV tag 5F20 for cardholder name.\n\n**REQUIRED** for an `UNNUMBERED` card (Card created without PIN or PAN that issuer defines at some point in the future.)\n"
},
"ProgramID": {
"type": "integer",
"description": "Pismo program ID",
"example": 7654
},
"ReissuedCardID": {
"type": "integer",
"description": "Last issued card ID",
"example": 123456
},
"TemplateID": {
"type": "string",
"description": "Template ID. Templates are used to implement the BIN override feature. For more information, refer to the [BIN override](https://developers.pismo.io/pismo-docs/docs/bin-override-feature) guide.\n",
"example": "EAFA693A-57B2-4029-97F3-D20D6F06D79B"
},
"TransactionLimit": {
"type": "string",
"description": "Optional for virtual cards. Maximum amount allowed per transaction. Set up to the approved limit. If not set, account limit is used.",
"example": "500.00"
},
"ValidityPeriodHours": {
"type": "integer",
"description": "How long, in hours, the card is valid. Cannot exceed the card's `expiration_date`. Once this period is exceeded, and the card has a `NORMAL`, `BLOCKED`, `PENDING`, `WARNING` or `REISSUED` status, its status becomes `INOPERATIVE`. \n\nThis field is used to calculate the datetime value for `valid_until`.\n\nFor `VIRTUAL` and `PLASTIC` cards. Setting this field for `TEMPORARY` or `RECURRING` cards returns a **400 Bad request** error. \n",
"example": 240
},
"ValidUntil2": {
"type": "string",
"description": "Card is valid until this datetime. ISO 8601 format. Once this time is exceeded, and the card has a `NORMAL`, `BLOCKED`, `PENDING`, `WARNING` or `REISSUED` status, its status becomes `INOPERATIVE`. \nThis field's value is calculated using the `validity_period_hours`. \n",
"example": "2021-07-03T17:23:18Z"
}
},
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "Account token - an access token encoded with a Pismo account ID. Tokens can expire quickly, which can result in an \"Unauthorized\" error.",
"bearerFormat": "JWT"
}
},
"responses": {
"401Unauthorized": {
"description": "Access token is missing or invalid"
},
"403Forbidden": {
"description": "You don't have permission to access this resource"
},
"500InternalServer": {
"description": "Internal server error"
}
}
},
"paths": {
"/wallet/v1/cards/{cardId}": {
"get": {
"operationId": "get-v1-card",
"summary": "Get non-PCI card information",
"description": "Get card non-sensitive (non-PCI) information.\n\nNOTE: This endpoint requires an account-specific access token - a token encoded with a Pismo account ID.\n",
"tags": [
"Cards"
],
"parameters": [
{
"$ref": "#/components/parameters/cardId"
},
{
"$ref": "#/components/parameters/customerIdHeader"
},
{
"$ref": "#/components/parameters/accountIdHeader"
}
],
"responses": {
"200": {
"description": "Card information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CardInfoResponse3"
}
}
}
},
"401": {
"$ref": "#/components/responses/401Unauthorized"
},
"403": {
"$ref": "#/components/responses/403Forbidden"
},
"500": {
"$ref": "#/components/responses/500InternalServer"
}
}
}
}
}
}
```