# Order placement, history and detail Scope: placeOrder, getOrders/getOrderById, success routes, upcoming-order glimpses and regional admin lists. Fixtures: U1/U2, A/B, single/split COD groups and historical deleted products. | ID | Priority | Action / input | Expected result | |---|---|---|---| | ORDER-01 | P0 | Valid U1 COD order with notes/address/coupons. | Correct rows/SKUs/quantities/region/amount; customer and A admin same identity/state. | | ORDER-02 | P0 | P/Q in S1/S2 checkout. | Exactly expected suborders/group; one fee and one usage per coupon; summed totals agree. | | ORDER-03 | P0 | Empty item array, unknown SKU, invalid quantity/slot. | No empty/invalid order, cart cleanup or consumed coupon. | | ORDER-04 | P0 | Zero/negative/fractional/huge quantity or duplicated selected lines. | Quantity contract and duplicate-line policy enforced; no unintended undercharge. | | ORDER-05 | P0 | Region A with B SKU/slot/address/bound; global SKU in A. | Foreign relationships rejected; valid global line accepted under A market. | | ORDER-06 | P0 | Suspended customer with existing token. | Placement blocked; unsuspension permits valid new request. | | ORDER-07 | P0 | U2 reads/cancels/notes U1 order; B admin reads A order. | Ownership/region enforced; no private payload leakage. | | ORDER-08 | P1 | U1 order history includes A/B orders. | Own cross-region history with accurate labels; current browsing region doesn't erase history. | | ORDER-09 | P1 | Many orders, page boundaries, filters, empty last page. | Stable order/pagination; no missing/duplicate rows or B-ID cursor skips. | | ORDER-10 | P1 | Missing/malformed/readable-vs-database order ID. | Correct target or clear not-found; no arbitrary parsed ID acceptance. | | ORDER-11 | P1 | Place order while history/upcoming widget already mounted. | Queries invalidated; new order visible without reinstall/manual stale cache. | | ORDER-12 | P0 | Change coupon/catalog after placement. | For orders placed after the discount migration, original price/stored discount are preserved in all detail views. Historical pre-migration rows follow the accepted zero-discount limitation in ORDER-22. | | ORDER-13 | P1 | Soft-delete product/variant/store dependency after order. | History still renders purchased identity, qty and charge. | | ORDER-14 | P0 | Database failure during multi-slot creation. | No partial group/items/status/coupon-usage linkage; cart not falsely cleared. | | ORDER-15 | P1 | Queue/Telegram/push fails after persistence. | Outcome inspectable; no duplicate order on blind retry; delivery integration recoverable. | | ORDER-16 | P0 | Rapid native/web submit twice vs raw concurrent API requests. | In-app guard prevents double tap; record deferred server-idempotency exposure separately. | | ORDER-17 | P1 | Request commits then response lost. | Inspect history before retry; no false claim of guaranteed server deduplication. | | ORDER-18 | P1 | Large supported cart/many slots and identical subtotals. | All items preserved; deterministic primary fee/usage allocation. | | ORDER-19 | P1 | Repeated order-detail fetch during status transition. | Coherent status/amount and group coupons, not mixed partial state. | | ORDER-20 | P2 | Native/browser deep links/back/reload to success/detail. | Correct order identity and navigation; no other user's cached detail. | | ORDER-21 | P0 | Quiet region A has old orders while region B creates more than `limit + 5` newer orders; page A's admin order list. | A returns its own orders and a valid next cursor; no global-ID window makes the list empty or skips rows. | | ORDER-22 | P2 | Open a historical pre-migration order whose stored total already included a coupon discount. | Stored/displayed discount is `0`; this is an accepted limitation. New orders must continue to store their discount. | No general minimum-order value is required. Checkout is COD-only; there are no online-payment orders, gateway states, or refund records.