# Karlia + Xero Integrations: Connect with Zapier MCP
> zapier.com/apps/karlia/integrations/xero
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Karlia and Xero 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 · add_invoice_line_items`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action xero write add_invoice_line_items \
  --inputs '{}'
```

## Karlia

### Identity
Karlia is the first CRM software to integrate your complete mailboxes with tracking, scheduled mailings, templates and predefined responses. Be twice as productive !

- App slug: karlia
- Operations published here: 134 (72 events, 39 functions, 19 queries, 4 search-or-write actions)

### Authentication
Zapier connects to Karlia 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 karlia
```

### Capabilities

#### Events (72)

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

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

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

##### Update Customer
Triggers when a customer is updated.

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

##### Delete Customer
Triggers when a customer is deleted.

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

##### New Supplier
Trigger when a new supplier is created.

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

##### Update Supplier
Triggers when a supplier is updated.

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

##### Delete Supplier
Triggers when a supplier is deleted.

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

##### New Contact
Triggers when a new contact is created.

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

##### Update Contact
Triggers when a contact is updated

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

##### Delete Contact
Triggers when a contact is delete.

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

##### New Opportunity
Triggers when a new opportunity is created.

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

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

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

##### Update Opportunity Status
Triggers when an opportunity status is updated.

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

##### Update Opportunity Column Number
Triggers when a column number of an opportunity is updated.

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

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

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

##### New Quote
Triggers when a new quote is created.

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

##### Update Quote
Triggers when a quote is updated.

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

##### Delete Quote
Triggers when a quote is deleted

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

##### New Order
Triggers when a new order is created.

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

##### Update Order
Triggers when a order is updated.

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

##### Delete Order
Triggers when an order is deleted.

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

##### New Delivery
Triggers when a new delivery is created.

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

##### Update Delivery
Triggers when a delivery is updated.

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

##### Delete Delivery
Triggers when a delivery is deleted.

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

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

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

##### Update Invoice
Triggers when an invoice is updated.

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

##### Delete Invoice
Triggers when an invoice is deleted.

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

##### New Product
Triggers when a new product is created.

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

##### Update Product
Triggers when a  product is updated.

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

##### Delete Product
Triggers when a product is deleted.

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

##### New Equipment
Triggers when a new equipment is created.

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

##### Update Equipment
Triggers when an equipment is updated.

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

##### Delete Equipment
Triggers when an equipement is deleted.

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

##### New Purchase
Triggers when a new purchase is created.

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

##### Update Purchase
Triggers when a purchase is updated.

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

##### Delete Purchase
Triggers when a purchase is deleted.

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

##### New Supplier Order
Triggers when a new supplier order is created.

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

##### Update Supplier Order
Triggers when a supplier order is updated..

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

##### Delete Supplier Order
Triggers when a supplier order is deleted.

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

##### New Suppler Delivery
Triggers when a new supplier delivery is created.

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

##### Update Supplier Delivery
Triggers when a supplier delivery is updated

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

##### Delete Supplier Delivery
Triggers when a supplier delivery is deleted.

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

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

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

##### Update Supplier Invoice
Triggers when a supplier invoice is updated.

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

##### Delete Supplier Invoice
Triggers when a supplier invoice is deleted.

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

##### New Event 
Triggers when a new event is created.

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

##### Update Event
Triggers when an event is updated.

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

##### Delete Event
Triggers when an event is deleted.

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

##### New Note
Triggers when a new note is created.

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

##### Update Note
Triggers when a note is updated.

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

##### Delete Note
Triggers when a note is deleted.

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

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

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

##### Update Task
Triggers when a task is updated.

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

##### Delete Task
Triggers when a task is deleted.

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

##### New Time
Triggers when a new time is created.

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

##### Update  Time
Triggers when a time is updated.

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

##### Delete Time
Triggers when a time is deleted.

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

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

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

##### Update Project
Triggers when a project is updated.

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

##### Delete Project
Triggers when a project is deleted.

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

##### New Project Task
Triggers when a new project task is created.

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

##### Update Project Task
Triggers when a project task is updated.

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

##### Update Project Task Status
Triggers when a project task status is updated.

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

##### Update Project Task Column Number
Triggers when a column number of a project task is updated.

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

##### Delete Project Task
Triggers when a project task is deleted.

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

##### New Project Subtask
Triggers when a new project subtask is created.

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

##### Update Project Subtask
Triggers when a project subtask is updated.

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

##### Update Project Subtask Status
Triggers when a project subtask status is updated.

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

##### Delete Project Subtask
Triggers when a project subtask is deleted.

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

##### New Ticket
Triggers when a new ticket is created.

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

##### Update Ticket
Triggers when a ticket is updated.

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

##### Update Ticket Status
Triggers when a ticket status is updated.

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

##### Delete Ticket
Triggers when a ticket is deleted.

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

#### Functions (39)

Functions change something in Karlia.

##### Create Contact
Create a Contact.

- Type: write · Key: `create_contact`
- Requires: id_customer_supplier, lastname
- Optional: id_civility, firstname, position_title, email, phone, mobile, description, client_number
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action karlia write create_contact`

##### Create Customer
Create a Customer.

- Type: write · Key: `create_customer`
- Requires: individual
- Optional: prospect, phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_customer" })`
- CLI: `npx zapier-sdk run-action karlia write create_customer`

