---
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.

## Changes

- **2026-07-09** `d961426856ab` — 2 info
  - api tag `card-sensitive-details` added
  - api tag `card-order` removed

[Change history](https://skmtc.dev/wise/apis/platform-api/changes/twcard-data/v1/sensitive-card-data/preset-pin/post.md)

---

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