---
agent:
  instructions: "Use this search API to find a ready-to-deploy Next Gen Zap for what the user wants to automate, with keywords or a natural-language description, instead of reading every zap. Results are returned in Markdown, each with the zap's SKILL.md install guide."
  endpoint: "https://zapier.sh/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://zapier.sh/developers/"
---

# PayPal + Detrack Integrations: Connect with Zapier MCP
> zapier.com/apps/paypal/integrations/detrack
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate PayPal and Detrack 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).

## 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** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `paypal` and `detrack`, then `enable_zapier_action`. If PayPal or Detrack isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **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**: once Create Job is enabled, call `detrack_create_job`. Each operation below lists its MCP tool name.
- **SDK**:

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

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

const { data } = await zapier.runAction({
  app: "detrack",
  actionType: "write",
  action: "jobCreate",
  connection: connection.id,
  inputs: {
    type: "",
    do_number: "",
    date: "",
    address: "",
    show_all_data_fields: "",
    quantity: "",
    description: "",
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action detrack write jobCreate \
  --inputs '{"type":"","do_number":"","date":"","address":"","show_all_data_fields":"","quantity":"","description":""}'
```

## PayPal

### Identity
PayPal is a fast, safe way to send money, make an online payment, receive money or set up a merchant account. With over 150 million active registered accounts, PayPal helps people and businesses receive and make payments in more than 100 currencies in 203 markets.

- App slug: paypal
- Operations published here: 20 (9 events, 3 functions, 8 queries)

### Authentication
Zapier connects to PayPal 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 paypal
```

### Capabilities

#### Events (9)

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

##### Billing Plan Webhooks
Triggers when a billing plan event occurs.

- Type: read · Key: `billing_plan_webhooks`
- Requires: nothing
- Optional: docs_copy, events
- MCP tool: `paypal_billing_plan_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "billing_plan_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read billing_plan_webhooks`

##### Billing Subscription Webhooks
Triggers when a billing subscription event occurs.

- Type: read · Key: `billing_subscription_webhooks`
- Requires: nothing
- Optional: docs_copy, events
- MCP tool: `paypal_billing_subscription_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "billing_subscription_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read billing_subscription_webhooks`

##### Canceled Recurring Payment Webhooks
Triggers when a recurring payment subscription is canceled.

- Type: read · Key: `canceled_recurring_payment_webhooks`
- Requires: nothing
- Optional: docs_copy, events
- MCP tool: `paypal_canceled_recurring_payment_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "canceled_recurring_payment_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read canceled_recurring_payment_webhooks`

##### Failed Payment Webhooks
Triggers when a payment fails, is denied, or is declined.

- Type: read · Key: `failed_payment_webhooks`
- Requires: nothing
- Optional: docs_copy
- MCP tool: `paypal_failed_payment_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "failed_payment_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read failed_payment_webhooks`

##### New Invoice
Triggers when a new invoice is created.

- Type: read · Key: `invoice`
- Requires: nothing
- Optional: docs_copy
- MCP tool: `paypal_new_invoice` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "invoice" })`
- CLI: `npx zapier-sdk run-action paypal read invoice`

##### Payment Capture Webhooks
Triggers when a payment capture event occurs.

- Type: read · Key: `payment_capture_webhooks`
- Requires: nothing
- Optional: docs_copy, events
- MCP tool: `paypal_payment_capture_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "payment_capture_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read payment_capture_webhooks`

##### Payment Refund Webhooks
Triggers when a payment refund event occurs.

- Type: read · Key: `payment_refund_webhooks`
- Requires: nothing
- Optional: docs_copy, events
- MCP tool: `paypal_payment_refund_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "payment_refund_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read payment_refund_webhooks`

##### Payment Sale Webhooks
Triggers when a payment sale event occurs.

- Type: read · Key: `payment_sale_webhooks`
- Requires: nothing
- Optional: docs_copy, events
- MCP tool: `paypal_payment_sale_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "payment_sale_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read payment_sale_webhooks`

##### Recurring Payment Webhooks
Triggers when a recurring subscription payment is completed.

- Type: read · Key: `recurring_payment_webhooks`
- Requires: nothing
- Optional: docs_copy
- MCP tool: `paypal_recurring_payment_webhooks` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "read", action: "recurring_payment_webhooks" })`
- CLI: `npx zapier-sdk run-action paypal read recurring_payment_webhooks`

#### Functions (3)

Functions change something in PayPal.

##### Create Invoice
Create a new draft invoice in PayPal.

- Type: write · Key: `create_invoice`
- Requires: item_name, item_quantity, item_unit_amount
- Optional: invoice_number, reference, currency_code, invoice_date, due_date, payment_term_type, note, terms_and_conditions, memo, invoicer_business_name, invoicer_given_name, invoicer_surname, invoicer_email, invoicer_phone_country_code, invoicer_phone_number, invoicer_phone_type, invoicer_website, invoicer_tax_id, invoicer_logo_url, invoicer_additional_notes, invoicer_address_line_1, invoicer_address_line_2, invoicer_address_line_3, invoicer_city, invoicer_state, invoicer_postal_code, invoicer_country_code, recipient_business_name, recipient_given_name, recipient_surname, recipient_email, recipient_phone_country_code, recipient_phone_number, recipient_phone_type, recipient_additional_info, recipient_language, recipient_address_line_1, recipient_address_line_2, recipient_address_line_3, recipient_city, recipient_state, recipient_postal_code, recipient_country_code, shipping_business_name, shipping_given_name, shipping_surname, shipping_address_line_1, shipping_address_line_2, shipping_address_line_3, shipping_city, shipping_state, shipping_postal_code, shipping_country_code, item_description, item_unit_of_measure, item_date, item_tax_name, item_tax_percent, item_tax_note, item_discount_type, item_discount_value, invoice_discount_type, invoice_discount_value, shipping_amount, shipping_tax_name, shipping_tax_percent, custom_label, custom_amount, allow_partial_payment, minimum_amount_due, allow_tip, tax_calculated_after_discount, tax_inclusive, template_id, additional_recipients
- MCP tool: `paypal_create_invoice` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "write", action: "create_invoice" })`
- CLI: `npx zapier-sdk run-action paypal write create_invoice`

