Placing Orders
This guide covers how orders are created and managed in Switchyard, including manual order creation for testing.Order Sources
Orders can enter Switchyard from multiple sources:| Source | Description |
|---|---|
| Goods Mobile App | Primary source - customers place orders via API |
| Test Orders | Manual creation for testing fulfillment flow |
| Draft Orders | Admin-created orders via Switchyard dashboard |
Creating Test Orders
For testing the fulfillment flow without using the mobile app, you can create test orders directly from the Admin API.Via API
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
items | array | Yes | Array of items to include |
items[].variant_id | string | Yes | Product variant ID |
items[].quantity | number | Yes | Quantity to order |
customer_id | string | No | Existing customer ID (creates test customer if omitted) |
shipping_address | object | No | Delivery address (uses default if omitted) |
notes | string | No | Internal notes about the test |
Listing Test Orders
Using Draft Orders
Switchyard’s built-in draft order system provides a full-featured way to create orders:- Go to Orders → Draft Orders in the admin dashboard
- Click Create Draft Order
- Add customer, items, and shipping details
- Complete the draft to create the order
Order Flow After Creation
Once an order is created (from any source), it follows the standard fulfillment flow:- Pending - Order received, awaiting processing
- Processing - System analyzing sourcing (RFC vs sweep)
- Sweep/Picking - Items being sourced
- Staged - Order assembled in tote
- Delivering - Robot en route
- Delivered - Complete
Testing Scenarios
Common scenarios to test:RFC-Only Order
Create an order with items that are in RFC stock:Sweep Order
Create an order with items that require retailer sourcing:Hybrid Order
Create an order with both RFC and sweep items:Cleanup
Test orders are marked withis_test_order: true in metadata and can be filtered/deleted separately from production orders.