Get Card PAN — Retrieve 16-digit PAN
Returns the full 16-digit PAN (Primary Account Number) for a card. This is a sensitive endpoint and should be restricted to authorized systems/users only. Access and audit logging are recommended.
Limitations: The endpoint returns PAN in cleartext; ensure transport is over TLS and caller has the necessary privileges.
POST{gateway}/pcs/api/v1/get-card-pan
Payload
| Attribute | Type | Required | Description |
|---|---|---|---|
| cardId | Integer | Conditional | Internal card ID. Required if token not provided. |
| token | Integer | Conditional | Card token (PAN surrogate). Required if cardId not provided. |
Request Example
{
"cardId": 1722
}Response
| Attribute | Type | Description |
|---|---|---|
| data | Object | Wrapper for response data. |
| data.pan | String | Full 16-digit PAN. |
200 — SUCCESS
{
"data": {
"pan": "1111222233334444"
}
}