##### Create Document
Create a Document.

- Type: write · Key: `create_document`
- Requires: choice
- Optional: id_type, proposal_description, id_status, title, date, customer_reference, description, use_stripe_to_pay, id_document_template
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_document" })`
- CLI: `npx zapier-sdk run-action karlia write create_document`

##### Create Equipment
Create a Equipment.

- Type: write · Key: `create_equipment`
- Requires: title
- Optional: reference, description, serial_number, id_customer_supplier
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_equipment" })`
- CLI: `npx zapier-sdk run-action karlia write create_equipment`

##### Create Event
Create an Event.

- Type: write · Key: `create_event`
- Requires: id_user_assigned
- Optional: id_customer_supplier, id_opportunity, id_event_type, id_project, start_date, end_date, title, description, private, visible_in_agenda, use_time, time_id_type, time_billable
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_event" })`
- CLI: `npx zapier-sdk run-action karlia write create_event`

##### Create Expense
Create an Expense.

- Type: write · Key: `Create_expense`
- Requires: nothing
- Optional: id_supplier, id_status, title, date, date_end, description, id_chart_of_account_expenses, total_without_tax, id_vat
- SDK: `runAction({ app: "karlia", actionType: "write", action: "Create_expense" })`
- CLI: `npx zapier-sdk run-action karlia write Create_expense`

##### Create Note
Create a Note.

- Type: write · Key: `create_note`
- Requires: id_user_assigned
- Optional: id_customer_supplier, id_opportunity, id_project, date, title, description
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_note" })`
- CLI: `npx zapier-sdk run-action karlia write create_note`

##### Create Opportunity
Create an Opportunity.

- Type: write · Key: `create_opportunity`
- Requires: pipeline, id_customer
- Optional: title, column_number, id_user_assigned, id_status, archived
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_opportunity" })`
- CLI: `npx zapier-sdk run-action karlia write create_opportunity`

##### Create Product
Create a Product.

- Type: write · Key: `create_product`
- Requires: title
- Optional: reference, id_product_category, description, price_without_tax, id_vat, id_unit
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_product" })`
- CLI: `npx zapier-sdk run-action karlia write create_product`

##### Create Project
Create a Project.

- Type: write · Key: `create_project`
- Requires: title, id_user_assigned
- Optional: columns, id_customer_supplier, id_opportunity, starting_date, due_date, id_status, archived
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_project" })`
- CLI: `npx zapier-sdk run-action karlia write create_project`

##### Create Project Subtask
Create a Project Subtask.

- Type: write · Key: `create_project_subtask`
- Requires: id, title
- Optional: section, starting_date, due_date, estimation_time, id_user_assigned
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_project_subtask" })`
- CLI: `npx zapier-sdk run-action karlia write create_project_subtask`

##### Create Project Task
Create a Project Task.

- Type: write · Key: `create_project_task`
- Requires: id, title
- Optional: column_number, description, priority, starting_date, due_date, estimation_time, id_user_assigned, id_customer_supplier, id_opportunity, archived
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_project_task" })`
- CLI: `npx zapier-sdk run-action karlia write create_project_task`

##### Create Supplier
Create a Supplier.

- Type: write · Key: `create_supplier`
- Requires: name
- Optional: phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_supplier" })`
- CLI: `npx zapier-sdk run-action karlia write create_supplier`

##### Create Task
Create a Task.  

- Type: write · Key: `create_task`
- Requires: id_user_assigned
- Optional: id_customer_supplier, id_opportunity, id_event_type, id_project, start_date, end_date, title, description, private, visible_in_agenda, use_time, time_id_type, time_billable
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_task" })`
- CLI: `npx zapier-sdk run-action karlia write create_task`

##### Create Ticket
Create a Ticket.

- Type: write · Key: `Create_ticket`
- Requires: nothing
- Optional: pipeline, title, id_priority, id_group, id_user_assigned, skills, id_customer_supplier, id_customer_supplier_contact, id_opportunity, id_project, id_equipment, list_id_user_shared, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "Create_ticket" })`
- CLI: `npx zapier-sdk run-action karlia write Create_ticket`

##### Create Time
Create a Time. 

- Type: write · Key: `create_time`
- Requires: id_user
- Optional: id_project, id_customer_supplier, id_opportunity, id_type, billable, time_date, time_done, time_planified, description
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_time" })`
- CLI: `npx zapier-sdk run-action karlia write create_time`

##### Create/Update Contact Custom Field
Create or Update a new custom field to a Contact.

- Type: write · Key: `create_update_contact_custom_field`
- Requires: supplier, id, field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_contact_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_contact_custom_field`

##### Create/Update Customer Custom Field
Create or Update a new custom field to a Customer.

- Type: write · Key: `create_update_custom_field`
- Requires: id, field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_custom_field`

##### Create/Update Equipement Custom Field
Create or Update a new cusotm field to an Equipment.

- Type: write · Key: `create_update_equipment_custom_field`
- Requires: id, field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_equipment_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_equipment_custom_field`

##### Create/Update Opportunity Custom Field
Create or Update a new custom field to an Opportunity.

- Type: write · Key: `create_update_opportunity_custom_field`
- Requires: nothing
- Optional: id, field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_opportunity_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_opportunity_custom_field`

