# Qoyod + PostgreSQL Integrations: Connect with Zapier MCP
> zapier.com/apps/qoyod/integrations/postgresql
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Qoyod and PostgreSQL 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 · row`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action postgresql write row \
  --inputs '{}'
```

## Qoyod

### Identity
Qoyod is a platform that helps businesses manage accounting, invoicing, inventory, projects, and POS with real-time insights and automation.

- App slug: qoyod
- Operations published here: 35 (14 events, 15 functions, 3 queries, 3 search-or-write actions)

### Authentication
Zapier connects to Qoyod 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 qoyod
```

### Capabilities

#### Events (14)

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

##### New Bill
Triggers when a bill is created

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

##### New Credit Note
Triggered when a new credit note is created

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

##### New Customer
Triggers when a new customer is created

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

##### New Debit Note
Trigger when a new debit note is created

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

##### New Invoice
triggers when a new invoice is created

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

##### New Manual Journal Entry
Triggers when a Manual Journal Entry is created

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

##### New Product
New Product is created

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

##### New Project
Triggers when a new project is created

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

##### New Purchase Order
Triggers when a new Purchase Order is created

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

##### New Quotation
Triggers when a new quotation is created

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

##### New Receipt
Triggers when a receipt is created

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

##### New Stock Change
Lists all recently changed products

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

##### New Task
Triggers when a new task is created

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

##### New Vendor
Triggers when a new vendor is created

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

#### Functions (15)

Functions change something in Qoyod.

##### Create Bill
Creates a purchase bill

- Type: write · Key: `create_bill`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id, is_inclusive
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_bill" })`
- CLI: `npx zapier-sdk run-action qoyod write create_bill`

##### Create Bill With a Receipt
Creates a paid of partially paid bill

- Type: write · Key: `create_bill_with_receipt`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id, is_inclusive, receipt_reference, amount, date, account_id
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_bill_with_receipt" })`
- CLI: `npx zapier-sdk run-action qoyod write create_bill_with_receipt`

##### Create Credit Note
creates a credit note

- Type: write · Key: `create_credit_note`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id, is_inclusive
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_credit_note" })`
- CLI: `npx zapier-sdk run-action qoyod write create_credit_note`

##### Create Customer
This action creates a customer

- Type: write · Key: `create_customer`
- Requires: name
- Optional: organization, website, primary_contact_number, primary_email, tax_number, secondary_contact_number, secondary_email, shipping_address, shipping_city, shipping_state, shipping_zip, shipping_country, billing_address, billing_city, billing_state, billing_zip, billing_country
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_customer" })`
- CLI: `npx zapier-sdk run-action qoyod write create_customer`

##### Create Debit Note
Creates a debit note

- Type: write · Key: `create_debit_note`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id, is_inclusive
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_debit_note" })`
- CLI: `npx zapier-sdk run-action qoyod write create_debit_note`

##### Create Invoice
Creates an Invoice

- Type: write · Key: `create_invoice`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id, is_inclusive
- Optional: description, payment_method, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_invoice" })`
- CLI: `npx zapier-sdk run-action qoyod write create_invoice`

##### Create Invoice With a Receipt
Creates a paid of partially paid invoice

- Type: write · Key: `create_invoice_with_receipt`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id, is_inclusive, receipt_reference, amount, date, account_id
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_invoice_with_receipt" })`
- CLI: `npx zapier-sdk run-action qoyod write create_invoice_with_receipt`

##### Create Manual Journal Entry
Create a Manual Journal Entry

- Type: write · Key: `create_mje`
- Requires: description, date, debit, credit, account_id
- Optional: comment
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_mje" })`
- CLI: `npx zapier-sdk run-action qoyod write create_mje`

##### Create Purchase Order
Creates a purchase order

- Type: write · Key: `create_order`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_order" })`
- CLI: `npx zapier-sdk run-action qoyod write create_order`

##### Create Product
Creates a product

- Type: write · Key: `create_product`
- Requires: sku, ar_name, en_name, tax_id, is_tracked, purchase_item, sale_item
- Optional: category_id, unit_type_id, description, barcode, buying_price, purchase_account_id, is_buying_price_inclusive, selling_price, sales_account_id, is_sellling_price_inclusive
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_product" })`
- CLI: `npx zapier-sdk run-action qoyod write create_product`

##### Create Project
Action that creates a project

- Type: write · Key: `create_project`
- Requires: reference, name, private
- Optional: description, due_on, status, user_manageables_attributes
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_project" })`
- CLI: `npx zapier-sdk run-action qoyod write create_project`

##### Create Quotation
Creates a Quotation

- Type: write · Key: `create_quote`
- Requires: issue_date, due_date, contact_id, reference, unit_price, quantity, inventory_id
- Optional: description, product_id, product_sku, discount_type, discount_percent, tax_percentage
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_quote" })`
- CLI: `npx zapier-sdk run-action qoyod write create_quote`

##### Create Receipt
This action creates a receipt

- Type: write · Key: `create_receipt`
- Requires: reference, amount, date, kind, account_id
- Optional: contact_id
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_receipt" })`
- CLI: `npx zapier-sdk run-action qoyod write create_receipt`

##### Create Task
An action that Creates a Task

- Type: write · Key: `create_task`
- Requires: reference, name, status, private
- Optional: description, due_on, priority, user_manageables_attributes, list_id
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_task" })`
- CLI: `npx zapier-sdk run-action qoyod write create_task`

##### Create Vendor
This action creates a vendor

