Loop Returns
App · 14 actions
Read, review and manage returns from your Loop store.
Actions
| Action | What it does |
|---|---|
| Add return note | Create Return Note. |
| Cancel return | Cancel Return. |
| Close return | Close Return. |
| Create return link | Create Return Deep Link. |
| Create return QR code link | Create Return Deep Link with QR Code. |
| Flag return for review | Flag Return. |
| Get return destination | Get Destination Details. |
| Get return details | Get Return Details. |
| List return destinations | Get All Destinations. |
| List return notes | Get Return Notes. |
| List return shipments | Advanced Shipping Notice. |
| List returns | Detailed Returns List. |
| Process return | Process Return. |
| Remove return line items | Remove Line Items. |
Add return note
Create Return Note.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
- Content
contenttextRequired - The content of the note.
Outputs
datatrue/false- The response from Loop Returns.
Example output
{
"data": false
}Cancel return
Cancel Return.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
Outputs
datatrue/false- The response from Loop Returns.
Example output
{
"data": false
}Close return
Close Return.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
Outputs
datatrue/false- The response from Loop Returns.
Example output
{
"data": false
}Create return link
Create Return Deep Link.
Inputs
- Name
nametextRequired - The name of the order in the commerce provider (e.g. Shopify).
- Zip
ziptextRequired - The order detail used to identify the order. Often the customer's shipping ZIP code, but depending on the merchant's shop settings, could also be the customer's email or phone number. A phone number matches the shipping address phone, or the billing address or customer phone when the order has no shipping address (for example, a local pickup order).
- Gift
gifttrue/false - Whether or not the return will use Loop's Gift flow. For details, see [Gift Returns](https://help.loopreturns.com/en/articles/1911041).
Outputs
dataobject- The response from Loop Returns.
Example output
{
"data": {
"url": "example"
}
}Create return QR code link
Create Return Deep Link with QR Code.
Inputs
- Name
nametextRequired - Name.
- Zip
ziptextRequired - Zip.
- Gift
gifttrue/false - Gift.
- Type
typetext - Type.One of:
png,eps,svg. - Size
sizenumber - Size.
Outputs
dataobject- The response from Loop Returns.
Example output
{
"data": {
"deeplink_url": "example",
"qr": "example"
}
}Flag return for review
Flag Return.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
Outputs
datatrue/false- The response from Loop Returns.
Example output
{
"data": false
}Get return destination
Get Destination Details.
Inputs
- Id
idnumberRequired - The destination's unique identifier.
Outputs
dataobject- The response from Loop Returns.
Example output
{
"data": {
"address": {
"address1": "example",
"address2": "example",
"city": "example",
"company": "example",
"country": "example",
"country_code": "example",
"name": "example",
"state": "example",
"zip": "example"
},
"enabled": false,
"id": 1,
"name": "example",
"provider_location_id": 1,
"type": "warehouse"
}
}Get return details
Get Return Details.
Inputs
- Return
return_idnumber - The unique identifier associated with the return.
- Order ID
order_idnumber - The unique identifier associated with the order.
- Order name
order_nametext - The order name from the commerce provider (e.g. Shopify).
- Currency type
currency_typetext - The currency type of the return. If set to `shop`, all currency fields in the response will use the shop's currency. If set to `presentment`, all currency fields in the response will use the currency presented to the shopper when they made the purchase.One of:
shop,presentment.
Outputs
dataobject- The response from Loop Returns.
Example output
{
"data": {
"carrier": "example",
"created_at": "example",
"currency": "example",
"customer": "example",
"customer_email": "example",
"customer_first_name": "example",
"customer_last_name": "example",
"destination_id": "example",
"edited_at": "example",
"exchange": "example",
"exchange_credit_total": "example",
"exchange_discount_total": "example",
"exchange_order_id": [],
"exchange_order_name": [],
"exchange_product_total": "example",
"exchange_tax_total": "example",
"exchange_total": "example",
"exchanges": [],
"fraud_risk": "low",
"gift_card": "example",
"gift_card_order_id": "example",
"gift_card_order_name": "example",
"gift_card_presentment": {
"currency": "example",
"value": "example"
},
"handling_fee": "example",
"id": 1,
"label_rate": "example",
"label_status": "example",
"label_updated_at": "example",
"label_url": "example",
"labels": [],
"line_items": [],
"multi_currency": "example",
"order_id": "example",
"order_name": "example",
"order_number": "example",
"outcome": "exchange",
"package_reference": "example",
"presentment": {
"credit_shipping_total": "example",
"currency": "example",
"gift_card": "example",
"handling_fee": "example",
"line_items": [],
"refund": "example",
"refund_breakdown": [],
"return_credit_total": "example",
"return_discount_total": "example",
"return_product_total": "example",
"return_shipping_tax_total": "example",
"return_shipping_total": "example",
"return_tax_total": "example",
"return_total": "example"
},
"provider_order_id": 1,
"provider_order_number": 1,
"provider_return_id": 1,
"refund": "example",
"refund_shipping_tax_total": "example",
"refund_shipping_total": "example",
"refunds": [],
"return_credit_total": "example",
"return_discount_total": "example",
"return_method": "example",
"return_product_total": "example",
"return_tax_total": "example",
"return_total": "example",
"shopify_refund_object": [],
"state": "example",
"status_page_url": "example",
"total": "example",
"tracking_number": "example",
"type": "standard",
"updated_at": "example",
"upsell": "example"
}
}List return destinations
Get All Destinations.
Inputs
None.
Outputs
dataobject- The response from Loop Returns.
Example output
{
"data": {
"destinations": []
}
}List return notes
Get Return Notes.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
Outputs
datalist- The response from Loop Returns.
Example output
{
"data": []
}List return shipments
Advanced Shipping Notice.
Inputs
- Start time
start_timedate and time - The start of the date range. If omitted, defaults to one week ago at the start of the day. Before API version `2026-10`, invalid values fall back to the Unix epoch. In API version `2026-10` and later, an unparseable value returns `422`, and the range from `from` to `to` must not exceed 120 days.
- End time
end_timedate and time - The end of the date range. If omitted, defaults to the end of the current day. Before API version `2026-10`, invalid values fall back to the Unix epoch. In API version `2026-10` and later, an unparseable value returns `422`, and the range from `from` to `to` must not exceed 120 days.
Outputs
datalist- The response from Loop Returns.
Example output
{
"data": []
}List returns
Detailed Returns List.
Inputs
- Start time
start_timedate and time - The start date and time for the returns list. If `from` is passed without `to`, returns created in the 24 hours after `from` are returned.
- End time
end_timedate and time - The end date and time for the returns list. If `to` is provided without `from`, the parameter is ignored and returns from the last 24 hours are returned.
- Filter
filtertext - The date used to filter results.One of:
created_at(Created at),updated_at(Updated at). Default:created_at. - State
statetext - The keywords used to filter the list to only include returns in a particular state. Defaults to only contain open, closed, and expired returns.One of:
open,closed,cancelled,expired,review. - Page size
page_sizenumber - The number of returns to return per page when paginating.
- Cursor
cursortext - The cursor identifying the page to return when paginating.
Outputs
dataobject- The response from Loop Returns.
Example output
{
"data": {
"nextPageUrl": "example",
"previousPageUrl": "example",
"returns": []
}
}Process return
Process Return.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
Outputs
datatrue/false- The response from Loop Returns.
Example output
{
"data": false
}Remove return line items
Remove Line Items.
Inputs
- Id
idnumberRequired - The unique identifier associated with the return.
- Line item ID
line_item_idtextRequired - The `line_item_id` of an item on the return, as listed in the return's `line_items` array. To remove more than one, pass them as comma separated values.
Outputs
datatrue/false- The response from Loop Returns.
Example output
{
"data": false
}