---
title: "Get Pan V2"
method: POST
path: "/sc/v2/sc_get_pan/"
tags: ["Card PaySecure WS V2"]
---

# Get Pan V2

`POST /sc/v2/sc_get_pan/`

<ul>
<li class="docBullet">This web service allows to get the PAN for a card/token.</li>
<li class="docBullet">Pass the public token and the API will retrieve back the AES encrypted PAN.</li>
</ul>

## Headers

- `Session-Id` string, required
- `x-api-key` string

## Request body

- PSGetPanModel — This web service allows to get pan for a card/token. Pass public token and api will retrieve back AES encrypted pan.
  - `client_id` integer, required — Unique identifier for the client which Paymentology will provide at outset
  - `token` integer, required — Public token for the card

## Response `200`

Successful Response

- GetPanResponse — This model contains the response details of get pan api
  - `header` GetPanHeader
    - `error_id` integer — error id
    - `error_desc` string — error message
  - `body` GetPanBody
    - `secret` string — Encrypted Pan back
    - `iv` string — 16 bits initialization vector (IV)

## Other responses

- `404` — Webservices does not exist
- `500` — Internal Server error

---

[API](https://skmtc.net/paymentology/apis/payapi-docs.md) · [All operations](https://skmtc.net/paymentology/apis/payapi-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymentology/payapi-docs/revisions/a675891b0365/schema)
