Skip to main content
Experimental. The current delivery projections here do not yet match the product boundary between Order, Fulfillment, and Shipping. Use it for local or sandbox evaluation. See maturity levels.
The Orders Module stores the current commercial record for each purchase: line snapshots, status fields, Customer-facing views, returns, and invoices. See How commerce records relate for the product contract. Source: modules/orders · npm: @86d-store/orders

Installation

Configuration

string
default:"\"USD\""
Default currency code applied to new orders. Individual orders can override this when calling controller.create().

Store endpoints

The /orders/me/... account endpoints require an authenticated session. Requests for Orders that do not belong to the authenticated Customer return 404 (not 403) to avoid leaking their existence. Guest tracking and confirmation use an Order reference plus matching email and do not require authentication.
POST /orders/me/:id/reorder returns line items ready to be added back to the cart. It does not create a cart or modify any existing cart automatically.

Current status flows

An Order can be cancelled only while its status is pending, processing, or on_hold. Order numbers are auto-generated in the format ORD-{base36timestamp}-{random}. Invoice numbers follow INV-{YYYYMMDD}-{orderSuffix}.

Events

The current module emits these events. Event names and delivery projections can change before 1.0.

Components

OrderHistory

OrderHistory renders a paginated list of the authenticated Customer’s Orders. Clicking a row triggers the onSelectOrder callback so you can navigate to the Order detail view.

OrderDetail

OrderDetail shows the full Order: items, totals, Fulfillment status, shipping and billing addresses, and a cancel button when the Order is still eligible for cancellation.

OrderReturns

OrderReturns lists the return requests for one Order and includes a form to submit a new one. Returns are available for Orders in completed or processing status.

OrderTracker

OrderTracker is the public Order tracking form; it needs no authentication. Shoppers enter their Order number and the email address they used at Checkout to retrieve the Order status.

Types

Item name and price are snapshotted at order creation time. Subsequent changes to the product catalog do not affect existing order records.