> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentcard.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# buy_link_merchant

> Link a merchant account so the agent can shop + check out there.

Connect to `https://mcp.agentcard.sh/mcp` with the **user's connection token** (or a `buy_token` for org-owned accounts).

<Note>Not in the default `tools/list`. It is still callable by exact name, and appears when the client sends the `x-expert-tools: 1` header.</Note>

## What it does

Link a merchant account so the agent can shop + check out there. Cooperative merchants (Rappi) reply that a one-time code was sent — then call buy\_confirm\_merchant with it. Learned merchants (Good Eggs, DoorDash) link in one step. DoorDash needs the user's captured browser session.

## Inputs

| Field                     | Type   | Description                                   |
| ------------------------- | ------ | --------------------------------------------- |
| `merchant` *(required)*   | string | merchant slug (rappi \| goodeggs \| doordash) |
| `email` *(required)*      | string |                                               |
| `first_name` *(required)* | string |                                               |
| `last_name` *(required)*  | string |                                               |
| `phone` *(required)*      | string |                                               |
| `captured_session`        | object | DoorDash only: cookies captured client-side   |

## Returns

None.

## Example call

```json theme={null}
{
  "tool": "buy_link_merchant",
  "arguments": {
    "merchant": "\u2026",
    "email": "\u2026",
    "first_name": "\u2026",
    "last_name": "\u2026",
    "phone": "\u2026"
  }
}
```
