List archived orders
Returns paginated archived orders for active clinic partnerships. Hidden patient names are masked and excluded from search. Supports filtering by clinic ID. Lab-only endpoint.
Returns paginated archived orders for active clinic partnerships. Hidden patient names are masked and excluded from search. Supports filtering by clinic ID. Lab-only endpoint.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Response Body
application/json
curl -X GET "https://example.com/archive/orders"{ "data": [ { "id": "string", "orderNumber": "string", "status": "string", "createdAt": "string", "archivedAt": "string", "archivedByUser": null, "archivedByUserNameMissing": true, "patient": null, "patientFirstNameMissing": true, "clinic": null } ], "pagination": { "page": 0, "limit": 0, "total": 0, "totalPages": 0 }}Archive a patient POST
Archives a patient by setting its archivedAt timestamp. Fails if the patient has active (non-archived) orders. Lab-only endpoint.
List archived patients GET
Returns paginated archived patients whose PII is shared through an active partnership or an explicit patient grant. Inaccessible patients are omitted. Supports search and clinic filtering. Lab-only endpoint.