After checkout
Each store order in a purchase is cancelled, returned or refunded on its own. Use the store order ID (mord_…) from the purchase.
Choose the right action
Cancellations, returns and refunds act on one store order; other store orders in the same purchase are not affected. A shopper decision applies to the whole purchase, so
cancel_remaining can cancel several store orders at once.
Cancel a store order
409means the order can’t be cancelled in its current state, the store refused, or the result is still being checked.409 unsupported_operationmeans the store can’t cancel through Ignyt. Request a return instead.
Request a return
Refund a store order
Refund part or all of one store order. Send anIdempotency-Key and keep it; if you don’t get a response, retry with the same key and body.
amount_minor to refund the full refundable amount. The response includes the refund’s status:
422 means the amount is more than what is left to refund. 409 means the refund is blocked for now, for example while the payment is disputed.
Ask Ignyt to review a refund
Use a refund request when a refund needs Ignyt’s review first. This needs a server API key withorders:write.
submitted. Ignyt approves it, rejects it, or asks for more information. If its status becomes needs_information, reply with POST /v1/refund-requests/{request_id}/reply, sending the current expected_revision and a note of 10–500 characters.
Approval is not the refund itself. Each request reports three separate statuses:
request_status: where the review is.execution_status: whether the refund has been sent to the payment provider.bank_credit_status: alwaysnot_confirmed, because provider success doesn’t prove the shopper’s bank has posted the money.
GET /v1/refund-requests/{request_id}, its /events history, or the order.refund_request.updated webhook.
When part of a purchase fails
If one store fails and others succeed, the purchase becomespartially_placed, and the failed store’s share is refunded automatically. When the purchase offers the shopper a choice, record it:
continuekeeps the store orders that succeeded.cancel_remainingasks each store to cancel its placed or confirmed order and refunds the orders that are cancelled. A store can refuse or not support cancellation; those orders stay and appear indecision_outcomesasnot_cancelled. Shipped orders stay and follow the return flow. If the response is lost, repeat the same decision: a repeat of a completed decision returns the purchase withoutdecision_outcomes, so read each order’sstatusinmerchant_ordersinstead.
409.
Customer emails
GET /v1/purchases/{purchase_id}/notifications lists the customer emails for a purchase, with their status. If Ignyt sends customer emails for your app, don’t send your own copy when a webhook is retried or an email is delayed.
Related guides
Event types
Refund, order and payment events.
Payments and settlements
How refunds relate to merchant payouts.