GuideLab API

Get calendar data

Returns order counts and summaries grouped by date for a given date range. Used for calendar views to show how many orders are due or have deadlines on each day. Excludes drafts and archived orders. Supports searching by order number, patient name, doctor, or partner org.

GET
/orders/calendar

Returns order counts and summaries grouped by date for a given date range. Used for calendar views to show how many orders are due or have deadlines on each day. Excludes drafts and archived orders. Supports searching by order number, patient name, doctor, or partner org.

Authorization

__Secure-guidelab-prod.session_token<token>

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

In: cookie

Query Parameters

startDate*string

Start date (YYYY-MM-DD)

endDate*string

End date (YYYY-MM-DD)

dateField?string

Date field to use: dueDate (default) or deadline

search?string

Search term for order number, patient, doctor, or org name

Response Body

application/json

curl -X GET "https://example.com/orders/calendar?startDate=2025-01-01&endDate=2025-01-31"
{  "days": {    "property1": {      "total": 0,      "orders": [        {          "id": "string",          "orderNumber": "string",          "patientName": "string",          "status": "string"        }      ]    },    "property2": {      "total": 0,      "orders": [        {          "id": "string",          "orderNumber": "string",          "patientName": "string",          "status": "string"        }      ]    }  }}
Empty
Empty