- Type: write · Key: `create_vendor`
- Requires: name
- Optional: organization, website, primary_contact_number, primary_email, tax_number, secondary_contact_number, secondary_email, shipping_address, shipping_city, shipping_state, shipping_zip, shipping_country, billing_address, billing_city, billing_state, billing_zip, billing_country
- SDK: `runAction({ app: "qoyod", actionType: "write", action: "create_vendor" })`
- CLI: `npx zapier-sdk run-action qoyod write create_vendor`

#### Queries (3)

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

##### Find Customer
Find a customer to include in an Invoice or Quotation

- Type: search · Key: `find_customer`
- Requires: nothing
- Optional: name, primary_contact_number, primary_email
- SDK: `runAction({ app: "qoyod", actionType: "search", action: "find_customer" })`
- CLI: `npx zapier-sdk run-action qoyod search find_customer`

##### Find Product by ID or SKU
Finds a product by searching for product ID or product SKU

- Type: search · Key: `find_product`
- Requires: nothing
- Optional: id, sku
- SDK: `runAction({ app: "qoyod", actionType: "search", action: "find_product" })`
- CLI: `npx zapier-sdk run-action qoyod search find_product`

##### Find Vendor
Find a vendor to include in a Bill or Purchase Order

- Type: search · Key: `find_vendor`
- Requires: name
- Optional: primary_contact_number, primary_email
- SDK: `runAction({ app: "qoyod", actionType: "search", action: "find_vendor" })`
- CLI: `npx zapier-sdk run-action qoyod search find_vendor`

#### Search or Write Actions (3)

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

##### Find or Create a Customer
Find a customer to include in an Invoice or Quotation

- Type: search_or_write · Key: `find_customer`
- Requires: name
- Optional: primary_contact_number, primary_email, organization, website, tax_number, secondary_contact_number, secondary_email, shipping_address, shipping_city, shipping_state, shipping_zip, shipping_country, billing_address, billing_city, billing_state, billing_zip, billing_country
- SDK: `runAction({ app: "qoyod", actionType: "search_or_write", action: "find_customer" })`
- CLI: `npx zapier-sdk run-action qoyod search_or_write find_customer`

##### Find or Create Product
Finds a product by searching for product ID or product SKU

- Type: search_or_write · Key: `find_product`
- Requires: sku, ar_name, en_name, tax_id, is_tracked, purchase_item, sale_item
- Optional: id, category_id, unit_type_id, description, barcode, buying_price, purchase_account_id, is_buying_price_inclusive, selling_price, sales_account_id, is_sellling_price_inclusive
- SDK: `runAction({ app: "qoyod", actionType: "search_or_write", action: "find_product" })`
- CLI: `npx zapier-sdk run-action qoyod search_or_write find_product`

##### Find or Create a Vendor
Find a vendor to include in a Bill or Purchase Order

- Type: search_or_write · Key: `find_vendor`
- Requires: name
- Optional: primary_contact_number, primary_email, organization, website, tax_number, secondary_contact_number, secondary_email, shipping_address, shipping_city, shipping_state, shipping_zip, shipping_country, billing_address, billing_city, billing_state, billing_zip, billing_country
- SDK: `runAction({ app: "qoyod", actionType: "search_or_write", action: "find_vendor" })`
- CLI: `npx zapier-sdk run-action qoyod search_or_write find_vendor`

## PostgreSQL

### Identity
PostgreSQL is a powerful, open-source database engine with a uniquely advanced query optimizer and dozens of built in features, making it an easy choice for production databases.

- App slug: postgresql
- Operations published here: 10 (5 events, 2 functions, 3 queries)

### Authentication
Zapier connects to PostgreSQL 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 postgresql
```

### Capabilities

#### Events (5)

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

##### New Column
Triggers when you add a new column.

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

##### New Row
Triggers when you add a new row.

- Type: read · Key: `row`
- Requires: table
- Optional: order_by, dedupe_key
- SDK: `runAction({ app: "postgresql", actionType: "read", action: "row" })`
- CLI: `npx zapier-sdk run-action postgresql read row`

##### New Row (Custom Query)
Triggers when new rows are returned from a custom query that you provide.  Advanced Users Only .

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

##### New Table
Triggers when you add a new table.

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

##### New or Updated Row
Triggers when a new row is added or modified.

- Type: read · Key: `updated_row`
- Requires: table, primary_key, order_by
- Optional: trigger_column
- SDK: `runAction({ app: "postgresql", actionType: "read", action: "updated_row" })`
- CLI: `npx zapier-sdk run-action postgresql read updated_row`

#### Functions (2)

Functions change something in PostgreSQL.

##### New Row
Adds a new row.

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

##### Update Row
Updates an existing row.

- Type: write · Key: `update_row`
- Requires: table, row_id_column
- SDK: `runAction({ app: "postgresql", actionType: "write", action: "update_row" })`
- CLI: `npx zapier-sdk run-action postgresql write update_row`

#### Queries (3)

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

##### Find Row
Finds a row in a table via a lookup column.

- Type: search · Key: `row`
- Requires: table, lookup_key, lookup_value
- SDK: `runAction({ app: "postgresql", actionType: "search", action: "row" })`
- CLI: `npx zapier-sdk run-action postgresql search row`

##### Find Rows via Custom Query
Finds multiple rows in a table via a custom query you control.

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

##### Find Row via Custom Query
Finds a row in a table via a custom query you control.

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

## Frequently asked questions about automating with Qoyod and PostgreSQL

### 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
- Qoyod integrations: zapier.com/apps/qoyod/integrations.md
- PostgreSQL integrations: zapier.com/apps/postgresql/integrations.md
- Full page: zapier.com/apps/qoyod/integrations/postgresql
- SDK: npmjs.com/package/@zapier/zapier-sdk