---
title: "Refund - Full or Partial"
method: POST
path: "/pgw/api/v2/direct/refund"
---

# Refund - Full or Partial

`POST /pgw/api/v2/direct/refund`

## Request body

- object
  - `orderId` string, required — This is a unique identifier for this order to discern it from the other orders you created. If orderId is not sent with the request, an orderId is created by the server and returned in the response. The orderid can be used to refer to this order in subsequent transactions and in retrieving metadata about the order. The orderId must always be unique for every order created under your merchant profile. This must be a valid GUID.
  - `callbackUrl` string — The URL where the response containing order details will be returned. Must be a valid URL and must have an HTTPS protocol.
  - `refundAmount` number, float — Amount for which refund is requested. Amount must be greater than 0.01. Must not have more than 2 digits after the decimal point.
  - `timestamp` string — The timestamp of the moment at which the refund request has been initiated.
  - `signature` string, required — A parameter to ensure the security and authenticity of API communications. It involves generating a signature using the contents of the API request and secret keys, which is then sent along with the request.

## Response `200`

200

- object
  - `orderId` string
  - `responseMessage` string
  - `detailedResponseMessage` string
  - `language` string
  - `responseCode` string
  - `detailedResponseCode` string

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/geidea/apis/checkout-v2.md) · [All operations](https://skmtc.dev/geidea/apis/checkout-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geidea/checkout-v2/revisions/873e534eeb01/schema)
