# eBay + SegMetrics Integrations: Connect with Zapier MCP
> zapier.com/apps/ebay/integrations/segmetrics
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate eBay and SegMetrics in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · add_invoice`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "segmetrics", owner: "me" });

const { data } = await zapier.runAction({
  app: "segmetrics",
  actionType: "write",
  action: "add_invoice",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action segmetrics write add_invoice \
  --inputs '{}'
```

## eBay

### Identity
eBay is a premier auction site that allows anyone to buy and sell goods, from individuals to retailers.

- App slug: ebay
- Operations published here: 3 (1 event, 1 function, 1 query)

### Authentication
Zapier connects to eBay via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection ebay
```

### Capabilities

#### Events (1)

Events fire when something happens in eBay. Use them to start a run.

##### New Order
Triggers when a new order is made.

- Type: read · Key: `new_order`
- Requires: nothing
- SDK: `runAction({ app: "ebay", actionType: "read", action: "new_order" })`
- CLI: `npx zapier-sdk run-action ebay read new_order`

#### Functions (1)

Functions change something in eBay.

##### Create a Shipping Fulfillment
Add a shipping fulfillment to a line item.

- Type: write · Key: `shipping_fulfillment`
- Requires: orderId
- Optional: lineItemId, shipped_date, shipping_carrier_code, tracking_number
- SDK: `runAction({ app: "ebay", actionType: "write", action: "shipping_fulfillment" })`
- CLI: `npx zapier-sdk run-action ebay write shipping_fulfillment`

#### Queries (1)

Queries read from eBay and return data. They change nothing.

##### Find an Order
Search for an order.

- Type: search · Key: `order_search`
- Requires: nothing
- Optional: start_date, end_date, fulfillment_status, username
- SDK: `runAction({ app: "ebay", actionType: "search", action: "order_search" })`
- CLI: `npx zapier-sdk run-action ebay search order_search`

## SegMetrics

### Identity
SegMetrics gives you clarity on where your leads come from, how they act, and how much your marketing is really worth.

- App slug: segmetrics
- Operations published here: 7 (7 functions)

### Authentication
Zapier connects to SegMetrics via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection segmetrics
```

### Capabilities

#### Functions (7)

Functions change something in SegMetrics.

##### Add or Update an Order
Add an invoice or purchase for an existing contact.

- Type: write · Key: `add_invoice`
- Requires: id, date_created, amount_dollars, paid, name, product_id, item_amount
- Optional: contact_id, email, is_refunded
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "add_invoice" })`
- CLI: `npx zapier-sdk run-action segmetrics write add_invoice`

##### Track Page View
Adds a Pageview to a contact

- Type: write · Key: `add_page_view`
- Requires: url
- Optional: email, contact_id, referrer
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "add_page_view" })`
- CLI: `npx zapier-sdk run-action segmetrics write add_page_view`

##### Add or Update Subscription
Add or update a subscription for an existing contact.

- Type: write · Key: `add_subscription`
- Requires: id, amount_dollars, product_id, billing_cycle, frequency, start_date, last_bill_date
- Optional: contact_id, email, end_date, canceled_date, trial_end_date
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "add_subscription" })`
- CLI: `npx zapier-sdk run-action segmetrics write add_subscription`

##### Add or Update a Contact
Add or update a contact into SegMetrics.

- Type: write · Key: `add_update_contact`
- Requires: nothing
- Optional: contact_id, email, first_name, last_name, date_created, last_updated, tags, affiliate_id
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "add_update_contact" })`
- CLI: `npx zapier-sdk run-action segmetrics write add_update_contact`

##### Record Ad Performance
Record performance (clicks, spend, impressions) for a single ad on a single day

- Type: write · Key: `ad_adperformance`
- Requires: date, spend_dollars, ad_id, ad_name, adcampaign_id, adcampaign_name
- Optional: impressions, clicks, adset_id, adset_name
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "ad_adperformance" })`
- CLI: `npx zapier-sdk run-action segmetrics write ad_adperformance`

##### Add Tag to Contact
Add a tag (or tags) to a given contact.

- Type: write · Key: `attach_tag`
- Requires: tags
- Optional: contact_id, email
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "attach_tag" })`
- CLI: `npx zapier-sdk run-action segmetrics write attach_tag`

##### Remove Tag From Contact
Remove a tag from an existing contact

- Type: write · Key: `detach_tag`
- Requires: tags
- Optional: contact_id, email
- SDK: `runAction({ app: "segmetrics", actionType: "write", action: "detach_tag" })`
- CLI: `npx zapier-sdk run-action segmetrics write detach_tag`

## Frequently asked questions about automating with eBay and SegMetrics

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- eBay integrations: zapier.com/apps/ebay/integrations.md
- SegMetrics integrations: zapier.com/apps/segmetrics/integrations.md
- Full page: zapier.com/apps/ebay/integrations/segmetrics
- SDK: npmjs.com/package/@zapier/zapier-sdk