Loop Returns
Get Loop Returns Connection
Returns the account's Loop Returns connection: its webhook registration, the returns settings, counts of returns by state, webhook health, and a setup checklist.
Update 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.
Register Loop Returns Webhooks
Registers SKU.io's webhook address with Loop for the return triggers SKU.io listens to (`return.created`, `return.updated`, `return.closed`, `return.processing.failed`), skipping triggers Loop already delivers to that address, and returns the connection summary. Safe to call again. The Loop API key needs the `developer_tools` scope as well as `returns`.
Import Loop Returns
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`.
Get Loop Sync Info
What the 'Refresh from Loop' dialog shows before it runs.
List Loop Destinations
Loop's return destinations with their names, for the destination → warehouse mapping in Loop settings. Every destination Loop lists is returned, plus any destination id seen on a return that Loop no longer lists. Loop's answer is cached for 15 minutes.
List Loop Returns
Lists the Loop returns mirrored into SKU.io, newest first, paginated.
Count New Loop Returns
How many Loop returns reached SKU.io since the signed-in user last opened the Loop returns list — the count beside 'Returns' in the Loop menu. The first call for a user starts counting from that moment (returns already imported are not new).
Mark Loop Returns Seen
Records that the signed-in user opened the Loop returns list, so nothing counts as new for them. Called by the returns list when it opens. No body.
Get Loop Return
Returns one Loop return with its lines, the linked RMA's quantities, whether Process and Flag can be sent now, and its recent webhook deliveries.
Match Loop Return
Tries again to link the Loop return to its sales order and an RMA, even when an earlier attempt gave up or the automatic matching is off. SKU.io finds the Shopify order Loop names, prefers the RMA the order's Shopify return produced, and otherwise creates an RMA from the Loop return. Lines are matched to products by SKU.
Process Loop Return
Asks Loop to process the return. Loop then issues the refund, exchange or store credit to the customer and confirms by webhook. The return's `outcome_status` becomes `processing` until Loop confirms (`processed`) or reports a failure (`failed`). When `auto_process_on_receipt` is on, SKU.io sends this itself once the warehouse receives every item.
Flag Loop Return
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.
Get Loop Return for RMA
Returns the Loop return linked to an RMA, in the same shape as Get Loop Return. When several Loop returns have pointed at the RMA, the most recent one is returned.
List Loop Webhook Events
Lists the webhook deliveries Loop sent to SKU.io, newest first, paginated. Use it to confirm Loop is delivering and to find deliveries that failed. Repeated deliveries of the same payload are recorded once.
Get Loop Webhook Event
Returns one webhook delivery with the full `payload` Loop sent.