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.
returns:readGrant 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_atlast_webhook_at,last_error,last_error_at— the last delivery from Loop and the last error recorded on the connectionwebhook_url— the address Loop delivers webhooks towebhooks—registered,registered_at,error(why the last registration failed, or null) andtopics(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 twicesettings— 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_atandfailed_24hchecklist— setup steps (webhooks,restock,destinations), each withdoneandlabeldestinations— 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
- 200
- 401
- 403
- 404
- 429
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
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.