Skip to content

List lab orders

Request

Poll a keyset-paginated page of the account+location's lab orders. Filterable by status, order number, and a created-date range. Each order references its patient and ordering provider by id only — resolve those via /patient and /staff (batched). Partners that can receive inbound HTTPS may additionally subscribe to the lab-order.submitted webhook event to discover new orders without polling.

Security
PartnerApiKey and PartnerOAuth
Path
accountIdinteger, (int64)required

Account identifier

locationIdinteger, (int64)required

Location identifier

Query
statusstring(?i)SUBMITTED|ACCEPTED|REJECTED|PARTIALLY_RES...

Filter by lab-order status

Enum:"SUBMITTED""ACCEPTED""REJECTED""PARTIALLY_RESULTED""RESULTED""CORRECTED""CANCELLED"
Example:status=SUBMITTED
orderNumberstring

Filter by the account's order reference number (returns zero or one)

Example:orderNumber=ORD-100245
createdAfterstring

Only orders created at or after this ISO-8601 instant

Example:createdAfter=2026-01-01T00:00:00Z
createdBeforestring

Only orders created at or before this ISO-8601 instant

Example:createdBefore=2026-02-01T00:00:00Z
sortDirstring(?i)ASC|DESC

Sort direction by creation time

Default:"DESC"
Enum:"ASC""DESC"
cursorstring, [ 0 .. 2048 ] characters

Pagination cursor from a previous response

limitinteger, (int32), [ 1 .. 1000 ]

Number of results per page (max 1000)

Default:20
Example:limit=20
curl -i -X GET \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/lab-order?status=SUBMITTED&orderNumber=ORD-100245&createdAfter=2026-01-01T00%3A00%3A00Z&createdBefore=2026-02-01T00%3A00%3A00Z&sortDir=ASC&cursor=string&limit=20' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Lab orders retrieved successfully

Bodyapplication/json
labOrdersArray of objects(LabOrderDTO)

Lab orders in this page

nextCursorstring

Opaque cursor for fetching the next page. Null if no more results.

Example:"eyJ2Ijp7ImNyZWF0ZWRPbiI6MTczNn0sImlkIjo5MDAxfQ"
Response
{ "labOrders": [ { … } ], "nextCursor": "eyJ2Ijp7ImNyZWF0ZWRPbiI6MTczNn0sImlkIjo5MDAxfQ" }