# Mercury Connect + PartnerPortal.io Integrations: Connect with Zapier MCP
> zapier.com/apps/mercury-connect/integrations/partnerportalio
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Mercury Connect and PartnerPortal.io 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 · LeadAddComment`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action partnerportalio write LeadAddComment \
  --inputs '{}'
```

## Mercury Connect

### Identity
Mercury Connect is a CRM platform that lets you track people & opportunities, loan calculations, compare products, and manage compliance.

- App slug: mercury-connect
- Operations published here: 16 (7 events, 5 functions, 2 queries, 2 search-or-write actions)

### Authentication
Zapier connects to Mercury Connect 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 mercury-connect
```

### Capabilities

#### Events (7)

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

##### Deleted Opportunity
Triggers when an opportunity is deleted.

- Type: read · Key: `deleted_opportunity_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "deleted_opportunity_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read deleted_opportunity_trigger`

##### Deleted Person
Triggers when a person is deleted.

- Type: read · Key: `deleted_person_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "deleted_person_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read deleted_person_trigger`

##### New Opportunity
Triggers when an opportunity is created.

- Type: read · Key: `new_opportunity_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "new_opportunity_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read new_opportunity_trigger`

##### New Person
Triggers when a person is created.

- Type: read · Key: `new_person_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "new_person_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read new_person_trigger`

##### Opportunity Status Updated
Triggers when the opportunity status is updated.

- Type: read · Key: `opp_status_changed_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "opp_status_changed_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read opp_status_changed_trigger`

##### Updated Opportunity
Triggers when an opportunity is updated.

- Type: read · Key: `updated_opportunity_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "updated_opportunity_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read updated_opportunity_trigger`

##### Updated Person
Triggers when a person is updated.

- Type: read · Key: `updated_person_trigger`
- Requires: subscription_type
- SDK: `runAction({ app: "mercury-connect", actionType: "read", action: "updated_person_trigger" })`
- CLI: `npx zapier-sdk run-action mercury-connect read updated_person_trigger`

#### Functions (5)

Functions change something in Mercury Connect.

##### Create Person
Creates a new person.

- Type: write · Key: `Contact_create_v1`
- Requires: email, firstName
- Optional: company, title, lastName, middleName, salutation, gender, dateOfBirth, maritalStatus, homePhone, mobile, businessPhone, isCorrespondenceAddress, type, format, floorNumber, unitNumber, buildingName, streetNumber, streetName, streetType, city, state, postcode, country, fromDate, toDate, housingSituation, isPermanentResident, residencyStatus, countryOfResidency, employer, occupation, jobTitle, employmentStatus, employmentCommenced, annualSalary, driversLicenceNumber, driversLicenceExpiry, driversLicenceState, categories, doNotMail, markAsPrivate, emailBounced, relationshipManager, incomeType, incomeAmount, incomeFrequency, incomeCommenced, incomeComments, expenseType, expenseAmount, expenseFrequency, expenseBalance, expenseCreditLimit, expenseComments, notes
- SDK: `runAction({ app: "mercury-connect", actionType: "write", action: "Contact_create_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect write Contact_create_v1`

##### Update a Person
Updates an existing person.

- Type: write · Key: `Contact_update_v1`
- Requires: contactId
- Optional: title, email, firstName, lastName, middleName, salutation, gender, dateOfBirth, maritalStatus, homePhone, mobile, businessPhone, isCorrespondenceAddress, type, format, floorNumber, unitNumber, buildingName, streetNumber, streetName, streetType, city, state, postcode, country, fromDate, toDate, housingSituation, isPermanentResident, residencyStatus, countryOfResidency, employer, occupation, jobTitle, employmentStatus, employmentCommenced, annualSalary, driversLicenceNumber, driversLicenceExpiry, driversLicenceState, categories, doNotMail, markAsPrivate, emailBounced, syncToDMH, relationshipManager, incomeType, incomeAmount, incomeFrequency, incomeCommenced, incomeComments, expenseType, expenseAmount, expenseFrequency, expenseBalance, expenseCreditLimit, expenseComments, notes
- SDK: `runAction({ app: "mercury-connect", actionType: "write", action: "Contact_update_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect write Contact_update_v1`

##### Create Opportunity
Creates a new opportunity.

