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

Integrate PayPal and PEX 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 · card_fund`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action pex write card_fund \
  --inputs '{}'
```

## 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.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 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- SDK: `runAction({ app: "paypal", actionType: "search", action: "search_subscription" })`
- CLI: `npx zapier-sdk run-action paypal search search_subscription`

## PEX

### Identity
PEX is the only spend management platform that combines a cloud-based application with a Visa prepaid card.

- App slug: pex
- Operations published here: 7 (1 event, 5 functions, 1 query)

### Authentication
Zapier connects to PEX 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 pex
```

### Capabilities

#### Events (1)

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

##### Purchase Is Made
Fires when a new purchase is made

- Type: read · Key: `purchase_made`
- Requires: isSettled, isAdminApproved
- SDK: `runAction({ app: "pex", actionType: "read", action: "purchase_made" })`
- CLI: `npx zapier-sdk run-action pex read purchase_made`

#### Functions (5)

Functions change something in PEX.

##### Fund Card
Add funds to a card

- Type: write · Key: `card_fund`
- Requires: chAccountId, amount
- SDK: `runAction({ app: "pex", actionType: "write", action: "card_fund" })`
- CLI: `npx zapier-sdk run-action pex write card_fund`

##### Order Card
Create cardholder account

- Type: write · Key: `card_order`
- Requires: firstName, lastName, phone, dateOfBirth, email, customId, profileAddressLine1, profileAddressCity, profileAddressState, profileAddressZip, shippingAddressLine1, shippingAddressCity, shippingAddressState, shippingAddressZip, shippingAddressContactName, shippingPhone, shippingMethod
- Optional: profileAddressLine2, shippingAddressLine2
- SDK: `runAction({ app: "pex", actionType: "write", action: "card_order" })`
- CLI: `npx zapier-sdk run-action pex write card_order`

##### Zero Card
Remove all funds (zero) a card

- Type: write · Key: `card_zero`
- Requires: chAccountId
- SDK: `runAction({ app: "pex", actionType: "write", action: "card_zero" })`
- CLI: `npx zapier-sdk run-action pex write card_zero`

##### Download Receipts
Downloads receipts for a transaction

- Type: write · Key: `receipt_download`
- Requires: transactionId
- SDK: `runAction({ app: "pex", actionType: "write", action: "receipt_download" })`
- CLI: `npx zapier-sdk run-action pex write receipt_download`

##### Add Tag Option
Adds an option to a dropdown tag

- Type: write · Key: `tag_option_upsert`
- Requires: tagId, optionName, optionValue, optionEnabled
- SDK: `runAction({ app: "pex", actionType: "write", action: "tag_option_upsert" })`
- CLI: `npx zapier-sdk run-action pex write tag_option_upsert`

#### Queries (1)

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

##### Find Cardholder
Find a cardholder by account ID, name, or custom ID

- Type: search · Key: `cardholder_search`
- Requires: nothing
- Optional: pexCardholderAcctId, cardholderName, customId
- SDK: `runAction({ app: "pex", actionType: "search", action: "cardholder_search" })`
- CLI: `npx zapier-sdk run-action pex search cardholder_search`

## Frequently asked questions about automating with PayPal and PEX

### What triggers can be used when integrating PayPal with PEX?

When integrating PayPal with PEX, you can use triggers such as 'Successful Sale,' 'Refunded Sale,' or 'New Invoice.' These triggers will initiate actions in PEX automatically, allowing for seamless workflow automation.

### How does the integration between PayPal and PEX handle errors?

In case of an error during an integration task between PayPal and PEX, we automatically retry the action. If it continues to fail, you'll receive a notification with details on what went wrong so you can address it.

### Can I set up automated fund transfers from PayPal to PEX?

Yes, by creating specific trigger-action flows like moving funds upon a successful sale in PayPal – this action can be configured to transfer those funds into your PEX account automatically.

### Is it possible to create a customized report for my transactions?

Absolutely! You can customize transaction reports by using our integration’s data pull features from both PayPal and PEX, letting you compile comprehensive transaction reports according to your needs.

### What actions are available for the integration of PayPal with PEX?

Actions available include adding funds to a PEX card following a payment receipt in PayPal, marking transactions as reconciled after they’ve been verified, and more, providing a range of options for process management.

### Are there any limits on the number of transactions in the integration between PayPal and PEX?

While we aim to support as many transactions as possible through our platform integrations, both PayPal and PEX might have their own specific transaction limits that could impact high-volume usage scenarios. It's advisable to review these limits accordingly.

### Does this integration require any specific permissions in either application?

The integration will require certain permissions such as access to transaction records and account balances in both applications. Ensuring these permissions are granted will facilitate smooth operation of all integrated features.

### 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
- PEX integrations: zapier.com/apps/pex/integrations.md
- Full page: zapier.com/apps/paypal/integrations/pex
- SDK: npmjs.com/package/@zapier/zapier-sdk