# Loop Returns

> Read, review and manage returns from your Loop store.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/loop-returns

## Actions

### Add return note

Create Return Note.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.
- Content (`content`, text, required): The content of the note.

**Outputs**

- `data` (true/false): The response from Loop Returns.

**Example output**

```json
{
  "data": false
}
```

### Cancel return

Cancel Return.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.

**Outputs**

- `data` (true/false): The response from Loop Returns.

**Example output**

```json
{
  "data": false
}
```

### Close return

Close Return.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.

**Outputs**

- `data` (true/false): The response from Loop Returns.

**Example output**

```json
{
  "data": false
}
```

### Create return link

Create Return Deep Link.

**Inputs**

- Name (`name`, text, required): The name of the order in the commerce provider (e.g. Shopify).
- Zip (`zip`, text, required): 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 (`gift`, true/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**

- `data` (object): The response from Loop Returns.

**Example output**

```json
{
  "data": {
    "url": "example"
  }
}
```

### Create return QR code link

Create Return Deep Link with QR Code.

**Inputs**

- Name (`name`, text, required): Name.
- Zip (`zip`, text, required): Zip.
- Gift (`gift`, true/false): Gift.
- Type (`type`, text): Type. One of: `png`, `eps`, `svg`.
- Size (`size`, number): Size.

**Outputs**

- `data` (object): The response from Loop Returns.

**Example output**

```json
{
  "data": {
    "deeplink_url": "example",
    "qr": "example"
  }
}
```

### Flag return for review

Flag Return.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.

**Outputs**

- `data` (true/false): The response from Loop Returns.

**Example output**

```json
{
  "data": false
}
```

### Get return destination

Get Destination Details.

**Inputs**

- Id (`id`, number, required): The destination's unique identifier.

**Outputs**

- `data` (object): The response from Loop Returns.

**Example output**

```json
{
  "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_id`, number): The unique identifier associated with the return.
- Order ID (`order_id`, number): The unique identifier associated with the order.
- Order name (`order_name`, text): The order name from the commerce provider (e.g. Shopify).
- Currency type (`currency_type`, text): 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**

- `data` (object): The response from Loop Returns.

**Example output**

```json
{
  "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**

- `data` (object): The response from Loop Returns.

**Example output**

```json
{
  "data": {
    "destinations": []
  }
}
```

### List return notes

Get Return Notes.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.

**Outputs**

- `data` (list): The response from Loop Returns.

**Example output**

```json
{
  "data": []
}
```

### List return shipments

Advanced Shipping Notice.

**Inputs**

- Start time (`start_time`, date 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_time`, date 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**

- `data` (list): The response from Loop Returns.

**Example output**

```json
{
  "data": []
}
```

### List returns

Detailed Returns List.

**Inputs**

- Start time (`start_time`, date 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_time`, date 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 (`filter`, text): The date used to filter results. One of: `created_at` (Created at), `updated_at` (Updated at). Default: `created_at`.
- State (`state`, text): 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_size`, number): The number of returns to return per page when paginating.
- Cursor (`cursor`, text): The cursor identifying the page to return when paginating.

**Outputs**

- `data` (object): The response from Loop Returns.

**Example output**

```json
{
  "data": {
    "nextPageUrl": "example",
    "previousPageUrl": "example",
    "returns": []
  }
}
```

### Process return

Process Return.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.

**Outputs**

- `data` (true/false): The response from Loop Returns.

**Example output**

```json
{
  "data": false
}
```

### Remove return line items

Remove Line Items.

**Inputs**

- Id (`id`, number, required): The unique identifier associated with the return.
- Line item ID (`line_item_id`, text, required): 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**

- `data` (true/false): The response from Loop Returns.

**Example output**

```json
{
  "data": false
}
```
