---
title: "Get PIN Key"
method: POST
path: "/v2/terminal/getPinKey"
tags: ["Terminal Management"]
---

# Get PIN Key

`POST /v2/terminal/getPinKey`

Retrieve the PIN encryption key for a registered terminal device.

## Headers

- `x-client-id` string, required
- `x-idempotency-key` string, uuid
- `x-on-behalf-of` string

## Request body

- object
  - `terminal_id` string, required — UQPAY terminal device ID
  - `prv_key` string, required — AES key used for decrypting the response PIN key.

## Response `200`

PIN key retrieved successfully

- object
  - `encrypt_pin_key` string, required — Encrypted PIN key. Decrypt using the provided prv_key.
  - `pin_key_expire` string, date-time, required — Expiration time of the PIN key.
  - `terminal_id` string, required — The terminal ID.

---

[API](https://skmtc.dev/uqpay/apis/authentication-api.md) · [All operations](https://skmtc.dev/uqpay/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uqpay/authentication-api/revisions/cef532a10777/schema)
