Complete order fulfillment
Orders
Complete order fulfillment
Marks an order as completed and resets all associated equipment to idle state.
This endpoint should be called by a robot or orchestrator after an order has been fulfilled. It performs the following operations:
- Updates the order status to ‘completed’ and rfc_status to ‘completed’
- Marks all order_items as completed (fulfilled_quantity = quantity)
- Resets all totes associated with the order to ‘empty’ status and clears their associations
- Releases all carts assigned to the order (sets order_id to null, location to ‘idle’)
- Marks all bags for the order as ‘delivered’
- Marks all pick_list_items and sweep_items as ‘picked’/‘completed’
The Supabase RPC function ‘complete_order_fulfillment’ handles the database updates atomically.
POST
Complete order fulfillment
Documentation Index
Fetch the complete documentation index at: https://docs.switchyard.run/llms.txt
Use this file to discover all available pages before exploring further.