The Order changes module handles what happens after an order is placed: a customer returns an item, reports a problem, or exchanges a product. EdgeCart models these as versioned order changes so the original order remains intact.
Features
- Returns — send items back and record the refundable amount.
- Claims — report a problem with an order, such as a damaged or missing item.
- Exchanges — return an item and send a replacement.
- Staged changes — prepare a change before confirming it, so the order is not mutated until the change is approved.
- Versioned order history — each confirmed change produces a new version of the order.
- Manual refund bookkeeping — record return/claim/exchange refunds that do not come from a payment provider.
Key concepts
| Concept | What it means |
|---|---|
| Return | Items coming back to the store. |
| Claim | A reported problem that may require a refund or replacement. |
| Exchange | A return paired with a replacement item. |
| Order change | The versioned record of a return, claim, or exchange. |
| Staged change | A prepared change that has not been confirmed yet. |
| Manual refund | A refund recorded without a provider payment, tracked separately from payment refunds. |
How it fits
- Orders — start a return, claim, or exchange from the order detail page. The change is staged before it is confirmed.
- Payments — a confirmed change may record a manual refund. Moving money from a provider payment is still an explicit capture or refund in the payment panel.
- Catalog — returned or exchanged items may need inventory handling; the module records the order change, not the physical stock movement.
- Observability — confirmed changes and return events are delivered through
the outbox (
order_change.confirmed,return.*).
Common tasks
- Merchant — open an order in Orders and use the returns/claims/exchanges area to stage and confirm a change.
- Developer — browse the Admin API operations in the API reference, and read API conventions for idempotency and error handling.
Current boundaries
- Manual return/claim/exchange refunds (no
payment_id) are kept in a separate manual refund amount, so a later payment refund reversal preserves them. - A late provider refund success that would exceed the captured amount is rejected by a database constraint and acknowledged instead of retried.
- Returns, claims, and exchanges are staged order changes; arbitrary order editing is not supported.
See current limitations for the full list.