This guide assumes you have API access and the necessary permissions. For help enabling these features, contact your Merchant Success Manager or support@loopreturns.com.
Loop’s Return Actions APIs allow you to programmatically manage and update returns—such as processing, cancelling, flagging, closing, or adding notes—directly from your own systems. Use these endpoints to streamline operations, automate workflows, and keep your return data up to date.
Each action can be used individually to support specific business needs, whether you’re automating exception handling, updating return status, or integrating with your internal tools.
Ensure your API key has the necessary permissions for the actions you intend to perform.
Selecting the correct endpoint depends on your operational workflow. Use the list below to determine which API action best fits your use case:
Best Practice: Use these actions in combination with return data APIs and webhooks for a complete return management workflow.
Actions in this section will finalize, close, or archive a return. Once used, the return is considered closed in Loop and cannot be further actioned except for read-only purposes.
Use the Process Return endpoint to complete a return and trigger downstream actions such as refunds, exchanges, or store credits. This is typically the final step after a return has been received and reviewed.
Most returns can be processed automatically in Loop using automated processing events (like shipping label scans). Use the Process Return endpoint for advanced workflows—such as when a 3PL or WMS confirms receipt or inspection—to trigger outcomes based on external system events.
When to use:
Path Parameter:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
How it works:
return_id
path parameter."true"
) on success, or an error object if not processable.See the Process Return API docs for full details.
Use the Cancel Return endpoint to cancel a return in Loop. Canceling a return will allow a customer to make another return with the same items.
When to use:
Query Parameters:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
reason | string | (Optional) Reason for cancellation. |
How it works:
return_id
path parameter (and optional reason
).See the Cancel Return API docs for full details.
Use the Close Return endpoint to close a return. Closing a return will not fulfill any outcomes such as exchanges or gift cards, and the items are not able to be used in a new return.
When to use:
Query Parameters:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
How it works:
return_id
path parameter.See the Close Return API docs for full details.
Use these endpoints to update or flag returns that are still open and in progress.
Use the Remove Line Items endpoint to remove line items from a return and process the return.
Important: This call will both remove the specified line items and immediately process/close the return. You can pass multiple line_item_id
values (comma-separated) to remove several items at once, but you must be prepared for the return to be closed after this call.
Currently, only returns with refund outcomes allow for line items to be removed.
When to use:
Parameters:
Parameter | In | Type | Required | Description |
---|---|---|---|---|
return_id | path | integer | Yes | The unique identifier for the return. |
line_item_id | query | string | Yes | The ID(s) of the line item(s) to remove (comma-separated for multiple). |
How it works:
return_id
path parameter and one or more line_item_id
query parameters.See the Remove Line Items API docs for full details.
Flag a return in Loop for review. This will prevent automated processing and will require a human to go into the merchant admin in Loop and review this return.
Query Parameters:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
reason | string | (Optional) Reason for cancellation. |
How it works:
return_id
path parameter (and optional reason
).See the Flag Return API docs for full details.
These endpoints allow you to add and retrieve internal notes for returns, supporting record-keeping, audit trails, and team communication.
Return notes are visible on the timeline of the return details page in the Loop admin, making them easily accessible for your team.
Use the Get Return Notes endpoint to retrieve notes associated with a return. Notes are useful for tracking internal comments, history, or audit trails.
When to use:
Query Parameters:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
How it works:
return_id
path parameter.See the Get Return Notes API docs for full details.
Use the Create Return Note endpoint to add a new note to a return. Notes help with internal communication and record-keeping.
When to use:
Path Parameter:
Parameter | In | Type | Required | Description |
---|---|---|---|---|
return_id | path | integer | Yes | The unique identifier for the return. |
Request Body: (application/json, required)
Field | Type | Required | Description |
---|---|---|---|
note | string | Yes | The content of the note. |
How it works:
return_id
path parameter is required.note
field.See the Create Return Note API docs for full details.
Use these endpoints to generate direct links or QR codes for accessing returns, making it easier to provide access to customers or internal teams.
Use the Create Return Deep Link endpoint to generate a direct link to a return for customer or internal access.
When to use:
Query Parameters:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
How it works:
return_id
path parameter.See the Create Return Deep Link API docs for full details.
Use the Create Return Deep Link with QR Code endpoint to generate a direct link and a QR code for a return.
When to use:
Query Parameters:
Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier for the return. |
How it works:
return_id
path parameter.See the Create Return Deep Link with QR Code API docs for full details.
By leveraging these return action endpoints, you can fully customize and automate your returns workflow to fit your business needs. Use the right endpoint for each scenario—whether automating with Loop events or integrating with external systems like 3PLs or WMS. For best results, combine these actions with return data APIs and webhooks to create a seamless, robust return management experience for your team and customers.