Get most recent draft order
Returns the most recent draft order created by the authenticated user within their organization. Includes related clinic, lab, patient, and line item data. Returns null if no draft exists.
Returns the most recent draft order created by the authenticated user within their organization. Includes related clinic, lab, patient, and line item data. Returns null if no draft exists.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Response Body
application/json
curl -X GET "https://example.com/orders/drafts"{ "draft": null}Get specific draft order GET
Returns a specific draft order by ID, including related clinic, lab, patient, line items, and attached files. Only accessible by the draft creator within their organization.
Get calendar data GET
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.