> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# `POST /api/v1/gift-cards`

> `POST /api/v1/gift-cards`

### Request body

`CreateGiftCardRequest`

<ParamField body="currency" type="string,null">
  ISO currency code (default: USD).
</ParamField>

<ParamField body="expires_at" type="string,null">
  Optional expiration date (RFC 3339).
</ParamField>

<ParamField body="initial_balance" type="number (double)" required>
  Initial balance.
</ParamField>

<ParamField body="message" type="string,null">
  Optional gift message.
</ParamField>

<ParamField body="recipient_email" type="string,null">
  Optional recipient email.
</ParamField>

### Responses

<ResponseField name="201" type="GiftCardResponse">
  Gift card created
</ResponseField>

<ResponseField name="400" type="ErrorBody">
  Invalid request
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/gift-cards' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "currency": null,
    "expires_at": null,
    "initial_balance": 1,
    "message": null,
    "recipient_email": null
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "code": "string",
    "created_at": "2026-07-24T12:00:00Z",
    "currency": "string",
    "current_balance": "string",
    "expires_at": null,
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "initial_balance": "string",
    "message": null,
    "recipient_email": null,
    "status": "string",
    "updated_at": "2026-07-24T12:00:00Z"
  }
  ```
</ResponseExample>