##### Create Payment
Create a new payment order using PayPal Orders v2 API.

- Type: write · Key: `create_payment`
- Requires: amount
- Optional: currency_code, intent, description, reference_id, custom_id, invoice_id, payer_email, payer_given_name, payer_surname, item_name, item_quantity, item_sku, item_category, shipping_type, shipping_full_name, shipping_email, shipping_address_line_1, shipping_address_line_2, shipping_admin_area_1, shipping_admin_area_2, shipping_postal_code, shipping_country_code, return_url, cancel_url, brand_name, shipping_preference, user_action, soft_descriptor
- MCP tool: `paypal_create_payment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "write", action: "create_payment" })`
- CLI: `npx zapier-sdk run-action paypal write create_payment`

##### Send Invoice
Send an existing invoice to the recipient.

- Type: write · Key: `send_invoice`
- Requires: invoice_id
- Optional: send_to_recipient, send_to_invoicer, subject, note, additional_recipients
- MCP tool: `paypal_send_invoice` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "write", action: "send_invoice" })`
- CLI: `npx zapier-sdk run-action paypal write send_invoice`

#### Queries (8)

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

##### Search Authorized Payment
Search for an authorized payment by ID.

- Type: search · Key: `search_authorized_payment`
- Requires: authorization_id
- MCP tool: `paypal_search_authorized_payment` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_authorized_payment" })`
- CLI: `npx zapier-sdk run-action paypal search search_authorized_payment`

##### Search Captured Payment
Search for a captured payment by ID.

- Type: search · Key: `search_captured_payment`
- Requires: capture_id
- MCP tool: `paypal_search_captured_payment` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_captured_payment" })`
- CLI: `npx zapier-sdk run-action paypal search search_captured_payment`

##### Search Invoice
Search for an invoice by ID.

- Type: search · Key: `search_invoice`
- Requires: invoice_id
- MCP tool: `paypal_search_invoice` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_invoice" })`
- CLI: `npx zapier-sdk run-action paypal search search_invoice`

##### Search Order
Search for an order by ID.

- Type: search · Key: `search_order`
- Requires: order_id
- MCP tool: `paypal_search_order` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_order" })`
- CLI: `npx zapier-sdk run-action paypal search search_order`

##### Search Plan
Search for a plan by ID.

- Type: search · Key: `search_plan`
- Requires: plan_id
- MCP tool: `paypal_search_plan` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_plan" })`
- CLI: `npx zapier-sdk run-action paypal search search_plan`

##### Search Product
Search for a product by ID.

- Type: search · Key: `search_product`
- Requires: product_id
- MCP tool: `paypal_search_product` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_product" })`
- CLI: `npx zapier-sdk run-action paypal search search_product`

##### Search Refund
Search for a refund by ID.

- Type: search · Key: `search_refund`
- Requires: refund_id
- MCP tool: `paypal_search_refund` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_refund" })`
- CLI: `npx zapier-sdk run-action paypal search search_refund`

##### Search Billing Subscription
Search for a billing subscription by ID.

- Type: search · Key: `search_subscription`
- Requires: subscription_id
- MCP tool: `paypal_search_billing_subscription` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_subscription" })`
- CLI: `npx zapier-sdk run-action paypal search search_subscription`

## Detrack

### Identity
Detrack is a live delivery tracking system that offers a robust Proof of Delivery system to last-mile couriers and logistics.

- App slug: detrack
- Operations published here: 1 (1 function)

### Authentication
Zapier connects to Detrack 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 detrack
```

### Capabilities

#### Functions (1)

Functions change something in Detrack.

##### Create Job
Creates a Job in the Detrack Dashboard

- Type: write · Key: `jobCreate`
- Requires: type, do_number, date, address, show_all_data_fields, quantity, description
- Optional: sku, comments, serial_numbers
- MCP tool: `detrack_create_job` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "detrack", actionType: "write", action: "jobCreate" })`
- CLI: `npx zapier-sdk run-action detrack write jobCreate`

## Frequently asked questions about automating with PayPal and Detrack

### 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
- PayPal integrations: zapier.com/apps/paypal/integrations.md
- Detrack integrations: zapier.com/apps/detrack/integrations.md
- Full page: zapier.com/apps/paypal/integrations/detrack
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk