Archive a patient
Archives a patient by setting its archivedAt timestamp. Fails if the patient has active (non-archived) orders. Lab-only endpoint.
Archives a patient by setting its archivedAt timestamp. Fails if the patient has active (non-archived) orders. Lab-only endpoint.
__Secure-guidelab-prod.session_token<token>
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Response Body
application/json
curl -X POST "https://example.com/archive/patients"{ "success": true, "patient": { "id": "string", "firstName": "string", "lastName": "string", "archivedAt": "string" }, "warning": "string"}Empty
Empty
Empty
Empty
Archive an order POST
Archives a completed or cancelled order by setting its archivedAt timestamp. Shipment status is independent. Lab-only endpoint.
List archived orders GET
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.