---
title: "Set card PIN"
method: POST
path: "/twcard-data/v1/sensitive-card-data/preset-pin"
tags: ["card-sensitive-details"]
---

# Set card PIN

`POST /twcard-data/v1/sensitive-card-data/preset-pin`

Sets a PIN during the card order flow. This endpoint will be accessible for partners that require to set a PIN during the card order flow.

Please follow [this guide](/guides/product/issue-cards/sensitive-card-details) to use this endpoint.

To use this endpoint, make sure to set the `api token` and the `card order id` in the headers.

## Headers

- `x-tw-twcard-order-id` string, required
- `X-External-Correlation-Id` string, uuid

## Request body

- object — Request body for setting a card PIN.
  - `keyVersion` integer, required — The version of the key to use. It is always set to 1.
  - `encryptedPayload` string, required — Your [JWE payload](/guides/product/issue-cards/sensitive-card-details).

## Response `200`

OK - PIN set successfully.

- object
  - `cardOrderId` string — The card order ID.

## Other responses

- `429` — Rate limit exceeded. Retry after the number of seconds specified in the `Retry-After` header.

---

[API](https://skmtc.net/wise/apis/platform-api.md) · [All operations](https://skmtc.net/wise/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wise/platform-api/versions/4907a1d269ab/schema)
