Skip to content
Coursey CreativeSign in

GET /customer/orders

/api/store/[slug]/customer/orders

Returns the signed-in customer's paginated order history for this business (matched by customer ID or email so guest orders appear), with line items and shipment tracking info.

Customer bearer token requiredHow authentication works

Path parameters

slugstringrequired

Business store slug (non-empty string); 404 if no business matches.

Query parameters

limitnumberoptional

Page size. Positive integer; values above 100 are clamped to 100; invalid values fall back to 20.

Default 20

offsetnumberoptional

Number of orders to skip. Non-negative integer; invalid values fall back to 0.

Default 0

include_tracking_eventsbooleanoptional

Set to the literal string 'true' to include a tracking_events array per order; any other value is treated as false.

Default false

statusenumoptional

Comma-separated list of order statuses to filter by (case-insensitive, deduplicated). Any unknown value returns 400.

One of pending_payment, paid, processing, shipped, delivered, canceled

Responses

200

The request succeeded.

What comes back

200: { success: true, orders: [...], pagination: { total, limit, offset, has_more } }. Each order: id, order_number (first 8 chars of id uppercased), status, payment_method, total_amount, currency, created_at, updated_at, line_items [{ product_name, variant_display_name, quantity, price_at_purchase }], tracking_number, carrier, tracking_url, shipped_at, delivered_at, plus tracking_events [{ type, description, location, occurred_at }] when include_tracking_events=true.