Manage order lifecycles, fulfillment, shipping, and cancellations. Use when running `stateset-orders`, `stateset-direct orders`, or updating order status.
Handle order creation, status transitions, and fulfillment updates.
stateset-orders ... or stateset-direct orders <action>--apply.list_orders, get_order, create_order, , , .update_order_statusship_ordercancel_orderlist_orders, get_order — no --apply needed.create_order, update_order_status, ship_order, cancel_order — requires --apply.stateset orders list --status processing --limit 20
stateset orders get ord_123
stateset orders update-status ord_123 --status shipped --tracking 1Z999AA10123456784 --apply
stateset orders cancel ord_456 --reason customer_request --apply
{"status":"updated","order_id":"ord_123","order_status":"shipped","tracking_number":"1Z999AA10123456784","carrier":"ups"}
order_status before calling update_order_status.commerce-customer-service instead of cancelling.tracking_number missing: verify the carrier API response in ship_order output.order_id format (prefix ord_) and run list_orders to confirm.INVALID_TRANSITION: Status change not allowed from current order state.ORDER_NOT_FOUND: No order exists for the given order_id.FULFILLMENT_CONFLICT: Order already shipped; use a return flow instead.