---
title: "Get card info with encrypted PAN V3 [beta]"
method: POST
path: "/v3/pcicards/cards/search"
tags: ["PCI"]
---

# Get card info with encrypted PAN V3 [beta]

`POST /v3/pcicards/cards/search`

Get card information - card ID, account ID, customer ID - using a card's encrypted PAN (Primary Account Number). To set up encryption for this endpoint, contact your Pismo representative. Alternatively, to send the PAN as clear text, call the [Get card info with PAN](https://developers.pismo.io/pismo-docs/reference/post-v1-card-search-by-pan) endpoint.

**Note:** This is a PCI endpoint, use the https://gw-pci.pismolabs.io environment.

## Request body

- SearchCardV2RequestBody2 — Search for card with encrypted PAN object
  - `pan` string — Primary Account Number (PAN) encrypted with AES/GCM/NoPadding algorithm. The ciphertext (PAN encryption result) is **REQUIRED** to be base64 encoded.
  - `iv` string — Array initialization vector, used as a initial state for the AES algorithm. This field is used on the requester side to encrypt the PAN. It must be an random array of 16 bytes of length encoded as base64
  - `key_id` string — Key ID used for encryption. To obtain the `key_id`, the sender will generate a symmetric key (AES), encrypt this key with an asymmetric key (public_key) and send it via secure email to the security team. To obtain the asymmetric key, you must open a Configuration item for the Cards squad. After the Pismo security team registers the symmetric key, the `key_id` is shared with the issuer.

## Response `200`

Response for find card success

- SearchCardResponse — Get card information with PAN response object
  - `card_id` integer — Card ID
  - `account_id` number — Account ID
  - `customer_id` integer — Pismo customer ID.

## Other responses

- `401` — Access token is missing or invalid
- `404` — Not Found
- `500` — Internal server error

---

[API](https://skmtc.net/pismo/apis/platform-authentication.md) · [All operations](https://skmtc.net/pismo/apis/platform-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pismo/platform-authentication/revisions/935b62e16de4/schema)
