GuideLab API

List orders assigned to a production room

Returns the orders relevant to a room together with the per-task done-ness (computed from orderActivity).

GET
/production/rooms/{id}/orders

Returns the orders relevant to a room together with the per-task done-ness (computed from orderActivity).

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

Query Parameters

material?string
scheduledDate?string

Optional YYYY-MM-DD filter. When provided, only orders with at least one task scheduled for this date in the given room are returned.

onlyMine?||

When true, only return orders whose current task in this room resolves to the current member (per-order override if present, otherwise the task's defaultAssigneeMemberId).

Defaultfalse

Response Body

application/json

curl -X GET "https://example.com/production/rooms/string/orders"
{  "orders": [    {      "orderPhaseId": "string",      "treatmentPhaseId": "string",      "phaseName": "string",      "phaseSortOrder": 0,      "id": "string",      "orderNumber": "string",      "status": "draft",      "patient": {        "firstName": "string",        "lastName": "string"      },      "clinic": {        "id": "string",        "name": "string"      },      "dentist": "string",      "items": [        {          "id": "string",          "productName": "string",          "material": "string",          "quantity": 0        }      ],      "currentPhaseTaskId": "string",      "tasks": [        {          "id": "string",          "name": "string",          "description": "string",          "icon": "string",          "color": "string",          "style": "primary",          "completionTrigger": "acknowledge",          "completionTriggerConfig": {            "type": "acknowledge"          },          "sideEffects": [            {              "type": "change_status",              "toStatus": "draft"            }          ],          "captureConfig": {            "requireNotes": false,            "requirePhoto": false,            "notesPlaceholder": "string",            "notesMaxLength": 1          },          "roomId": "string",          "sortOrder": 0,          "advancesPhase": true,          "done": true,          "isCurrent": true,          "assignedToMemberId": "string",          "scheduledDate": "string",          "notes": "string"        }      ],      "phaseTasks": [        {          "id": "string",          "sortOrder": 0,          "task": {            "name": "string",            "color": "string",            "icon": "string"          }        }      ],      "progress": {        "completed": 0,        "total": 0      },      "hasOverdueTask": true,      "trayId": "string",      "trayCode": "string",      "trayColor": "string",      "submittedAt": "string",      "dueDate": "string",      "plannedDate": "string"    }  ]}
Empty