##### Create/Update Product Custom Field
Create or Update a new custom field to a Product.

- Type: write · Key: `create_update_product_custom_field`
- Requires: id
- Optional: field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_product_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_product_custom_field`

##### Create/Update Supplier Custom Field
Create or Update a new custom field to a Supplier.

- Type: write · Key: `create_update_supplier_custom_field`
- Requires: nothing
- Optional: id, field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_supplier_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_supplier_custom_field`

##### Create/Update Ticket Custom Field
Create or Update a new custom field to a Ticket.

- Type: write · Key: `create_update_ticket_custom_field`
- Requires: nothing
- Optional: id, field_id
- SDK: `runAction({ app: "karlia", actionType: "write", action: "create_update_ticket_custom_field" })`
- CLI: `npx zapier-sdk run-action karlia write create_update_ticket_custom_field`

##### Update Contact
Update a Contact.

- Type: write · Key: `update_contact`
- Requires: id
- Optional: id_civility, firstname, lastname, position_title, email, phone, mobile, description, client_number
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action karlia write update_contact`

##### Update/Create Customer
Update a Customer or Create one if it doesn't exist.

- Type: write · Key: `update_create_customer`
- Requires: nothing
- Optional: quick_search, search_prospect, individual, prospect, phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_create_customer" })`
- CLI: `npx zapier-sdk run-action karlia write update_create_customer`

##### Update Customer
Update a Customer.

- Type: write · Key: `update_customer`
- Requires: id
- Optional: individual, prospect, phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_customer" })`
- CLI: `npx zapier-sdk run-action karlia write update_customer`

##### Update Document
Update a Document.

- Type: write · Key: `update_document`
- Requires: id
- Optional: id_status, title, date, date_end, id_payment_condition, customer_reference, description, use_stripe_to_pay, id_document_template
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_document" })`
- CLI: `npx zapier-sdk run-action karlia write update_document`

##### Update Equipment
Update a Equipment.

- Type: write · Key: `update_equipments`
- Requires: id
- Optional: title, reference, serial_number, id_customer_supplier
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_equipments" })`
- CLI: `npx zapier-sdk run-action karlia write update_equipments`

##### Update Event
Update an Event.

- Type: write · Key: `update_event`
- Requires: id_user_assigned
- Optional: id_customer_supplier, id_opportunity, id_event_type, id_project, start_date, end_date, title, description, private, visible_in_agenda, use_time, time_id_type, time_billable
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_event" })`
- CLI: `npx zapier-sdk run-action karlia write update_event`

##### Update Expense
Update an Expense.

- Type: write · Key: `update_expense`
- Requires: id
- Optional: id_supplier, id_status, title, date, date_end, description, id_chart_of_account_expenses, total_without_tax, id_vat
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_expense" })`
- CLI: `npx zapier-sdk run-action karlia write update_expense`

##### Update Note
Update a Note.

- Type: write · Key: `update_note`
- Requires: id_user_assigned
- Optional: id_customer_supplier, id_opportunity, id_project, date, title, description
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_note" })`
- CLI: `npx zapier-sdk run-action karlia write update_note`

##### Update Opportunity
Update an Opportunity.

- Type: write · Key: `update_opportunity`
- Requires: id
- Optional: pipeline, title, column_number, id_user_assigned, id_status, archived
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_opportunity" })`
- CLI: `npx zapier-sdk run-action karlia write update_opportunity`

##### Update Product
Update a Product.

- Type: write · Key: `update_products`
- Requires: id
- Optional: title, reference, id_product_category, description, price_without_tax, id_vat, id_unit
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_products" })`
- CLI: `npx zapier-sdk run-action karlia write update_products`

##### Update Project
Update a Project.

- Type: write · Key: `update_project`
- Requires: id
- Optional: title, id_user_assigned, columns, id_customer_supplier, id_opportunity, starting_date, due_date, id_status, archived
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_project" })`
- CLI: `npx zapier-sdk run-action karlia write update_project`

##### Update Project Subtask
Update a Project Subtask.

- Type: write · Key: `update_project_subtask`
- Requires: id
- Optional: title, status, section, starting_date, due_date, estimation_time, id_user_assigned
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_project_subtask" })`
- CLI: `npx zapier-sdk run-action karlia write update_project_subtask`

##### Update Project Task
Update a Project Tasks.

- Type: write · Key: `update_project_task`
- Requires: id
- Optional: title, column_number, description, priority, starting_date, due_date, estimation_time, id_user_assigned, id_customer_supplier, id_opportunity, archived
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_project_task" })`
- CLI: `npx zapier-sdk run-action karlia write update_project_task`

##### Update Supplier
Update a Supplier.

- Type: write · Key: `update_supplier`
- Requires: id
- Optional: name, phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_supplier" })`
- CLI: `npx zapier-sdk run-action karlia write update_supplier`

##### Update Task
Update a Task.  

- Type: write · Key: `update_task`
- Requires: id_user_assigned
- Optional: id_customer_supplier, id_opportunity, id_event_type, id_project, start_date, end_date, title, description, private, visible_in_agenda, use_time, time_id_type, time_billable
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_task" })`
- CLI: `npx zapier-sdk run-action karlia write update_task`

##### Update Ticket
Update a Ticket.

