# Kahunas + Xledger Integrations: Connect with Zapier MCP
> zapier.com/apps/kahunas/integrations/xledger
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Kahunas and Xledger 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 · create_donation_deposit`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action xledger write create_donation_deposit \
  --inputs '{}'
```

## Kahunas

### Identity
Kahunas App helps Kahunas Coaches to handle and create their clients.

- App slug: kahunas
- Operations published here: 5 (4 events, 1 function)

### Authentication
Zapier connects to Kahunas 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 kahunas
```

### Capabilities

#### Events (4)

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

##### Checkin Forms
This trigger brings all coach checkin forms

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

##### Get Daily Checkin Forms
This trigger brings all coach Daily Checkin Forms

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

##### Get Initial QA Forms
This trigger brings all coach Initial QA Forms

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

##### Get Packages
Triggers when there's a new package.

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

#### Functions (1)

Functions change something in Kahunas.

##### Create New Client
Creates a client in Kahunas into your coach accounts. 

- Type: write · Key: `new_client`
- Requires: first_name, last_name, email, package_plan_id, plan_start_date, is_pay, check_in_form_id, check_in_frequency, check_in_day, habit_form_id, questionnaire_form_id, ios_app_purchase, allow_competition
- Optional: phone, birth_date, payment_start_date, goal_title, goal_date
- SDK: `runAction({ app: "kahunas", actionType: "write", action: "new_client" })`
- CLI: `npx zapier-sdk run-action kahunas write new_client`

## Xledger

### Identity
Xledger is cloud based accounting platform. It leverages automation to save users time and use complex worflows.

- App slug: xledger
- Operations published here: 28 (10 events, 18 functions)

### Authentication
Zapier connects to Xledger 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 xledger
```

### Capabilities

#### Events (10)

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

##### Newly Modified AP Transactions.
Triggers when an AP transaction is modified.

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

##### Newly Modified AR Transactions.
Triggers when an AR transaction is modified.

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

##### Newly Modified Customers
Triggers when a customer is modified.

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

##### Newly Modified Donors
Triggers when a donor is modified.

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

##### Newly Modified Journal Entries
Triggers when a journal entry is modified.

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

##### Newly Modified Projects
Triggers when a project is modified.

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

##### Newly Modified Purchase Orders
Triggers when a purchase order is modified.

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

##### Newly Modified Suppliers
Triggers when a supplier is modified.

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

##### Newly Modified Timesheets
Triggers when a timesheet is modified.

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

##### Newly Reconciled Customer Invoices
Triggers when a customer invoice is reconciled and its remaining amount is zero.

- Type: read · Key: `newly_reconciled_customer_invoices`
- Requires: nothing
- Optional: extIdentifier, records
- SDK: `runAction({ app: "xledger", actionType: "read", action: "newly_reconciled_customer_invoices" })`
- CLI: `npx zapier-sdk run-action xledger read newly_reconciled_customer_invoices`

#### Functions (18)

Functions change something in Xledger.

##### Create Donation Deposit
Creates a donation deposit along with one row of details.

- Type: write · Key: `create_donation_deposit`
- Requires: account, payMethod, currency, bankAccount, detailAmount, detailDonor, detailProject
- Optional: postedDate, text, amount, fee, detailText, detailExtIdentifier
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_donation_deposit" })`
- CLI: `npx zapier-sdk run-action xledger write create_donation_deposit`

##### Create Double Entry GL Item
Creates both credit and debit GL import items, The debit amount will always be the original amount while the credit will be its negative value. For example, is a transaction with a gross value of £100 is processed the DR line amount will be 100 while the credit line will be -100.

- Type: write · Key: `create_double_entry_gl_item`
- Requires: trRegNumber, transactionSource, creditAccount, debitAccount, postedDate, text, amount, currency
- Optional: dueDate, invoiceNumber, extIdentifier, creditTaxRule, debitTaxRule, creditSubledgerCode, debitSubledgerCode, creditBankAccount, debitBankAccount, jobLevel, workflow, crGlObject1Code, drGlObject1Code, crGlObject2Code, drGlObject2Code, crXgl, drXgl
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_double_entry_gl_item" })`
- CLI: `npx zapier-sdk run-action xledger write create_double_entry_gl_item`

##### Create Employee
Creates an employee in Xledger. This include user, contact and supplier creation.
The new employee and user will have the employee role by default.

- Type: write · Key: `create_employee`
- Requires: code, firstName, lastName, email, streetAddress, zipcode, place
- Optional: fromDate, mobile
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_employee" })`
- CLI: `npx zapier-sdk run-action xledger write create_employee`

##### Create Expense Detail
Creates an expense detail line.

- Type: write · Key: `create_expense_detail`
- Requires: date, employeeCode, expenseType, accountDescription, amount, approved, readyForApproval
- Optional: text, glObject1Code, glObject2Code, xgl
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_expense_detail" })`
- CLI: `npx zapier-sdk run-action xledger write create_expense_detail`

##### Create GL Import Item
Creates a GL import item.

