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
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.