- Type: write · Key: `update_ticket`
- Requires: id
- Optional: title, id_priority, id_group, id_user_assigned, skills, id_customer_supplier, id_customer_supplier_contact, id_opportunity, id_project, id_equipment, list_id_user_shared, options
- SDK: `runAction({ app: "karlia", actionType: "write", action: "update_ticket" })`
- CLI: `npx zapier-sdk run-action karlia write update_ticket`

#### Queries (19)

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

##### Find Contact
Find a Contact.

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

##### Find Customer
Find a Customer.

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

##### Find Opportunity
Find an Opportunity.

- Type: search · Key: `find_opportunity`
- Requires: nothing
- Optional: search_id_customer_supplier, search_id_status, search_archived, search_title
- SDK: `runAction({ app: "karlia", actionType: "search", action: "find_opportunity" })`
- CLI: `npx zapier-sdk run-action karlia search find_opportunity`

##### Find Supplier
Find a Supplier.

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

##### Get Contact
Show contact details

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

##### Get Customer
Show customer details

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

##### Get Document
Show document details

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

##### Get Equipment
Show equipment details

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

##### Get Event
Show event details

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

##### Get Expense
Show expense details

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

##### Get Note
Show note details

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

##### Get Opportunity
Show opportunity details

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

##### Get Product
Show product details

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

##### Get Project
Show project details

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

##### Get Project Subtask
Show project subtask details

- Type: search · Key: `get_project_subtask`
- Requires: id_project, id_task, id
- SDK: `runAction({ app: "karlia", actionType: "search", action: "get_project_subtask" })`
- CLI: `npx zapier-sdk run-action karlia search get_project_subtask`

##### Get Project Task
Show project task details

- Type: search · Key: `get_project_task`
- Requires: id_project, id
- SDK: `runAction({ app: "karlia", actionType: "search", action: "get_project_task" })`
- CLI: `npx zapier-sdk run-action karlia search get_project_task`

##### Get Supplier
Show supplier details

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

##### Get Task
Show task details

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

##### Get Ticket
Show ticket details

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

#### Search or Write Actions (4)

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

##### Find or Create Contact.
Find a Contact.

- Type: search_or_write · Key: `find_contact`
- Requires: id_customer_supplier, lastname
- Optional: choice, id_civility, firstname, position_title, email, phone, mobile, description, client_number
- SDK: `runAction({ app: "karlia", actionType: "search_or_write", action: "find_contact" })`
- CLI: `npx zapier-sdk run-action karlia search_or_write find_contact`

##### Find or Create Customer
Find a Customer.

- Type: search_or_write · Key: `find_customer`
- Requires: individual
- Optional: choice, prospect, phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "search_or_write", action: "find_customer" })`
- CLI: `npx zapier-sdk run-action karlia search_or_write find_customer`

##### Find or Create Opportuntiy
Find an Opportunity.

- Type: search_or_write · Key: `find_opportunity`
- Requires: pipeline, id_customer
- Optional: search_id_customer_supplier, search_id_status, search_archived, search_title, title, column_number, id_user_assigned, id_status, archived
- SDK: `runAction({ app: "karlia", actionType: "search_or_write", action: "find_opportunity" })`
- CLI: `npx zapier-sdk run-action karlia search_or_write find_opportunity`

##### Find or Create Supplier
Find a Supplier.

- Type: search_or_write · Key: `find_supplier`
- Requires: name
- Optional: choice, phone, mobile, email, main_address, main_zip_code, main_city, main_country, id_client_manager, options
- SDK: `runAction({ app: "karlia", actionType: "search_or_write", action: "find_supplier" })`
- CLI: `npx zapier-sdk run-action karlia search_or_write find_supplier`

## Xero

### Identity
Xero is an accounting app that lets you track businesses expenses and accounting with intuitive mobile apps and web interfaces for point-of-sale, ecommerce, time-tracking, and more.

- App slug: xero
- Operations published here: 55 (18 events, 25 functions, 10 queries, 2 search-or-write actions)

### Authentication
Zapier connects to Xero 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 xero
```

### Capabilities

#### Events (18)

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

##### New Bank Transaction
Triggers when a new bank transaction is created.

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

##### New Bill
Triggers when you add a new bill. (Accounts Payable).

- Type: read · Key: `bill`
- Requires: organization
- Optional: status
- SDK: `runAction({ app: "xero", actionType: "read", action: "bill" })`
- CLI: `npx zapier-sdk run-action xero read bill`

##### New Contact
Triggers when you add a new contact.

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

##### New Credit Note
Triggers when a new credit note is created.

- Type: read · Key: `credit_note`
- Requires: organization
- Optional: status, type
- SDK: `runAction({ app: "xero", actionType: "read", action: "credit_note" })`
- CLI: `npx zapier-sdk run-action xero read credit_note`

##### New Employee
Triggers when a new employee is created (Exclusively for Australian Instances).

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

##### New Report
Triggers when you run or refresh one of the selected Xero report types (Balance Sheet, Profit &amp; Loss, etc.).

- Type: read · Key: `new_report`
- Requires: organization, reportType
- SDK: `runAction({ app: "xero", actionType: "read", action: "new_report" })`
- CLI: `npx zapier-sdk run-action xero read new_report`

##### Overdue Sales Invoice
Triggers when a sales invoice is overdue by a specified number of days.

