Orders
TheuseOrders hook fetches the order history for the currently logged-in customer.
Usage
Hook API
The hook only fetches when a customer access token is present. If the user is not logged in, orders remains an empty array.
Order Shape
Each order contains:id,name,orderNumberprocessedAt— ISO date stringfinancialStatus—PAID,PENDING,REFUNDED, etc.fulfillmentStatus—FULFILLED,UNFULFILLED, etc.totalPrice—{ amount, currencyCode }lineItems(first: 50)— product line items withtitle,quantity,variant(includingid,title,image,price)
Service API
'Not authenticated' if no access token is set.