# POST /credit/api/setCardPin

**Resource:** [PIN and card security](../resources/PIN-and-card-security.md)
**Service that generates a card PIN**
**Operation ID:** `setCardPin`

Sets the PIN for a specified card. It checks card status before updating the PIN, ensuring no issues with the customer’s card status before processing the request.

**Part of:**

- <a href="https://apiportal.dgpays.com/journeys/launch#s-credit" target="_parent">Journey 01 · Launching a new card product</a> — step 5, Activate and set the PIN

- <a href="https://apiportal.dgpays.com/journeys/launch#s-debit" target="_parent">Journey 01 · Launching a new card product</a> — step 4, Activate, PIN, transact

## Request Body

Set Card Pin Request

**Required:** Yes

**Content Types:** `application/json`

**Schema:** [SetCardPinRequest](../schemas/Set/SetCardPinRequest.md)

## Responses

| Status | Description |
|--------|-------------|
| 200 | Success |
| 400 | (reference) |
| 404 | (reference) |
| 500 | (reference) |

**Success Response Schema:**

[SetCardPinResponse](../schemas/Set/SetCardPinResponse.md)

