> ## 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/&#123;id&#125;/refund`

> `POST /api/v1/gift-cards/&#123;id&#125;/refund`

### Path parameters

<ParamField path="id" type="string" required>
  Gift card ID (UUID)
</ParamField>

### Request body

`GiftCardAmountRequest`

<ParamField body="amount" type="string" required>
  Amount to charge (debit) or refund (credit). Must be positive.
</ParamField>

<ParamField body="reference_id" type="string,null">
  Optional reference (e.g. order ID) recorded on the transaction.
</ParamField>

### Responses

<ResponseField name="200" type="GiftCardTransactionResponse">
  Gift card refunded
</ResponseField>

<ResponseField name="404" type="ErrorBody">
  Gift card not found
</ResponseField>

<ResponseField name="422" type="ErrorBody">
  Invalid amount or disabled card
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/gift-cards/{id}/refund' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "amount": "string",
    "reference_id": null
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "amount": "string",
    "balance_after": "string",
    "created_at": "2026-07-24T12:00:00Z",
    "gift_card_id": "string",
    "id": "string",
    "reference_id": null,
    "transaction_type": "string"
  }
  ```
</ResponseExample>
