# POST /Indoor/api/setCardPinViaSMS

**Resource:** [PIN and card security](../resources/PIN-and-card-security.md)
**Service that enables PIN creation via SMS for the card**
**Operation ID:** `setCardPinViaSMS`

Attempts to set a card PIN via SMS by sending a notification through the notification service. Uses the provided channel, tenant ID, template code, customer number, recipient, and parameters to send the PIN information. Returns true if the SMS is sent successfully, otherwise false and logs the error.

## Request Body

Set Card Pin Via S M S Request

**Required:** Yes

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

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

## Responses

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

**Success Response Schema:**

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

