For Agents
Create, process, close, and label ecommerce returns on Loop Returns through 13 endpoints; subscribe webhooks for status changes via an API key in the X-Authorization header.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Loop Returns API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Loop Returns API.
Create a return for an order with line items, return reasons, and resolution type (refund, exchange, store credit)
Process or close an existing return to advance it through the resolution workflow
Generate a return shipping label and retrieve the tracking number for the customer
GET STARTED
Use for: I need to create a return for a Shopify order, Process a Loop return so it moves to the next workflow stage, Generate a prepaid shipping label for a return, List all returns created in the last 7 days
Not supported: Does not handle outbound order fulfilment, payment refunds on the gateway, or inventory restocking outside Loop's destination model — use for the Loop Returns lifecycle (returns, labels, webhooks, configuration) only.
Loop Returns is a Shopify-first returns-management platform whose API exposes the post-purchase return lifecycle — creating returns, processing or closing them, generating return shipping labels, and configuring webhooks. The 13 endpoints cover return CRUD, return-reason and destination lookups, and webhook subscriptions so external systems can react to status changes. Authentication uses an API key in the X-Authorization header issued from the Loop admin.
List configured return reasons and destinations to populate a customer-facing returns portal
Subscribe and unsubscribe webhooks so order systems react to return status changes in real time
Retrieve a return record by ID for support, fraud review, or warehouse handoff
Patterns agents use Loop Returns API for, with concrete tasks.
★ Self-service returns portal
Shopify-based brands embed a returns portal that calls Loop Returns to create a return, fetch the available reasons and destinations, and generate a prepaid label for the customer. The 13 endpoints cover the full flow from intake to label issuance, and webhooks notify the OMS once the warehouse processes the inbound parcel. Most brands ship the integration in under a week.
POST /returns with order ID, line items, and reason code; then POST /returns/{returnId}/labels to generate the prepaid label and return the tracking number to the customer.
Returns ops automation
Operations teams use the API to bulk-process backlogged returns once the warehouse confirms receipt. List endpoints surface returns awaiting action, /returns/{returnId}/process advances them, and webhooks push the resulting status to downstream finance and inventory systems so refunds and stock updates happen without manual intervention.
GET /returns filtered by status 'awaiting_processing', loop through each ID and POST /returns/{returnId}/process, and confirm the status webhook fires for each.
Refund and inventory reconciliation
Finance and inventory teams subscribe to Loop webhooks to keep their ledger and stock counts aligned with return outcomes. When a return is processed or closed, the webhook payload triggers a refund event in the payments system and an inventory adjustment for the destination warehouse, eliminating the daily reconciliation report most teams used to run by hand.
POST /webhooks subscribing to 'return.processed', then on each event POST a refund in the payment system and increment the destination warehouse's inventory for the returned SKUs.
Agent-driven returns assistant via Jentic
An AI assistant in customer service handles 'where is my return?' questions by calling Loop through Jentic. The agent fetches the return record, the associated label tracking, and the destination so it can answer without touching the rep dashboard. Jentic isolates the X-Authorization API key so the agent never sees the raw secret.
Use Jentic to search 'get loop return', load GET /returns/{returnId}, execute it with the return ID from the chat, and combine the response with GET /returns/{returnId}/labels to answer the customer.
13 endpoints — loop returns is a shopify-first returns-management platform whose api exposes the post-purchase return lifecycle — creating returns, processing or closing them, generating return shipping labels, and configuring webhooks.
METHOD
PATH
DESCRIPTION
/returns
Create a return for an order
/returns/{returnId}
Get a return by ID
/returns/{returnId}/process
Process a return through the workflow
/returns/{returnId}/close
Close a return
/returns/{returnId}/labels
Generate a return shipping label
/return-reasons
List configured return reasons
/destinations
List configured return destinations
/webhooks
Subscribe a webhook for return events
/returns
Create a return for an order
/returns/{returnId}
Get a return by ID
/returns/{returnId}/process
Process a return through the workflow
/returns/{returnId}/close
Close a return
/returns/{returnId}/labels
Generate a return shipping label
Three things that make agents converge on Jentic-routed access.
Credential isolation
Loop Returns API keys live in the Jentic vault and Jentic injects the X-Authorization header at execution time. Agents never see the raw key — important because a Loop key has full access to every return in the account.
Intent-based discovery
Agents search by intent (for example 'create a return' or 'generate return label') and Jentic returns the matching Loop operation with its input schema, so the small but specific surface area is reachable without browsing docs.
Time to first call
Direct Loop integration: 2-3 days for API-key handling, webhook setup, and label generation. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Stripe API
Payment processor whose refunds are issued in response to Loop return.processed events
Use Stripe alongside Loop when a processed return needs to trigger a refund on the original payment intent rather than store credit.
Specific to using Loop Returns API through Jentic.
What authentication does the Loop Returns API use?
The Loop Returns API uses an API key sent in the X-Authorization header — generate the key from the Loop admin under API integrations. Through Jentic, the key is stored encrypted in the vault and the agent receives a scoped reference, so the raw key never enters agent context.
Can I generate a return shipping label through the Loop Returns API?
Yes. POST /returns/{returnId}/labels generates a prepaid label and GET /returns/{returnId}/labels retrieves it. The response includes the carrier tracking number you can pass back to the customer or store in your OMS.
What are the rate limits for the Loop Returns API?
Loop applies per-account rate limits and returns HTTP 429 when exceeded; the published guidance is to retry with exponential backoff. Jentic forwards 429 responses unchanged so an agent can pause and retry rather than crash the workflow.
How do I subscribe to return status changes through Jentic?
Search Jentic for 'subscribe loop returns webhook', load POST /webhooks, and execute it with your callback URL and the events you care about (return.created, return.processed, return.closed). Loop will then POST to your URL whenever those events fire.
Does the Loop Returns API support exchanges as well as refunds?
Yes. POST /returns accepts a resolution type that includes refund, exchange, and store credit, and the configured destinations control where exchanged stock is routed. Use GET /destinations to list configured warehouse destinations before creating exchange returns.
How many endpoints does the Loop Returns API have?
13 endpoints across returns, labels, configuration (return reasons and destinations), and webhooks. The whole returns lifecycle fits into a small operation set that an agent can hold in context at once.
/return-reasons
List configured return reasons
/destinations
List configured return destinations
/webhooks
Subscribe a webhook for return events