Orders, shipments and returns

Use fetchThemeOrders and fetchThemeOrderDetail for protected customer order data. Use buildThemeOrdersUrl for filtering or detail navigation rather than constructing query rules yourself.

Presentation helpers include order-number, date, currency, status, payment-method, delivery-method, shipment, tracking and line-total views. Cancellation and return actions use their documented SDK helpers and platform-owned validation.

The theme may choose card, table or timeline designs. It must not infer a shipment, payment, refund or return status from unrelated fields.

Test no orders, several orders, a selected detail, multiple shipments, no tracking, cancellation eligibility, return eligibility, missing product media and action failures. Hidden error and status regions must not become visible merely because a global CSS rule sets display.