Skip to main content

Get Loop Returns Connection

GET 

/api/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.

Required scope: returns:read

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

There is one Loop Returns connection per account, so no instance id is needed.

Response fields:

  • connector_id, name, connected_at
  • last_webhook_at, last_error, last_error_at — the last delivery from Loop and the last error recorded on the connection
  • webhook_url — the address Loop delivers webhooks to
  • webhooks — registered, registered_at, error (why the last registration failed, or null) and topics (the Loop triggers subscribed to)
  • last_reconciled_at, last_reconcile_error — the daily re-read of returns Loop changed, and why it last failed (null when it succeeded)
  • restock_warning — null, or {last_event_at, loop_return_id} when Loop restocked a return in Shopify within the last 30 days. Loop's Shopify restocking should be off, because SKU.io adds the stock when the warehouse receives the return; otherwise the stock is counted twice
  • settings — the returns settings (see Update Loop Returns Settings)
  • stats — open, awaiting_receipt, processed_7d, flagged, failed, unresolved_skus (open returns with a SKU that matches no product), awaiting_over_14_days, unlinked (open returns not yet attached to an RMA)
  • webhook_health — last_event_at and failed_24h
  • checklist — setup steps (webhooks, restock, destinations), each with done and label
  • destinations — every Loop destination id seen on a return, for the warehouse map

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).

warranty_repairs counts the Loop warranty returns that became repair cases on this same connection: open (not closed, rejected or canceled), total, last_created_at (UTC), and push_updates (whether repair progress is posted back to the Loop return as notes).

Request​

Responses​

OK

Response Headers
    Content-Type