# Send A Physical Gift With Address Confirmation — Sendoso

> Send a physical gift. See the docs here

- Key: `sendoso-send-physical-gift-with-address-confirmation`
- Type: Action (Write)
- Version: 0.1.1
- App: Sendoso (`sendoso`) — https://pipedream.com/apps/sendoso.md
- This page (HTML): https://pipedream.com/apps/sendoso/actions/send-physical-gift-with-address-confirmation
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/sendoso/actions/send-physical-gift-with-address-confirmation/send-physical-gift-with-address-confirmation.mjs

## Description

Send a physical gift. [See the docs here](https://developer.sendoso.com/rest-api/reference/sends/physical/physicalAC)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `touchId` | `integer` | Yes | The ID of the touch to be sent on this gift Options are loaded from the connected account. |
| `name` | `string` | Yes | The name of the person receiving the gift |
| `email` | `string` | Yes | The email address of the recipient |
| `viaFrom` | `string` | Yes | Specify the name of your Company or Application |
| `customMessage` | `string` | No | A freeform text message to be sent along with the gift |
| `addressConfirmationVia` | `string` | No | How the recipient will be asked to confirm their address. Options are email, which sends recipient an email, or link which provides a link in the response and sends a link to the sender's email address. |
| `resumeWithUnconfirmedAddress` | `boolean` | Yes | Whether or not the gift should be sent if the user does NOT confirm their address |
| `noAddress` | `boolean` | Yes | Indicates whether the recipients address is provided or not. When true, will request an address from the recipient either via link or email. Note, if selected email is a required field. |
| `expireAfterDays` | `integer` | Yes | Sets the number of days the AC form will be valid. Valid values are 2 - 7 inclusive. |
| `hideProductInfo` | `boolean` | Yes | Determines whether or not the gift name & image will appear on the address collection page |

## Run it

**MCP**

```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": "sendoso",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "sendoso-send-physical-gift-with-address-confirmation",
  arguments: {
    touchId: 10,
    name: "Name",
  },
})
```

**TypeScript**

```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: "sendoso-send-physical-gift-with-address-confirmation",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    sendoso: { authProvisionId: "apn_xxxxxxx" },
    touchId: 10,
    name: "Name",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "sendoso-send-physical-gift-with-address-confirmation",
    "configured_props": {
      "sendoso": { "authProvisionId": "apn_xxxxxxx" },
      "touchId": 10,
      "name": "Name"
    }
  }'
```

---

- App: https://pipedream.com/apps/sendoso.md · All apps: https://pipedream.com/apps
