Orders
List Faire Orders
List Faire orders for a specific integration instance.
Get Faire Order
Get details of a specific Faire order including its line items.
Refetch Order from Faire
Re-fetch the order from the Faire API. Updates local data and (if a linked SKU sales order exists) refreshes the SKU sales order to mirror Faire's latest state. Returns the updated FaireOrderResource (with line_items, sales_order, faire_admin_url).
Get Order Filter Options (Distinct Values)
**Tenant resolution (multi-instance safety):**
Get Orders Latest Sync Info
Aggregate stats about the Faire orders previously synced to this instance. Powers the **Refresh from Faire** orders modal header card and the latest-sync indicator on the orders index.
Refresh Orders from Faire (Tracked)
Dispatches a `RefreshFaireOrdersTrackedJob` that walks Faire's `/api/v2/orders` endpoint and upserts `faire_orders` + `faire_order_line_items`. Returns immediately with a tracked job log ID — progress is visible in the global Job Progress Tray.
Submit Tracking to Faire (FBM)
Manually retry tracking submission for an FBM Faire order.
Archive Faire Order
Archives a single Faire order — stamps `archived_at = now()` via the `Archive` trait. Archived orders are excluded from the auto-create-SKU-orders pipelines (see `createSkuOrders`) and from the default orders listing (which uses `filter[archived]=` Active by default).
Unarchive Faire Order
Unarchives a single Faire order — clears `archived_at` via the `Archive` trait. After unarchiving, the order becomes eligible for auto-create-SKU-orders again.
Bulk Archive Faire Orders
Archives multiple Faire orders for the given integration instance. Scoped to active orders only — already-archived rows are silently skipped, and IDs from foreign integration instances are NOT affected (the controller filters `where('integration_instance_id', $instance->id)`).
Bulk Unarchive Faire Orders
Unarchives multiple Faire orders for the given integration instance. Scoped to archived orders only — already-active rows are silently skipped, and IDs from foreign integration instances are NOT affected.
Delete SKU Order from Faire Order
Deletes the linked SKU.io sales order for a single Faire order while keeping the Faire order itself intact. Optionally archives the Faire order in the same call to prevent re-creation on the next sync.
Bulk Delete SKU Orders
Bulk-deletes the linked SKU.io sales orders for multiple Faire orders while keeping the Faire orders themselves intact. Only orders with a linked sales order in the targeted integration instance are processed — IDs from foreign instances or without a linked SKU order are silently skipped.
Update SKU Order from Faire Order
Refetches the order from Faire and synchronously syncs the linked SKU.io sales order's status fields (`order_status`, `payment_status`, `last_synced_from_sales_channel_at`).
Bulk Update SKU Orders
Bulk-refetches Faire orders and re-syncs each linked SKU.io sales order's status fields (`order_status`, `payment_status`, `last_synced_from_sales_channel_at`). Only orders with a linked SKU sales order in the targeted integration instance are processed — foreign-instance IDs and orders without a linked SKU order are silently skipped.
List Orders
List all Temu orders for an integration instance.
Get Order
Get details of a specific Temu order.
Refresh Orders
Refresh orders from Temu.
Refresh Single Order
Refresh a single order from Temu.
Create SKU Orders
Create SKU.io sales orders from Temu orders.
Delete SKU Order
Delete the linked SKU sales order while keeping the Temu order intact.
Export Orders
Export Temu orders to CSV.
Create Products from Order Items
Create Temu product records for any order items that have no corresponding product in the database.