---
title: "Refund a transaction"
method: POST
path: "/api/v1.4/payments/transactions/{trx_uuid}/refund/"
tags: ["v1.1"]
---

# Refund a transaction

`POST /api/v1.4/payments/transactions/{trx_uuid}/refund/`

## Request

- Base URL: `https://web.moneyhash.io`
- URL: `https://web.moneyhash.io/api/v1.4/payments/transactions/{trx_uuid}/refund/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in query parameter `access_token`

## Path parameters

- `trx_uuid` string, required

## Request body

- RefundProcess
  - `amount` string, decimal, required: The amount to refund, if performing a partial refund, the amount should be less than the original transaction amount
  - `refund_to_wallet` boolean: If set to true, the amount will be refunded to the customer's wallet
  - `customer` string: The ID of a specific customer you wish to associate this refund with. Required if `refund_to_wallet` is true
  - `custom_fields` unknown

## Other responses

- `400`
- `401`

---

[API](https://skmtc.dev/moneyhash/apis/moneyhash-api.md) - [All operations](https://skmtc.dev/moneyhash/apis/moneyhash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhash/apis/moneyhash-api/revisions/4b67c1cef57d?raw)