- Type: read · Key: `overdue_sales_invoice`
- Requires: organization, days_overdue
- SDK: `runAction({ app: "xero", actionType: "read", action: "overdue_sales_invoice" })`
- CLI: `npx zapier-sdk run-action xero read overdue_sales_invoice`

##### New Payment
Triggers when you receive a new payment.

- Type: read · Key: `payment`
- Requires: organization
- Optional: payment_type
- SDK: `runAction({ app: "xero", actionType: "read", action: "payment" })`
- CLI: `npx zapier-sdk run-action xero read payment`

##### New Payslip
Triggers when a new payslip is created.

- Type: read · Key: `payslip`
- Requires: organization
- Optional: trigger_info, payrun_status, payrun_period_start_date, payrun_period_end_date
- SDK: `runAction({ app: "xero", actionType: "read", action: "payslip" })`
- CLI: `npx zapier-sdk run-action xero read payslip`

##### New Project
Triggers when a new project is created.  May not trigger if there are more than 500 projects.

- Type: read · Key: `project`
- Requires: organization
- Optional: state
- SDK: `runAction({ app: "xero", actionType: "read", action: "project" })`
- CLI: `npx zapier-sdk run-action xero read project`

##### New Purchase Order
Triggers when a new purchase order is created or enters a status for the first time.

- Type: read · Key: `purchase_order`
- Requires: organization
- Optional: status
- SDK: `runAction({ app: "xero", actionType: "read", action: "purchase_order" })`
- CLI: `npx zapier-sdk run-action xero read purchase_order`

##### New Quote
Triggers when a new quote is created.

- Type: read · Key: `quote`
- Requires: organization
- Optional: status
- SDK: `runAction({ app: "xero", actionType: "read", action: "quote" })`
- CLI: `npx zapier-sdk run-action xero read quote`

##### New Reconciled Payment
Triggers when a payment is reconciled for the first time.

- Type: read · Key: `reconciled_payment`
- Requires: organization
- Optional: payment_type
- SDK: `runAction({ app: "xero", actionType: "read", action: "reconciled_payment" })`
- CLI: `npx zapier-sdk run-action xero read reconciled_payment`

##### New Sales Invoice
Triggers when a new Sales Invoice (Accounts Receivable) is created.

- Type: read · Key: `sales_invoice_v2`
- Requires: organization
- Optional: status
- SDK: `runAction({ app: "xero", actionType: "read", action: "sales_invoice_v2" })`
- CLI: `npx zapier-sdk run-action xero read sales_invoice_v2`

##### New or Updated Contact
Triggers when a contact is created or updated.

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

##### Updated Employee
Triggers when a new employee is updated (Exclusively for Australian Instances).

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

##### Updated Sales Invoice
Triggers when a Sales Invoice is updated.

- Type: read · Key: `updated_invoice_v2`
- Requires: organization
- Optional: status, change, contact, trigger_preference, copy
- SDK: `runAction({ app: "xero", actionType: "read", action: "updated_invoice_v2" })`
- CLI: `npx zapier-sdk run-action xero read updated_invoice_v2`

##### Updated Quote
Triggers when a quote is created or updated.

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

#### Functions (25)

Functions change something in Xero.

##### Add Items to Existing Sales Invoice
Adds line items to an existing sales invoice.

- Type: write · Key: `add_invoice_line_items`
- Requires: organization, invoice
- SDK: `runAction({ app: "xero", actionType: "write", action: "add_invoice_line_items" })`
- CLI: `npx zapier-sdk run-action xero write add_invoice_line_items`

##### Add Note to Invoice
Add a note which will appear in the invoice history.

- Type: write · Key: `add_note_to_invoice`
- Requires: organization, invoice_id, invoice_note
- SDK: `runAction({ app: "xero", actionType: "write", action: "add_note_to_invoice" })`
- CLI: `npx zapier-sdk run-action xero write add_note_to_invoice`

##### Add or Update Stock Items
Creates or updates one or more stock items.

- Type: write · Key: `add_or_update_stock_items`
- Requires: organization, item_code, item_name, is_sold, is_purchased, is_tracked
- Optional: item_description, sales_unit_price, sales_account_code, sales_tax_type, purchase_description, purchase_unit_price, purchase_account_code, purchase_tax_type, inventory_asset_account_code, cogs_account_code
- SDK: `runAction({ app: "xero", actionType: "write", action: "add_or_update_stock_items" })`
- CLI: `npx zapier-sdk run-action xero write add_or_update_stock_items`

##### Allocate Credit Note to Invoice
Allocates a credit note to an invoice.

- Type: write · Key: `allocate_credit_note`
- Requires: organization, credit_note_id, invoice_id, amount
- SDK: `runAction({ app: "xero", actionType: "write", action: "allocate_credit_note" })`
- CLI: `npx zapier-sdk run-action xero write allocate_credit_note`

##### Create Bank Transaction
Creates a new Spend/Receive Money bank transaction.

- Type: write · Key: `bank_transaction_v2`
- Requires: organization, transaction_type, contact_id, bank_account_id
- Optional: date
- SDK: `runAction({ app: "xero", actionType: "write", action: "bank_transaction_v2" })`
- CLI: `npx zapier-sdk run-action xero write bank_transaction_v2`

##### Create Bank Transfer
Transfers money between two bank accounts.

