---
title: "Transaction:Refund"
method: PATCH
path: "/transactions/{transactionId}/refund"
tags: ["Transactions"]
---

# Transaction:Refund

`PATCH /transactions/{transactionId}/refund`

Add a refund for a transaction. You can use the EX code or the order ID to refund the transaction

## Path parameters

- `transactionId` Id, required — unresolved $ref

## Request body

- object
  - `amount` Amount
    - `value` integer, required — The amount in cents.
    - `currency` string — The currency in ISO-4217 format.
  - `products` object
  - `description` Description — unresolved $ref
  - `processDate` ProcessDate — unresolved $ref
  - `exchangeUrl` ExchangeUrl — unresolved $ref

## Response `200`

Ok.

- object
  - `orderId` OrderId — unresolved $ref
  - `transactionId` TransactionId — unresolved $ref
  - `description` Description — unresolved $ref
  - `processDate` ProcessDate — unresolved $ref
  - `amount` Amount
    - `value` integer, required — The amount in cents.
    - `currency` string — The currency in ISO-4217 format.
  - `amountRefunded` Amount
    - `value` integer, required — The amount in cents.
    - `currency` string — The currency in ISO-4217 format.
  - `refundedTransactions` RefundedTransactions — unresolved $ref
  - `createdAt` Created — unresolved $ref
  - `createdBy` CreatedBy — unresolved $ref

## Other responses

- `400` — Bad request, see response body for more information
- `401` — Unauthorized. Supplied credentials are invalid
- `403` — Forbidden. Supplied credentials have no rights
- `404` — Resource not found
- `405` — Used HTTP method is not allowed
- `406` — Not acceptable. The supplied content type in the accept parameter in the header is not supported
- `415` — Unsupported media. The supplied content type in the content-type parameter in the header is not supported
- `422` — Unprocessable Entity, see response body for more information
- `429` — Rate limit reached.
- `500` — An internal error occurred

---

[API](https://skmtc.dev/pay/apis/pay-transaction-gateway-unit-api.md) · [All operations](https://skmtc.dev/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/revisions/2bc260c7bdfc/schema)
