Loop Returns

App · 14 actions

Read, review and manage returns from your Loop store.

Actions

ActionWhat it does
Add return noteCreate Return Note.
Cancel returnCancel Return.
Close returnClose Return.
Create return linkCreate Return Deep Link.
Create return QR code linkCreate Return Deep Link with QR Code.
Flag return for reviewFlag Return.
Get return destinationGet Destination Details.
Get return detailsGet Return Details.
List return destinationsGet All Destinations.
List return notesGet Return Notes.
List return shipmentsAdvanced Shipping Notice.
List returnsDetailed Returns List.
Process returnProcess Return.
Remove return line itemsRemove Line Items.

Add return note

Create Return Note.

Inputs

IdidnumberRequired
The unique identifier associated with the return.
ContentcontenttextRequired
The content of the note.

Outputs

datatrue/false
The response from Loop Returns.
Example output
{
  "data": false
}

Cancel return

Cancel Return.

Inputs

IdidnumberRequired
The unique identifier associated with the return.

Outputs

datatrue/false
The response from Loop Returns.
Example output
{
  "data": false
}

Close return

Close Return.

Inputs

IdidnumberRequired
The unique identifier associated with the return.

Outputs

datatrue/false
The response from Loop Returns.
Example output
{
  "data": false
}

Create Return Deep Link.

Inputs

NamenametextRequired
The name of the order in the commerce provider (e.g. Shopify).
ZipziptextRequired
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).
Giftgifttrue/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 Deep Link with QR Code.

Inputs

NamenametextRequired
Name.
ZipziptextRequired
Zip.
Giftgifttrue/false
Gift.
Typetypetext
Type.One of: png, eps, svg.
Sizesizenumber
Size.

Outputs

dataobject
The response from Loop Returns.
Example output
{
  "data": {
    "deeplink_url": "example",
    "qr": "example"
  }
}

Flag return for review

Flag Return.

Inputs

IdidnumberRequired
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

IdidnumberRequired
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

Returnreturn_idnumber
The unique identifier associated with the return.
Order IDorder_idnumber
The unique identifier associated with the order.
Order nameorder_nametext
The order name from the commerce provider (e.g. Shopify).
Currency typecurrency_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

IdidnumberRequired
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 timestart_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 timeend_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 timestart_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 timeend_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.
Filterfiltertext
The date used to filter results.One of: created_at (Created at), updated_at (Updated at). Default: created_at.
Statestatetext
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 sizepage_sizenumber
The number of returns to return per page when paginating.
Cursorcursortext
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

IdidnumberRequired
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

IdidnumberRequired
The unique identifier associated with the return.
Line item IDline_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
}

On this page