Create a refund request
Ask Ignyt to review a refund for one merchant order of the authenticated app. The request starts as submitted; approval and execution happen separately, so follow its status, events or the order.refund_request.updated webhook. Retrying with the same creation key and body returns the original request. Requires a server API key with orders:write (browser and agent credentials are rejected with 403). Returns 422 when the amount exceeds the captured refundable remainder on its own, checked first even when requests are waiting. Only if that amount fits, returns 409 when adding the order’s waiting requests exceeds the remainder.
Headers
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.
1 - 80^[A-Za-z0-9_-]+$Body
Requested refund in integer minor units of the merchant order's currency (2500 = AED 25.00). It cannot exceed the captured amount still refundable after refunds already in flight (422). Together with this order's requests still waiting (submitted, needs_information or approved), it cannot exceed that amount either (409).
1 <= x <= 21474836472500
Response
Successful Response