---
title: "Order changes"
description: "Returns, claims, and exchanges in EdgeCart, and how staged order changes are confirmed."
---

> Documentation Index
> Fetch the complete documentation index at: https://edgecart.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Order changes

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.*`).

> **Bookkeeping vs. money movement**
>
> A return refund recorded from the order-change panel is bookkeeping. The
> payment panel is where an actual provider refund is issued. This separation
> keeps the order history and the payment ledger consistent.

## 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](https://edgecart.dev/api),
  and read [API conventions](https://edgecart.dev/reference/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](https://edgecart.dev/reference/limitations) for the full list.

## Related modules

- [Orders](https://edgecart.dev/modules/orders) — the order being changed.
- [Payments](https://edgecart.dev/modules/payments) — provider refunds and capture state.
- [Catalog](https://edgecart.dev/modules/catalog) — product and variant details on the change.

Source: https://edgecart.dev/modules/order-changes/index.mdx
