跳到正文
Skillpedia
自动化77k · #2558

Xero Automation

它能做什么

这个工具可以帮你管理 Xero 中的财务数据,例如发票、联系人和付款记录。它能为小型企业自动完成记账工作。

适用场景

  • ✓需要查看所有已付款的发票时。
  • ✓想记录一笔新的账单付款时。
  • ✓需要查找某个特定联系人时。

技能链接

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/xero-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/xero-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“列出所有已授权且已付款的发票,并按日期从近到远排序。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会连接到你的 Xero 账号,读取或修改其中的财务信息。它会使用特定指令来搜索、创建或更新发票、联系人等数据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Xero Automation

Automate Xero accounting operations including managing invoices, contacts, payments, bank transactions, and chart of accounts for small business bookkeeping.

Toolkit docs: composio.dev/toolkits/xero


Setup

This skill requires the Rube MCP server connected at https://rube.app/mcp.

Before executing any tools, ensure an active connection exists for the xero toolkit. If no connection is active, initiate one via RUBE_MANAGE_CONNECTIONS.

Multi-tenant: If you manage multiple Xero organizations, first call XERO_GET_CONNECTIONS to list active tenants and obtain the correct tenant_id for subsequent calls.


Core Workflows

1. List and Filter Invoices

Retrieve invoices with filtering by status, contact, date range, and pagination.

Tool: XERO_LIST_INVOICES

Key Parameters:

  • Statuses -- Comma-separated status filter: "DRAFT", "SUBMITTED", "AUTHORISED", "PAID"
  • ContactIDs -- Comma-separated Contact IDs to filter by
  • InvoiceIDs -- Comma-separated Invoice IDs to filter by
  • where -- OData-style filter, e.g., "Status==\"AUTHORISED\" AND Total>100"
  • order -- Sort expression, e.g., "Date DESC", "InvoiceNumber ASC"
  • page -- Page number for pagination
  • If-Modified-Since -- UTC timestamp; returns only invoices modified since this date
  • tenant_id -- Xero organization ID (uses first tenant if omitted)

Example:

Tool: XERO_LIST_INVOICES
Arguments:
  Statuses: "AUTHORISED,PAID"
  order: "Date DESC"
  page: 1

2. Manage Contacts

Retrieve and search contacts for use in invoices and transactions.

Tool: XERO_GET_CONTACTS

Key Parameters:

  • searchTerm -- Case-insensitive search across Name, FirstName, LastName, Email, ContactNumber
  • ContactID -- Fetch a single contact by ID
  • where -- OData filter, e.g., "ContactStatus==\"ACTIVE\""
  • page, pageSize -- Pagination controls
  • order -- Sort, e.g., "UpdatedDateUTC DESC"
  • includeArchived -- Include archived contacts when true
  • summaryOnly -- Lightweight response when true

Example:

Tool: XERO_GET_CONTACTS
Arguments:
  searchTerm: "acme"
  page: 1
  pageSize: 25

Note: On high-volume accounts, some where filters (e.g., IsCustomer, IsSupplier) may be rejected by Xero. Fall back to searchTerm or pagination.


3. Create Payments

Link an invoice to a bank account by creating a payment record.

Tool: XERO_CREATE_PAYMENT

Key Parameters:

  • InvoiceID (required) -- Xero Invoice ID the payment applies to
  • AccountID (required) -- Bank account ID for the payment
  • Amount (required) -- Payment amount (number)
  • Date -- Payment date in YYYY-MM-DD format
  • Reference -- Payment reference or description
  • CurrencyRate -- Exchange rate for foreign currency payments

Example:

Tool: XERO_CREATE_PAYMENT
Arguments:
  InvoiceID: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  AccountID: "b2c3d4e5-f6a7-8901-bcde-f12345678901"
  Amount: 1500.00
  Date: "2026-02-11"
  Reference: "Payment for INV-0042"

4. Create Bank Transactions

Record spend (payments out) or receive (money in) bank transactions.

Tool: XERO_CREATE_BANK_TRANSACTION

Key Parameters:

  • Type (required) -- "SPEND" (payment out) or "RECEIVE" (money in)
  • ContactID (required) -- Xero Contact ID
  • BankAccountCode (required) -- Bank account code from chart of accounts
  • LineItems (required) -- Array of line items, each with:
    • Description (required) -- Line item description
    • UnitAmount (required) -- Unit price
    • AccountCode (required) -- Account code for categorization
    • Quantity -- Quantity (default 1)
    • TaxType -- Tax type: "OUTPUT", "INPUT", "NONE"
  • Date -- Transaction date in YYYY-MM-DD format
  • Reference -- Transaction reference
  • Status -- "AUTHORISED" or "DELETED"
  • CurrencyCode -- e.g., "USD", "EUR"

Example:

Tool: XERO_CREATE_BANK_TRANSACTION
Arguments:
  Type: "SPEND"
  ContactID: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  BankAccountCode: "090"
  LineItems: [
    {
      "Description": "Office supplies",
      "UnitAmount": 75.00,
      "AccountCode": "429",
      "Quantity": 1,
      "TaxType": "INPUT"
    }
  ]
  Date: "2026-02-11"
  Reference: "Feb office supplies"

5. List Payments and Bank Transactions

Review existing payments and bank transaction history.

Tools:

…

常见问题

什么是 'tenant_id'?

它是你所连接的每个 Xero 组织的唯一标识符。如果你在 Xero 中管理多家公司,正确使用它非常重要。

我怎么记录一笔支出?

使用创建银行交易的指令,类型设为 'SPEND',并提供联系人、银行账户和项目明细。

如果我没有指定 'tenant_id' 会怎样?

工具会默认使用第一个已连接的 Xero 账号。如果你连接了多个账号,最好先核实并指定正确的 'tenant_id',以免出错。

详情

作者的原始描述

Xero Automation: manage invoices, contacts, payments, bank transactions, and accounts in Xero for cloud-based bookkeeping

repo: ComposioHQ/awesome-claude-skills

热度

GitHub 星标
77k
排名
#2558
许可证
—
更新时间
2026/9/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能