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

# Refund a prepayments

> Refund a prepayments

### Path parameters

<ParamField path="id" type="string" required>
  Prepayment ID
</ParamField>

### Responses

<ResponseField name="200" type="PrepaymentResponse" />

<ResponseField name="409" type="ErrorBody" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/prepayments/{id}/refund' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "amount": "string",
    "currency": "string",
    "id": "string",
    "number": "string",
    "remaining": "string",
    "status": "string",
    "supplier_id": "string"
  }
  ```
</ResponseExample>
