View as Markdown
Returnless icon

Returnless ACTION

Update Return Address

Update a return address. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Returnless account once, then configure and run Update Return Address from your backend or agent.

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-update-return-address",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    returnless: { authProvisionId: "apn_xxxxxxx" },
    returnAddressId: "Return Address ID",
    name: "Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Return Address inputs
Property Type Description
returnAddressId Return Address ID string
The ID of the return address
Required Dynamic
name Name string
The name of the return address
Optional
companyName Company Name string
The company name of the return address
Optional
street Street string
The street of the return address
Optional
houseNumber House Number string
The house number of the return address
Optional
postalCode Postal Code string
The postal code of the return address
Optional
city City string
The city of the return address
Optional
latitude Latitude string
The latitude of the return address
Optional
longitude Longitude string
The longitude of the return address
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
returnless-update-return-address
Version
0.0.2
App
Returnless
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes