Import and refresh orders
sync_ordersImports recent Shopify orders that webhooks missed and refreshes fulfillment status; run for one store or all connected stores to keep order data current.
Instructions
Import orders that never reached ApparelHub and refresh order status from fulfillment providers. For each connected Shopify shop it imports recent orders a webhook should have delivered, scoped to orders placed after the shop was connected and excluding cancelled or already-fulfilled ones (an imported paid order is sent to the fulfillment provider like a live one). Pass store_uuid to sync one store; omit it for all stores. Read shopify[]: processed imported now, not_eligible_reasons why others were left alone, truncated means run again, outcome: "auth_revoked" carries a reconnect_url the merchant must open. Report errors[].
[#e208cf]
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Workspace uuid to scope to (agency accounts). Omit for the Default workspace. | |
| store_uuid | No | Scope the sync to one store (omit for all stores). |