Skip to main content

Update Loop Returns Settings

PUT 

/api/loop-returns/settings

Saves how Loop returns behave in SKU.io and returns the connection summary. Fields you leave out keep their current value; destination_warehouse_map, flag_on_grades, auto_match and auto_process_on_receipt must always be sent.

Required scope: returns:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body fields:

  • shopify_integration_instance_id (integer, optional, nullable) — the Shopify store whose orders Loop returns belong to. Null matches orders from any Shopify store
  • destination_warehouse_map (array, required, may be empty, max 200) — which warehouse receives each Loop destination
  • destination_warehouse_map[].destination_id (string, required, max 255, unique within the map) — a Loop destination id (the connection lists those seen in destinations)
  • destination_warehouse_map[].warehouse_id (integer, required) — an existing warehouse id
  • default_warehouse_id (integer, optional, nullable) — the warehouse for destinations that are not mapped
  • auto_match (boolean, required) — link new Loop returns to an RMA automatically
  • auto_process_on_receipt (boolean, required) — once the warehouse receives every item of a linked return, ask Loop to process it (Loop then issues the refund, exchange or store credit)
  • flag_on_grades (array of strings, required, may be empty) — condition grades (A, B, C, unsellable) that make SKU.io flag the return in Loop for review instead of processing it
  • restock_disabled_confirmed (boolean, optional) — confirms Loop's own Shopify restocking is turned off

Returns 422 with field errors when validation fails. 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.update permission.

Request​

Responses​

OK

Response Headers
    Content-Type