- Type: write · Key: `bank_transfer`
- Requires: organization, FromBankAccount__Code, ToBankAccount__Code, Amount
- Optional: Date
- SDK: `runAction({ app: "xero", actionType: "write", action: "bank_transfer" })`
- CLI: `npx zapier-sdk run-action xero write bank_transfer`

##### Create/Update Contact
Creates a new contact or updates a contact if a contact already exists.

- Type: write · Key: `contact`
- Requires: organization, name
- Optional: account_number, sales_default_account_code, purchases_default_account_code, contact_copy, first_name, last_name, email_address, contact_person__first_name, contact_person__last_name, contact_person__email_address, contact_person__include_in_emails, phone__country_code, phone__area_code, phone__number, fax__country_code, fax__area_code, fax__number, mobile__country_code, mobile__area_code, mobile__number, direct_dial__country_code, direct_dial__area_code, direct_dial__number, address__type_of, address__attn, address__line1, address__line2, address__city, address__region, address__postal_code, address__country, tax_number, bank_account_details, groups, contact_number, company_number, payment_terms__sales__days, payment_terms__sales__type, payment_terms__purchases__days, payment_terms__purchases__type
- SDK: `runAction({ app: "xero", actionType: "write", action: "contact" })`
- CLI: `npx zapier-sdk run-action xero write contact`

##### Create Account
Creates a new account.

- Type: write · Key: `create_account`
- Requires: organization, code, name, type
- SDK: `runAction({ app: "xero", actionType: "write", action: "create_account" })`
- CLI: `npx zapier-sdk run-action xero write create_account`

##### Create New Quote Draft
Creates a new quote draft.

- Type: write · Key: `create_quote_draft`
- Requires: organization, contact_id
- Optional: date, expiry_date, quote_number, reference, branding_theme_id, title, summary, currency_code, line_amount_types, terms
- SDK: `runAction({ app: "xero", actionType: "write", action: "create_quote_draft" })`
- CLI: `npx zapier-sdk run-action xero write create_quote_draft`

##### Create Credit Note
Creates a new credit note for a contact.

- Type: write · Key: `credit_note`
- Requires: organization, type, contact_id
- Optional: date
- SDK: `runAction({ app: "xero", actionType: "write", action: "credit_note" })`
- CLI: `npx zapier-sdk run-action xero write credit_note`

##### Delete Credit Note Allocation
Deletes a credit note allocation on an invoice.

- Type: write · Key: `delete_credit_note_allocation`
- Requires: organization, credit_note_id, allocation_id
- Optional: warning_message
- SDK: `runAction({ app: "xero", actionType: "write", action: "delete_credit_note_allocation" })`
- CLI: `npx zapier-sdk run-action xero write delete_credit_note_allocation`

##### Send Sales Invoice by Email
Send Sales Invoice by Email

- Type: write · Key: `email_invoice`
- Requires: organization, invoice_id
- SDK: `runAction({ app: "xero", actionType: "write", action: "email_invoice" })`
- CLI: `npx zapier-sdk run-action xero write email_invoice`

##### Create Employee
Creates an employee in Xero. (Exclusively for Australian Instances)

- Type: write · Key: `employee`
- Requires: organization, FirstName, LastName, DateOfBirth, Email
- Optional: info, MiddleNames, Title, Gender, Phone, Mobile, TwitterUserName, JobTitle, Classification, TerminationDate, TerminationReason, IncomeType, EmploymentType, Status, copyEmployment, EmploymentBasis, StartDate, PayrollCalendarID, EmployeeGroupName, IsAuthorisedToApproveLeave, IsAuthorisedToApproveTimesheets, SuperFundID, EmployeeNumber, copyTaxDeclaration, TaxFileNumber, TFNExemptionType, ResidencyStatus, TaxScaleType, TaxOffsetEstimatedAmount, UpwardVariationTaxWithholdingAmount, ApprovedWithholdingVariationPercentage, copyBankAccount, StatementText, AccountName, BSB, AccountNumber, Remainder, copyAddress, AddressLine1, AddressLine2, City, Region, PostalCode, Country
- SDK: `runAction({ app: "xero", actionType: "write", action: "employee" })`
- CLI: `npx zapier-sdk run-action xero write employee`

##### Create Inventory Item
Creates an inventory item.

- Type: write · Key: `inventory_item`
- Requires: organization, item_code
- Optional: is_sold, is_purchased, item_name
- SDK: `runAction({ app: "xero", actionType: "write", action: "inventory_item" })`
- CLI: `npx zapier-sdk run-action xero write inventory_item`

##### Create Bill
Creates a new bill (Accounts Payable).

- Type: write · Key: `new_bill`
- Requires: organization, contact_name, line_quantity
- Optional: email_address, status, date, due_date, currency, url, attachment, branding_theme, number, line_items_type, line_item_code, line_description, line_unit_amount, line_account_code, line_tax_type, line_tracking
- SDK: `runAction({ app: "xero", actionType: "write", action: "new_bill" })`
- CLI: `npx zapier-sdk run-action xero write new_bill`

##### Create Sales Invoice
Creates a new sales invoice (Accounts Receivable).

