When Orders Can Be Cancelled
✅ Generally Cancellable States
All collection methods allow cancellation during these early phases:ordered- Initial order placementrequisition_created- After requisition form is generatedrequisition_bypassed- When requisition is bypassedawaiting_registration- For registrable testkits
❌ Never Cancellable (Terminal States)
Orders cannot be cancelled once they reach these states:- Already cancelled:
cancelled,do_not_process - Completed:
completed,partial_results - Failed:
lost,sample_error,failure_to_deliver_to_customer,failure_to_deliver_to_lab
Collection Method Specific Rules
- Walk-In Tests
- At-Home Phlebotomy
- Testkits
- On-Site Collection
✅ Can cancel:
received.walk_in_test.orderedreceived.walk_in_test.requisition_createdreceived.walk_in_test.requisition_bypassedcollecting_sample.walk_in_test.appointment_scheduledcollecting_sample.walk_in_test.appointment_cancelledcollecting_sample.walk_in_test.appointment_pendingcollecting_sample.walk_in_test.redraw_available
cancelled.walk_in_test.cancelled- Already cancelledcompleted.walk_in_test.completed- Order completedsample_with_lab.walk_in_test.partial_results- Has partial resultsfailed.walk_in_test.sample_error- Sample error occurred
Cancelling a walk-in test order does not automatically cancel PSC appointments to prevent a poor patient experience, as it could lead to a patient arriving and their appointment being cancelled. Use the PSC appointment cancellation endpoint if you need to cancel the appointment separately. Orders can be reinstated by our support team if a patient shows up for an appointment related to a cancelled order.
How to Cancel
Cancel Appointment (Optional - For Reference Only)
Note: You can skip this step and go directly to cancelling the order. The system will automatically cancel at-home phlebotomy appointments when you cancel the order, but will not automatically cancel walk-in PSC appointments to avoid a poor patient experience where they arrive and their appointment is cancelled.
- At-home phlebotomy: Appointment Cancellation endpoint
- Walk-in tests (PSC): PSC Appointment Cancellation endpoint
At-Home Phlebotomy Appointment Cancellation
Walk-In Test (PSC) Appointment Cancellation
For walk-in tests scheduled at Patient Service Centers, use the PSC appointment cancellation endpoint:Cancel the Order
Use the order cancellation endpoint to cancel any lab test order.Automatic Appointment Handling:
- At-home phlebotomy: Appointments are automatically cancelled when you cancel the order
- Walk-in PSC: Appointments are not automatically cancelled to prevent poor patient experience if they show up. Orders can be reinstated if needed.
Error Handling
When attempting to cancel an order that cannot be cancelled, you’ll receive an error response:Error Response
- Order is already in a terminal state (completed, failed, or cancelled)
- Testkit has already shipped
- Sample has been collected or is with the lab
- Results are already available (partial or complete)
Checking Cancellation Eligibility
Before attempting cancellation, check the order’s current status using the get order endpoint:Check Order Status
statusfield shows the current high-level statuseventsarray shows the detailed state progression- Orders in early states (
ordered,requisition_created) are typically cancellable - Orders with
cancelled,completed, orfailedstatus cannot be cancelled
Response Examples
Successful Cancellation
Cancellation Success Response
Successful Appointment Cancellation
Appointment Cancellation Response
Related Resources
- Order Lifecycle Overview
- API Reference: Cancel Order
- API Reference: Cancel At-Home Appointment
- API Reference: Cancel PSC Appointment
- Webhooks for Order Events
For questions about specific cancellation scenarios, please contact support at support@junction.com