- Type: write · Key: `Opportunity_create_v1`
- Requires: opportunityName
- Optional: company, agent, personActing, personResponsible, status, leadSource, partnerReference, transactionType, lender, amount, existingAmount, securityValue, lmi, peBrokerage, docFee, originationFee, sitRep, tranxType, lenderReference, nextGenId, financeDate, depositDueDate, confirmedSettlementDate, settlementDateConfirmed, interestOnlyExpiry, fixedRateExpiry, notePadText, metaData, primaryApplicantId, secondApplicantId, secondApplicantRelationship, thirdApplicantId, thirdApplicantRelationship, type, security, value, liabilityType, balance, limit
- SDK: `runAction({ app: "mercury-connect", actionType: "write", action: "Opportunity_create_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect write Opportunity_create_v1`

##### Attach a Person to an Opportunity
Attaches an existing person to an opportunity.

- Type: write · Key: `Opportunity_related_party_create_v1`
- Requires: personID, relationship, opportunityId
- SDK: `runAction({ app: "mercury-connect", actionType: "write", action: "Opportunity_related_party_create_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect write Opportunity_related_party_create_v1`

##### Update an Opportunity
Updates an existing opportunity.

- Type: write · Key: `Opportunity_update_v1`
- Requires: opportunityId
- Optional: opportunityName, agent, personActing, personResponsible, status, leadSource, partnerReference, transactionType, lender, amount, existingAmount, securityValue, lmi, peBrokerage, originationFee, docFee, sitRep, tranxType, lenderReference, nextGenId, financeDate, depositDueDate, confirmedSettlementDate, settlementDateConfirmed, interestOnlyExpiry, fixedRateExpiry, notePadText, metaData, primaryApplicantId, secondApplicantId, secondApplicantRelationship, thirdApplicantId, thirdApplicantRelationship, type, security, value, liabilityType, balance, limit
- SDK: `runAction({ app: "mercury-connect", actionType: "write", action: "Opportunity_update_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect write Opportunity_update_v1`

#### Queries (2)

Queries read from Mercury Connect and return data. They change nothing.

##### Find a Person
Search for a person based on various criteria.

- Type: search · Key: `Contact_search_v1`
- Requires: nothing
- Optional: search_name, search_email
- SDK: `runAction({ app: "mercury-connect", actionType: "search", action: "Contact_search_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect search Contact_search_v1`

##### Find an Opportunity
Search for an opportunity based on various criteria.

- Type: search · Key: `Opportunity_search_v1`
- Requires: search_name
- SDK: `runAction({ app: "mercury-connect", actionType: "search", action: "Opportunity_search_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect search Opportunity_search_v1`

#### Search or Write Actions (2)

These operations search for a match first, and create one only if nothing is found.

##### Find or create person
Find or create person

- Type: search_or_write · Key: `Contact_search_v1`
- Requires: email, firstName
- Optional: search_name, search_email, company, title, lastName, middleName, salutation, gender, dateOfBirth, maritalStatus, homePhone, mobile, businessPhone, isCorrespondenceAddress, type, format, floorNumber, unitNumber, buildingName, streetNumber, streetName, streetType, city, state, postcode, country, fromDate, toDate, housingSituation, isPermanentResident, residencyStatus, countryOfResidency, employer, occupation, jobTitle, employmentStatus, employmentCommenced, annualSalary, driversLicenceNumber, driversLicenceExpiry, driversLicenceState, categories, doNotMail, markAsPrivate, emailBounced, relationshipManager, incomeType, incomeAmount, incomeFrequency, incomeCommenced, incomeComments, expenseType, expenseAmount, expenseFrequency, expenseBalance, expenseCreditLimit, expenseComments, notes
- SDK: `runAction({ app: "mercury-connect", actionType: "search_or_write", action: "Contact_search_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect search_or_write Contact_search_v1`

##### Find or create opportunity
Find or create opportunity

- Type: search_or_write · Key: `Opportunity_search_v1`
- Requires: search_name, opportunityName
- Optional: company, agent, personActing, personResponsible, status, leadSource, partnerReference, transactionType, lender, amount, existingAmount, securityValue, lmi, peBrokerage, docFee, originationFee, sitRep, tranxType, lenderReference, nextGenId, financeDate, depositDueDate, confirmedSettlementDate, settlementDateConfirmed, interestOnlyExpiry, fixedRateExpiry, notePadText, metaData, primaryApplicantId, secondApplicantId, secondApplicantRelationship, thirdApplicantId, thirdApplicantRelationship, type, security, value, liabilityType, balance, limit
- SDK: `runAction({ app: "mercury-connect", actionType: "search_or_write", action: "Opportunity_search_v1" })`
- CLI: `npx zapier-sdk run-action mercury-connect search_or_write Opportunity_search_v1`

## PartnerPortal.io

### Identity
PartnerPortal.io is a self-serve PRM platform designed to help you launch and grow a custom partner program. Formalize and scale partnerships with ease.

- App slug: partnerportalio
- Operations published here: 15 (4 events, 6 functions, 4 queries, 1 search-or-write action)