- Type: write · Key: `new_sales_invoice`
- Requires: organization, contact_name, line_quantity
- Optional: email_address, contact_account_number, contact_first_name, contact_last_name, contact_phone__country_code, contact_phone__area_code, contact_phone__number, contact_fax__country_code, contact_fax__area_code, contact_fax__number, contact_mobile__country_code, contact_mobile__area_code, contact_mobile__number, contact_direct_dial__country_code, contact_direct_dial__area_code, contact_direct_dial__number, contact_address__type_of, contact_address__attn, contact_address__line1, contact_address__line2, contact_address__city, contact_address__region, contact_address__postal_code, contact_address__country, contact_tax_number, contact_bank_account_details, contact_number, status, date, due_date, currency, url, attachment, branding_theme, number, reference, sent_to_contact, shipping_cost_copy, shipping_cost, shipping_cost_description, shipping_cost_tax_type, line_items_type, line_item_code, line_description, line_unit_amount, line_discount, line_discount_amount, line_account_code, line_tax_type, line_tracking
- SDK: `runAction({ app: "xero", actionType: "write", action: "new_sales_invoice" })`
- CLI: `npx zapier-sdk run-action xero write new_sales_invoice`

##### Create Payment
Applies a payment to an invoice.

- Type: write · Key: `payment`
- Requires: organization, invoice_number, account_id, amount
- Optional: invoice_type, date, currency_rate, reference
- SDK: `runAction({ app: "xero", actionType: "write", action: "payment" })`
- CLI: `npx zapier-sdk run-action xero write payment`

##### Create Project
Creates a new project for a contact.

- Type: write · Key: `project`
- Requires: organization, contact_id, project_name
- Optional: deadline_utc, estimate_amount
- SDK: `runAction({ app: "xero", actionType: "write", action: "project" })`
- CLI: `npx zapier-sdk run-action xero write project`

##### Create Purchase Order
Creates a new purchase order for a contact.

- Type: write · Key: `purchase_order`
- Requires: organization, contact_id
- Optional: date, delivery_date, purchase_order_number, reference, branding_theme, currency, tax_type, delivery_address, attention, telephone, delivery_instructions, attachments, status
- SDK: `runAction({ app: "xero", actionType: "write", action: "purchase_order" })`
- CLI: `npx zapier-sdk run-action xero write purchase_order`

##### Create Repeating Sales Invoice
Creates a template that generates regular invoices.

- Type: write · Key: `repeating_sales_invoice`
- Requires: organization, contact_id, schedule_unit, schedule_period, schedule_due_date_type, schedule_due_date, schedule_start_date, status
- Optional: schedule_help_text, schedule_end_date, currency, branding_theme, reference, approved_for_sending, send_copy, include_pdf, line_items_type, shipping_cost_copy, shipping_cost, shipping_cost_description, shipping_cost_tax_type
- SDK: `runAction({ app: "xero", actionType: "write", action: "repeating_sales_invoice" })`
- CLI: `npx zapier-sdk run-action xero write repeating_sales_invoice`

##### Update Employee
Updates an existing employee in Xero. (Exclusively for Australian Instances)

- Type: write · Key: `update_employee`
- Requires: organization, EmployeeID, FirstName, LastName, DateOfBirth, Email
- Optional: info, MiddleNames, Title, Gender, Phone, Mobile, TwitterUserName, JobTitle, Classification, TerminationDate, TerminationReason, IncomeType, EmploymentType, Status, copyEmployment, EmploymentBasis, StartDate, PayrollCalendarID, EmployeeGroupName, IsAuthorisedToApproveLeave, IsAuthorisedToApproveTimesheets, SuperFundID, EmployeeNumber, copyTaxDeclaration, TaxFileNumber, TFNExemptionType, ResidencyStatus, TaxScaleType, TaxOffsetEstimatedAmount, UpwardVariationTaxWithholdingAmount, ApprovedWithholdingVariationPercentage, copyBankAccount, StatementText, AccountName, BSB, AccountNumber, Remainder, copyAddress, AddressLine1, AddressLine2, City, Region, PostalCode, Country
- SDK: `runAction({ app: "xero", actionType: "write", action: "update_employee" })`
- CLI: `npx zapier-sdk run-action xero write update_employee`

##### Update Purchase Order
Updates an existing Purchase Order.

- Type: write · Key: `update_purchase_order`
- Requires: organization, order_id
- Optional: ContactID, line_items_update_type, date, delivery_date, LineAmountTypes, PurchaseOrderNumber, Reference, BrandingThemeID, CurrencyCode, Status, SentToContact, DeliveryAddress, AttentionTo, Telephone, DeliveryInstructions, expected_arrival_date
- SDK: `runAction({ app: "xero", actionType: "write", action: "update_purchase_order" })`
- CLI: `npx zapier-sdk run-action xero write update_purchase_order`

##### Update Quote
Updates an existing quote.

- Type: write · Key: `update_quote`
- Requires: organization, quote_id, contact_id
- Optional: quote_number, status, date, expiry_date, reference, branding_theme_id, title, summary, currency_code, line_amount_types, terms
- SDK: `runAction({ app: "xero", actionType: "write", action: "update_quote" })`
- CLI: `npx zapier-sdk run-action xero write update_quote`

##### Update Sales Invoice
Updates existing sales invoice (Accounts Receivable).

