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 test kits
❌ 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
- Mobile Phlebotomy
- Test Kits
- 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_pending
cancelled.walk_in_test.cancelled- Already cancelledcompleted.walk_in_test.completed- Order completedsample_with_lab.walk_in_test.partial_results- Has partial resultscollecting_sample.walk_in_test.redraw_available- Order marked as final but has missing resultsfailed.walk_in_test.sample_error- Sample error occurred
Cancelling a walk-in test order does not automatically cancel PSC appointments. Use the PSC appointment cancellation endpoint to cancel the appointment separately.
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 mobile 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.
- Mobile phlebotomy: Appointment Cancellation endpoint
- Walk-in tests (PSC): PSC Appointment Cancellation endpoint
Mobile 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:
- Mobile 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)
- Test kit 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 Mobile Phlebotomy Appointment
- API Reference: Cancel PSC Appointment
- Webhooks for Order Events
For questions about a specific cancellation scenario, contact Junction support.