Import Loop Returns
POST/api/loop-returns/import
Starts a background read of Loop returns. Each return is mirrored into SKU.io and, when auto_match is on, linked to an RMA. Returns already mirrored are updated, not duplicated. The dashboard's "Import Loop returns" uses days; the returns list's "Refresh from Loop" uses since_latest or date_range.
returns:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body fields:
mode(string, optional, defaultdays) —days(the lastdaysdays),since_latest(everything Loop changed since the last check, with a 6-hour overlap; the last 3 days when Loop was never checked) ordate_range(returns Loop changed betweendate_fromanddate_to)days(integer, optional, 1–365, default 90) — how far back thedaysmode readsdate_from(dateY-m-d, required whenmodeisdate_range) — first day, in the account's time zone; up to 365 days back, on or beforedate_todate_to(dateY-m-d, required whenmodeisdate_range) — last day, in the account's time zone; not in the future
A read that runs up to now (days, since_latest) records the time as Loop's last check (see Get Loop Sync Info). The response carries tracked_job_log_id, the id of the background job that reports progress.
Returns 422 when a field is out of range. Returns 404 with a message when the account has no Loop Returns connection.
Authentication: Requires a Bearer token with the returns scope (read for GET, write for the others). Requires the integrations.sync permission.
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
Response Headers
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.