Skip to main content
POST
Create a refund request

Authorizations

Authorization
string
header
required

Server-side scoped Ignyt API key.

Headers

Idempotency-Key
string
required

Required. A client-generated key that identifies this operation so it can be retried safely. Repeating the request with the same key and the same body returns the original result instead of performing the action again; reusing a key with a different body is rejected with 409. After a timeout or network error, retry with the same key, never a new one.

Required string length: 1 - 80
Pattern: ^[A-Za-z0-9_-]+$
authorization
string | null
x-ignite-app-id
string | null

Body

application/json
amount_minor
integer
required

Requested refund in integer minor units of the merchant order's currency (2500 = AED 25.00). It cannot exceed the captured amount still refundable or already reserved by open requests.

Required range: 1 <= x <= 2147483647
Example:

2500

child_order_id
string
required

Merchant order to refund; it must belong to the authenticated app and environment.

Required string length: 1 - 40
Example:

"mo_123"

reason
string
required

Why the refund is requested; shown to the reviewer.

Required string length: 10 - 500
Example:

"Item arrived damaged and the shopper declined a replacement."

items
RefundRequestItem · object[]

Optional unique variants and quantities; when given, amount_minor cannot exceed their value.

Maximum array length: 100

Response

Successful Response

amount_minor
integer
required

Requested refund in integer minor units of currency (2500 = AED 25.00).

Example:

2500

app_id
string
required
bank_credit_status
string
required
read-only

Always not_confirmed: a successful refund does not prove the shopper's bank posted it.

Allowed value: "not_confirmed"
child_order_id
string
required
created_at
string
required
created_by
string
required
currency
string
required

ISO 4217 currency of the merchant order.

Example:

"AED"

environment
string
required

sandbox or live.

Example:

"sandbox"

executed_by
string | null
required
execution_status
string
required
read-only

Refund execution: not_started, executing, reserved, pending, unknown, succeeded or failed. unknown is being confirmed with the payment provider; do not request again.

id
string
required

Refund request ID.

Example:

"rrq_123"

items
RefundRequestItem · object[]
required
purchase_id
string
required
reason
string
required
refund_id
string | null
required

Refund created once execution starts, otherwise null.

request_status
string
required
read-only

Review outcome: submitted, needs_information, approved, rejected or blocked.

reviewed_by
string | null
required
revision
integer
required

Increments on every change; send it as expected_revision when replying.

Example:

1

status
string
required

Lifecycle state: submitted, needs_information, approved, rejected, executing, reserved, pending, unknown, succeeded, failed or blocked.

Example:

"submitted"

tenant_id
string
required
updated_at
string
required