> For the complete documentation index, see [llms.txt](https://magicpay.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magicpay.gitbook.io/magicpay-documentation/payments-and-wallet/create-refund-transaction.md).

# Create Refund Transaction

## 1.17 Create Refund Transaction

Created refund transaction for the given transaction id.

**Request**

| Method | URL                                                           |
| ------ | ------------------------------------------------------------- |
| POST   | /payment/v1/wallet-transactions/{walletTransactionId}/refunds |

```
{
  "price": 25
}
```

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                     |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p>{</p><p>"data": {</p><p>"id": 1,</p><p>"createdDate": "2024-01-17T12:34:56",</p><p>"refundStatus": "PENDING",</p><p>"refundPrice": 25,</p><p>"authCode": "authCode",</p><p>"hostReference": "hostReference",</p><p>"transId": "transId",</p><p>"transactionId": "transactionId",</p><p>"transactionType": "DEPOSIT",</p><p>"walletTransactionId": 123</p><p>}</p><p>}</p> |
| 403    |                                                                                                                                                                                                                                                                                                                                                                              |
| 400    |                                                                                                                                                                                                                                                                                                                                                                              |
| 400    |                                                                                                                                                                                                                                                                                                                                                                              |
| 401    |                                                                                                                                                                                                                                                                                                                                                                              |
| 401    |                                                                                                                                                                                                                                                                                                                                                                              |
| 500    |                                                                                                                                                                                                                                                                                                                                                                              |

[<br>](https://hilals-organization.gitbook.io/magicpay-documentation/1.payments-and-wallet/1.16-retrieve-merchant-wallet)
