Flag Loop Return
POST/api/loop-returns/returns/:loopReturn/flag
Flags the return in Loop for manual review instead of processing it, for example when the items came back damaged. Loop does not refund or exchange a flagged return until someone reviews it in Loop. The return's outcome_status becomes flagged, and the flag is recorded in the linked RMA's activity log. When the warehouse grades a received item with one of the flag_on_grades, SKU.io flags the return itself.
returns:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body fields:
note(string, optional, max 255) — the reason, sent to Loop with the flag
Errors (each carries message and the return's current detail in data, except validation errors):
- 422 —
noteis too long, the return cannot be flagged now (cancelled, closed, still processing, already flagged), Loop refused it, or Loop Returns is not connected - 502 — Loop could not be reached; try again later
- 404 — the Loop return does not exist
Authentication: Requires a Bearer token with the returns scope (read for GET, write for the others). Requires the returns.update permission.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
- 502
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.
Bad Gateway