Cancel order
Cancels an order by setting its status to 'cancelled' and recording a status history entry. Labs can cancel any of their orders; clinics can only cancel orders in draft status.
Cancels an order by setting its status to 'cancelled' and recording a status history entry. Labs can cancel any of their orders; clinics can only cancel orders in draft status.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
Order ID
Response Body
application/json
curl -X DELETE "https://example.com/orders/550e8400-e29b-41d4-a716-446655440000"{ "message": "string"}Bulk delete or cancel orders POST
Processes a batch of order IDs in a single request. Drafts are deleted while their clinical files are archived for durable retention cleanup; non-draft orders are cancelled. Each order is processed independently.
Cancel an order with an explicit refund decision POST
Cancels an order. Paid orders require a lab owner/admin to choose a full, partial, or no refund and provide a reason. Stripe direct-charge refunds are committed only after provider confirmation.