- Type: write · Key: `create_gl_entry`
- Requires: trRegNumber, transactionSource, account, postedDate, text, amount, currency
- Optional: extIdentifier, taxRule, bankAccount, jobLevel, glObject1Code, glObject2Code, glObject3Code, glObject4Code, glObject5Code, xgl
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_gl_entry" })`
- CLI: `npx zapier-sdk run-action xledger write create_gl_entry`

##### Create Invoice Base Line
Creates an invoice line in the invoice base.

- Type: write · Key: `create_invoice_base_line`
- Requires: invoiceDate, transactionDate, subledger, product, quantity, unitPrice, currency, approved
- Optional: order, text, taxRule, glObject1Code, glObject2Code, glObject3Code, glObject4Code, glObject5Code, xgl, warehouse, location, extIdentifier, extOrder, jobLevel
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_invoice_base_line" })`
- CLI: `npx zapier-sdk run-action xledger write create_invoice_base_line`

##### Create or Update Company and Customer
Creates a new company and customer, if the code is already used in Xledger, the existing company or customer is updated instead. This action allows to link multiple customers to one company.

- Type: write · Key: `create_or_update_company_and_customer`
- Requires: companyCode, companyDescription, customerCode, customerDescription, streetAddress, zipCode, place, country
- Optional: companyNumber, cemail, cstreetAddress, czipCode, cplace, ccountry, cphone, email, name, phone
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_or_update_company_and_customer" })`
- CLI: `npx zapier-sdk run-action xledger write create_or_update_company_and_customer`

##### Create or Update Customer
Creates a new customer, if the code is already used in Xledger, the existing customer is updated instead.

- Type: write · Key: `create_or_update_customer`
- Requires: code, description, streetAddress, zipCode, place
- Optional: email, name, phone
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_or_update_customer" })`
- CLI: `npx zapier-sdk run-action xledger write create_or_update_customer`

##### Create or Update Donor
Creates a new donor, if the code is already used in Xledger, the existing donor is updated instead.

- Type: write · Key: `create_or_update_donor`
- Requires: code, streetAddress, zipCode, place
- Optional: email, description, name, phone
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_or_update_donor" })`
- CLI: `npx zapier-sdk run-action xledger write create_or_update_donor`

##### Create or Update a Project
Creates a new project, if the code is already used in Xledger, the existing project is updated instead.

- Type: write · Key: `create_or_update_project`
- Requires: code, description, fromDate, billable, timesheetEntry, fundProject
- Optional: glObject1Code, glObject2Code, glObject3Code, glObject4Code, glObject5Code, xgl
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_or_update_project" })`
- CLI: `npx zapier-sdk run-action xledger write create_or_update_project`

##### Create or Update Supplier
Creates a new supplier, if the code is already used in Xledger, the existing supplier is updated instead.

- Type: write · Key: `create_or_update_supplier`
- Requires: code, description, streetAddress, zipCode, place
- Optional: email, name, phone
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_or_update_supplier" })`
- CLI: `npx zapier-sdk run-action xledger write create_or_update_supplier`

##### Create Purchase Order Detail
Creates a purchase order detail, i.e a purchase order line.

- Type: write · Key: `create_PO_detail`
- Requires: purchaseOrderHeaderDb, quantity, unitPrice, productCode, receivedQuantity
- Optional: text, taxRule, glObject1Code, glObject2Code, glObject3Code, glObject4Code, glObject5Code, xgl
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_PO_detail" })`
- CLI: `npx zapier-sdk run-action xledger write create_PO_detail`

##### Create Purchase Order Header
Creates a purchase order header, use this before creating PO details.

- Type: write · Key: `create_po_header`
- Requires: subledgerCode, currency
- Optional: extOrder
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_po_header" })`
- CLI: `npx zapier-sdk run-action xledger write create_po_header`

##### Create Sales Order Detail
Creates a sales order detail i.e a sales order line.

- Type: write · Key: `create_so_detail`
- Requires: salesOrderHeaderDb, quantity, unitPrice, productCode, taxRule
- Optional: text, glObject1Code, glObject2Code, glObject3Code, glObject4Code, glObject5Code
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_so_detail" })`
- CLI: `npx zapier-sdk run-action xledger write create_so_detail`

##### Create Sales Order Header
Creates a sales order header, use this before creating SO details.

- Type: write · Key: `create_so_header`
- Requires: customerCode, currency
- Optional: extOrder
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_so_header" })`
- CLI: `npx zapier-sdk run-action xledger write create_so_header`

##### Create Timesheet Entry
Creates a timesheet entry.

- Type: write · Key: `create_timesheet_entry`
- Requires: employee, project, activity, assignmentDate, timeType
- Optional: text, workingHours, invoiceHours
- SDK: `runAction({ app: "xledger", actionType: "write", action: "create_timesheet_entry" })`
- CLI: `npx zapier-sdk run-action xledger write create_timesheet_entry`

##### Get Supplier by Code
Return a supplier's dbId and bankAccount from its code

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

##### Update Purchase Order Status
Updates the PO status to transferred.

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

## Frequently asked questions about automating with Kahunas and Xledger

### 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
- Kahunas integrations: zapier.com/apps/kahunas/integrations.md
- Xledger integrations: zapier.com/apps/xledger/integrations.md
- Full page: zapier.com/apps/kahunas/integrations/xledger
- SDK: npmjs.com/package/@zapier/zapier-sdk