Customer Orders
Retrieve order history for a customer.
Updated
On this page
Overview
Retrieve the authenticated customer's order history and individual order details.
List Orders
import dash from "@/lib/dash"
const { orders, pagination } = await dash.auth.getOrders({
limit: 10,
offset: 0,
})
orders.forEach(order => {
console.log(order.order_number, order.status, order.total, order.created_at)
})