List orders
Returns a paginated list of orders for the authenticated user's organization. Supports filtering by status, date range, search, and other criteria. Labs see orders where they are the lab; clinics see orders where they are the clinic.
Returns a paginated list of orders for the authenticated user's organization. Supports filtering by status, date range, search, and other criteria. Labs see orders where they are the lab; clinics see orders where they are the clinic.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Query Parameters
Page number
0 < value <= 100001Items per page
0 < value <= 10020Response projection. The backward-compatible default returns the full order shape; compact omits detail-only fields for list UIs.
"full"Value in
- "full"
- "compact"
Opaque cursor returned by the previous non-search page. Send it with the matching page, filters, and sort. Search results continue to use page-based pagination.
1 <= length <= 512Comma-separated status filter
Comma-separated order type filter (digital, physical)
Search by order number, patient name, doctor name, or partner org
Field to sort by
"createdAt"Value in
- "createdAt"
- "dueDate"
- "deadline"
- "submittedAt"
- "orderNumber"
- "status"
Sort direction
"desc"Value in
- "asc"
- "desc"
Filter by clinic ID
Filter by patient ID
Filter by doctor user ID
Filter by lab ID
Filter by doctor name
Filter orders that have files
Filter orders with pending phase advance requests
Filter orders whose estimated delivery falls within the next 7 days
Filter orders with messages the viewer has not read
Clinics only: orders waiting on the clinic (an approval, a requested file re-upload, or a phase awaiting its files). Ignored for labs.
Include completed and cancelled orders. Archived orders are always excluded.
falseInclude submittedCount and onHoldCount in response metadata (org-wide, unfiltered)
falseResponse Body
application/json
curl -X GET "https://example.com/orders"{ "data": [ null ], "pagination": { "page": 0, "limit": 0, "total": 0, "totalPages": 0, "hasMore": true, "nextCursor": "string" }}