# Returnless — Pipedream Connect

> Automate your return process with our platform

- API slug: `returnless` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Commerce
- Website: https://www.returnless.com
- This page (HTML): https://pipedream.com/apps/returnless
- Tools: 16 actions · 4 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: returnless`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "returnless",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Return Order:
const result = await mcp.callTool({
  name: "returnless-create-return-order",
  arguments: {
    formId: "Form ID",
    locale: "Locale",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "returnless-create-return-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    returnless: { authProvisionId: "apn_xxxxxxx" },
    formId: "Form ID",
    locale: "Locale",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (16)

### `returnless-create-return-order` — Create Return Order (Write)

Create a return order. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/create-return-order.md

### `returnless-list-country-id-options` — List Country ID Options (Read-only)

Retrieves available options for the Country ID field.

Full schema: https://pipedream.com/apps/returnless/actions/list-country-id-options.md

### `returnless-list-return-orders` — List Return Orders (Read-only)

Retrieve a list of return orders. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-return-orders.md

### `returnless-list-return-statuses` — List Return Statuses (Read-only)

List all return statuses. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-return-statuses.md

### `returnless-list-sales-order-items` — List Sales Order Items (Read-only)

Retrieve all items from a specific sales order with cursor-based pagination support. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-sales-order-items.md

### `returnless-list-sales-orders` — List Sales Orders (Read-only)

Retrieve a list of sales orders sorted by creation date, with the most recent sales orders appearing first. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-sales-orders.md

### `returnless-list-shipments` — List Shipments (Read-only)

List all shipments. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-shipments.md

### `returnless-list-shipments-of-return-order` — List Shipments of Return Order (Read-only)

List all shipments of a return order. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-shipments-of-return-order.md

### `returnless-list-statuses-of-shipment` — List Statuses of Shipment (Read-only)

List all statuses of a shipment. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/list-statuses-of-shipment.md

### `returnless-retrieve-return-address` — Retrieve Return Address (Read-only)

Retrieve a return address. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/retrieve-return-address.md

### `returnless-retrieve-return-order` — Retrieve Return Order (Read-only)

Retrieve a return order. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/retrieve-return-order.md

### `returnless-retrieve-return-status` — Retrieve Return Status (Read-only)

Retrieve a return status. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/retrieve-return-status.md

### `returnless-retrieve-sales-order` — Retrieve Sales Order (Read-only)

Retrieve a sales order. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/retrieve-sales-order.md

### `returnless-retrieve-shipment` — Retrieve Shipment (Read-only)

Retrieve a shipment. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/retrieve-shipment.md

### `returnless-update-return-address` — Update Return Address (Write)

Update a return address. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/update-return-address.md

### `returnless-update-return-order-status` — Update Return Order Status (Write)

Update the status of a return order. See the documentation

Full schema: https://pipedream.com/apps/returnless/actions/update-return-order-status.md

## Triggers (4)

### `returnless-new-return-created` — New Return Created (Instant) (Instant)

Emit new event when a return is created. See the documentation

Full schema: https://pipedream.com/apps/returnless/triggers/new-return-created.md

### `returnless-return-notes-added` — Return Notes Added (Instant) (Instant)

Emit new event when a return note is added. See the documentation

Full schema: https://pipedream.com/apps/returnless/triggers/return-notes-added.md

### `returnless-return-product-marked-received` — Return Product Marked Received (Instant) (Instant)

Emit new event when a return product is marked as received. See the documentation

Full schema: https://pipedream.com/apps/returnless/triggers/return-product-marked-received.md

### `returnless-return-status-changed` — Return Status Changed (Instant) (Instant)

Emit new event when a return status is changed. See the documentation

Full schema: https://pipedream.com/apps/returnless/triggers/return-status-changed.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
