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
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" }}List tasks of an order's current phase GET
Returns the ordered task list of the order's active phase. For clinic requesters, only clinic-visible entries are returned and labels resolve to clinicTitle when set.
Remove component from order DELETE
Removes a component from an order. Only labs can remove components from their orders. The component ID is passed as a query parameter.