Skip to main content
POST
Refund a merchant order

Authorizations

Authorization
string
header
required

Server-side scoped Ignyt API key.

Headers

Idempotency-Key
string | null

Required unless the body sets external_ref, which takes precedence. A client-generated key (1–120 characters) identifying this refund: repeating the request with the same key returns the original refund instead of refunding again, and reusing it with a different amount_minor is rejected with 409. After a timeout or network error, retry with the same key, never a new one.

authorization
string | null
x-ignite-app-id
string | null

Path Parameters

child_order_id
string
required

Body

application/json
reason
string
required

Why the refund is issued.

Required string length: 1 - 200
Example:

"Shopper returned item"

amount_minor
integer | null

Refund in integer minor units of the merchant order's currency (2500 = AED 25.00). Omit it to refund the whole remaining refundable amount; it cannot exceed that remainder.

Required range: x > 0
Example:

2500

external_ref
string | null

Your stable reference for this refund. It identifies the refund for safe retries and takes precedence over the Idempotency-Key header; one of the two is required.

Required string length: 1 - 120
Example:

"return-8841"

Response

Successful Response