- Type: write · Key: `update_sales_invoice`
- Requires: organization, invoice_id
- Optional: info, contact_id, invoice_status, date, due_date, expected_payment_date, reference, branding_theme, url, currency, sent_to_contact, attachments, invoice_number, line_amount_types
- SDK: `runAction({ app: "xero", actionType: "write", action: "update_sales_invoice" })`
- CLI: `npx zapier-sdk run-action xero write update_sales_invoice`

##### Upload Attachment
Uploads an attachment to a selected Xero resource. Resources can have a maximum of 10 attachments.

- Type: write · Key: `upload_attachment`
- Requires: organization, endpoint, file
- SDK: `runAction({ app: "xero", actionType: "write", action: "upload_attachment" })`
- CLI: `npx zapier-sdk run-action xero write upload_attachment`

#### Queries (10)

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

##### Find Contact
Finds a contact by name or account number.

- Type: search · Key: `contact`
- Requires: organization, search_by
- SDK: `runAction({ app: "xero", actionType: "search", action: "contact" })`
- CLI: `npx zapier-sdk run-action xero search contact`

##### Find Credit Note
Finds a credit note by number or reference and retrieves its PDF.

- Type: search · Key: `credit_note_search`
- Requires: organization, search_by
- SDK: `runAction({ app: "xero", actionType: "search", action: "credit_note_search" })`
- CLI: `npx zapier-sdk run-action xero search credit_note_search`

##### Find Employee
Finds an employee based on email.

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

##### Find Invoice by ID
Find a specific invoice using its unique Invoice ID.

- Type: search · Key: `find_invoice_by_id`
- Requires: organization, invoice_id
- Optional: include_pdf, include_online_url
- SDK: `runAction({ app: "xero", actionType: "search", action: "find_invoice_by_id" })`
- CLI: `npx zapier-sdk run-action xero search find_invoice_by_id`

##### Find Purchase Order
Finds a Purchase Order

- Type: search · Key: `find_purchase_order`
- Requires: organization, search_by, search_value
- SDK: `runAction({ app: "xero", actionType: "search", action: "find_purchase_order" })`
- CLI: `npx zapier-sdk run-action xero search find_purchase_order`

##### Find Quote
Finds quotes, optionally filtered by contact, quote number, or status.

- Type: search · Key: `find_quote`
- Requires: organization
- Optional: contact_id, quote_number, status
- SDK: `runAction({ app: "xero", actionType: "search", action: "find_quote" })`
- CLI: `npx zapier-sdk run-action xero search find_quote`

##### Get Invoice History
Returns a list of History Records for a given Invoice ID.

- Type: search · Key: `invoice_history`
- Requires: organization, invoice_id
- SDK: `runAction({ app: "xero", actionType: "search", action: "invoice_history" })`
- CLI: `npx zapier-sdk run-action xero search invoice_history`

##### Find Invoice
Finds an invoice by number or reference.

- Type: search · Key: `invoice_v2`
- Requires: organization, search_by
- Optional: include_online_invoice_url
- SDK: `runAction({ app: "xero", actionType: "search", action: "invoice_v2" })`
- CLI: `npx zapier-sdk run-action xero search invoice_v2`

##### Find Item
Finds an item by name or code.

- Type: search · Key: `item`
- Requires: organization, search_by
- SDK: `runAction({ app: "xero", actionType: "search", action: "item" })`
- CLI: `npx zapier-sdk run-action xero search item`

##### Find Payment
Finds a payment by ID or reference.

- Type: search · Key: `payment`
- Requires: organization, search_by
- SDK: `runAction({ app: "xero", actionType: "search", action: "payment" })`
- CLI: `npx zapier-sdk run-action xero search payment`

#### Search or Write Actions (2)

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

##### Find or Create Contact
Finds or creates a specific contact.

- Type: search_or_write · Key: `contact`
- Requires: organization, search_by, name
- Optional: account_number, sales_default_account_code, purchases_default_account_code, contact_copy, first_name, last_name, email_address, contact_person__first_name, contact_person__last_name, contact_person__email_address, contact_person__include_in_emails, phone__country_code, phone__area_code, phone__number, fax__country_code, fax__area_code, fax__number, mobile__country_code, mobile__area_code, mobile__number, direct_dial__country_code, direct_dial__area_code, direct_dial__number, address__type_of, address__attn, address__line1, address__line2, address__city, address__region, address__postal_code, address__country, tax_number, bank_account_details, groups, contact_number, company_number, payment_terms__sales__days, payment_terms__sales__type, payment_terms__purchases__days, payment_terms__purchases__type
- SDK: `runAction({ app: "xero", actionType: "search_or_write", action: "contact" })`
- CLI: `npx zapier-sdk run-action xero search_or_write contact`

##### Find or Create Item
Finds or creates an item.

- Type: search_or_write · Key: `item`
- Requires: organization, search_by, item_code
- Optional: is_sold, is_purchased, item_name
- SDK: `runAction({ app: "xero", actionType: "search_or_write", action: "item" })`
- CLI: `npx zapier-sdk run-action xero search_or_write item`

## Frequently asked questions about automating with Karlia and Xero

### 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
- Karlia integrations: zapier.com/apps/karlia/integrations.md
- Xero integrations: zapier.com/apps/xero/integrations.md
- Full page: zapier.com/apps/karlia/integrations/xero
- SDK: npmjs.com/package/@zapier/zapier-sdk