Refresh Orders
POST/api/magento2/integration-instances/:magento2IntegrationInstance/orders/refresh
Dispatch the tracked job that refreshes Magento 2 orders. Returns the tracked_job_log_id so the frontend can pivot the global JobProgressTray to it. Job name prefix is Refresh Magento 2 Orders: — the page's lastCompletedJob watcher matches on this prefix.
Body params:
mode(required) — one ofsince_latest,from_start_date,date_range,all.since_latestresumes from the cursor stored on the local orders table (falls back tosince_atthen to the integration's configured start_date).from_start_datewalks from the integration's configured start date (Settings → Orders → Start date).date_rangewalks a bounded[date_from, date_to]window.all— Full Re-sync. Walks every order Magento returns, ignoring start_date entirely. Mirrors the option BigCommerce / eBay / WooCommerce already expose.
since_at(optional, ISO datetime) — fallback cursor used bysince_latestwhen our local orders table is empty.date_from/date_to(required whenmode=date_range, ISO date) — inclusive bounds of the date window.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.