Skip to main content

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.

Required scope: returns:write

Grant 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 — note is 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​

OK

Response Headers
    Content-Type