Skip to main content
Order cancellation depends on the current status of your order and its collection method. Orders follow a finite state machine (FSM) pattern with specific rules governing when cancellation is permitted.
Important timing considerations to avoid financial costs:
  • Mobile phlebotomy: Appointments cancelled more than 24 hours in advance will be fully refunded. Cancellations made less than 24 hours before the scheduled appointment are non-refundable.
  • Test kits: Cancel before shipment to avoid fees. Test kits typically ship within the same business day if orders are placed before 1 PM ET.
  • Walk-in tests: Can generally be cancelled until sample collection begins.
  • On-site collection: Cancel before the collection event.

When Orders Can Be Cancelled

✅ Generally Cancellable States

All collection methods allow cancellation during these early phases:
  • ordered - Initial order placement
  • requisition_created - After requisition form is generated
  • requisition_bypassed - When requisition is bypassed
  • awaiting_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

✅ Can cancel:
  • received.walk_in_test.ordered
  • received.walk_in_test.requisition_created
  • received.walk_in_test.requisition_bypassed
  • collecting_sample.walk_in_test.appointment_scheduled
  • collecting_sample.walk_in_test.appointment_cancelled
  • collecting_sample.walk_in_test.appointment_pending
❌ Cannot cancel once collection begins:
  • cancelled.walk_in_test.cancelled - Already cancelled
  • completed.walk_in_test.completed - Order completed
  • sample_with_lab.walk_in_test.partial_results - Has partial results
  • collecting_sample.walk_in_test.redraw_available - Order marked as final but has missing results
  • failed.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.
If you need to cancel only the appointment (without cancelling the entire order), use the appropriate endpoint for your collection method:

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
Common reasons for cancellation failure:
  • 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
Look for these indicators in the response:
  • status field shows the current high-level status
  • events array shows the detailed state progression
  • Orders in early states (ordered, requisition_created) are typically cancellable
  • Orders with cancelled, completed, or failed status cannot be cancelled

Response Examples

Successful Cancellation

Cancellation Success Response

Successful Appointment Cancellation

Appointment Cancellation Response

For questions about a specific cancellation scenario, contact Junction support.