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

# Refund Payin

> Refunds a payin (only allowed when the payin is already funds_received or payment_processed).

### Params

<ParamField path="id" type="string" required>
  Payin internal id.
</ParamField>

### Body

<ParamField body="reason" type="string">
  Refund reason.
</ParamField>

### Response

<ResponseExample>
  ```json 200 theme={null}
  { "success": true, "message": "Payin refunded successfully" }
  ```
</ResponseExample>

### Error Responses

<ResponseExample>
  ```json 404 theme={null}
  { "success": false, "error": "Not Found" }
  ```

  ```json 409 theme={null}
  { "success": false, "error": "Conflict" }
  ```
</ResponseExample>