### Authentication
Zapier connects to PartnerPortal.io 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 partnerportalio
```

### Capabilities

#### Events (4)

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

##### Lead Created
Triggers when a lead is created.

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

##### Lead Updated
Triggers when a lead is updated.

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

##### Partner Created
Triggers when a partner is created (invited or registered).

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

##### Partner Updated
Triggers on any change to a partner, including when a partner is approved (status becomes active). It fires on every edit — not only the moment of approval — so add a Filter step on the status field to narrow to active partners. Best paired with an idempotent action (e.g. upserting a CRM record).

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

#### Functions (6)

Functions change something in PartnerPortal.io.

##### Add Comment to Lead
Add a comment to a Lead in PartnerPortal.io. The partner and their agent are notified by email, just like a comment left in the portal.

- Type: write · Key: `LeadAddComment`
- Requires: leadId, message
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "LeadAddComment" })`
- CLI: `npx zapier-sdk run-action partnerportalio write LeadAddComment`

##### Create Lead
Create a Lead in PartnerPortal.io

- Type: write · Key: `LeadCreate`
- Requires: nothing
- Optional: __fake
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "LeadCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write LeadCreate`

##### Update Lead
Update an existing Lead in PartnerPortal.io, including its portal phase.

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

##### Create Partner
Create a partner (organization + owner) in PartnerPortal.io. Behaves exactly like inviting a partner from the portal: the partner is activated and the owner is emailed a set-password invite.

- Type: write · Key: `PartnerCreate`
- Requires: companyName, domain, firstName, lastName, email
- Optional: phone, paypalEmail
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "PartnerCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write PartnerCreate`

##### Add Partner User
Add a user to an existing partner in PartnerPortal.io. Behaves exactly like adding a user from the partner's page in the portal: the user is activated and emailed a set-password invite.

- Type: write · Key: `PartnerUserCreate`
- Requires: partnerOrganizationId, firstName, lastName, email
- Optional: phone
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "PartnerUserCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write PartnerUserCreate`

##### Mark Lesson Complete
Mark an External lesson complete for a partner user in PartnerPortal.io, for example when they finish the matching course in your training tool. Only lessons of type External accept this. Course completion and any certification follow automatically.

- Type: write · Key: `ResourceCompletionCreate`
- Requires: lessonId, email
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "ResourceCompletionCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write ResourceCompletionCreate`

#### Queries (4)

Queries read from PartnerPortal.io and return data. They change nothing.

##### Find Course
Find a course in PartnerPortal.io by name. Returns the course with its lessons in order, plus First External Lesson ID: map that into Mark Lesson Complete. For a course with several external lessons, copy each lesson's ID from the lessons list instead.

- Type: search · Key: `CourseFind`
- Requires: name
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "CourseFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search CourseFind`

##### Find Lead
Find an existing Lead in PartnerPortal.io by email and/or a custom field value. Returns a single lead so you can update it or add a comment.

- Type: search · Key: `LeadFind`
- Requires: nothing
- Optional: email
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "LeadFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search LeadFind`

##### Find Partner
Find an existing partner in PartnerPortal.io by domain and/or owner email. Returns a single partner — pair it with Create Partner (via a "only continue if" filter or a search-or-create step) to avoid creating duplicates.

- Type: search · Key: `PartnerFind`
- Requires: nothing
- Optional: domain, email
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "PartnerFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search PartnerFind`

##### Find Partner User
Find an active person at a partner in PartnerPortal.io by Partner ID. Returns one person: the partner's longest-standing active owner, or its longest-standing active user if no owner is active. Pair it with a partner trigger to sync that person to your CRM. Use the User Type or Email filters to pick a different person.

- Type: search · Key: `PartnerUserFind`
- Requires: partnerOrganizationId
- Optional: type, email, includeInactive
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "PartnerUserFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search PartnerUserFind`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create Partner
Find a partner, or create one if it does not already exist.

- Type: search_or_write · Key: `PartnerFind`
- Requires: domain, email, companyName, firstName, lastName
- Optional: phone, paypalEmail
- SDK: `runAction({ app: "partnerportalio", actionType: "search_or_write", action: "PartnerFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search_or_write PartnerFind`

## Frequently asked questions about automating with Mercury Connect and PartnerPortal.io

### 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
- Mercury Connect integrations: zapier.com/apps/mercury-connect/integrations.md
- PartnerPortal.io integrations: zapier.com/apps/partnerportalio/integrations.md
- Full page: zapier.com/apps/mercury-connect/integrations/partnerportalio
- SDK: npmjs.com/package/@zapier/zapier-sdk