Community生产力与协作github.com

ComposioHQ/Xero-Automation

Xero 自动化:管理 Xero 中的发票、联系人、付款、银行交易和账户,实现云端记账。

Xero-Automation 是什么?

该技能通过 Composio 的工具箱集成,使 AI 代理能够自动化 Xero 会计操作。支持管理发票(列出、筛选)、联系人(检索、搜索)、付款(关联发票与银行账户)、银行交易(记录支出/收入)以及账户科目表。适用于需要无代码自动记账的小型企业场景。支持多租户组织管理,需通过 Rube MCP 服务器连接。核心功能包括 OData 筛选、分页、多租户路由。已知限制:高流量账户中某些 `where` 过滤器可能被拒绝,日期必须使用 `YYYY-MM-DD` 格式,分页是必需的。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/xero-automation

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Xero 自动化

自动化 Xero 会计操作,包括管理发票、联系人、付款、银行交易和账户科目表,用于小型企业记账。

工具箱文档: composio.dev/toolkits/xero


设置

此技能需要连接 Rube MCP 服务器,地址为 https://rube.app/mcp。

在执行任何工具之前,确保 xero 工具箱存在活动连接。如果没有活动连接,请通过 RUBE_MANAGE_CONNECTIONS 发起一个连接。

多租户: 如果您管理多个 Xero 组织,请先调用 XERO_GET_CONNECTIONS 列出活动租户,并获取正确的 tenant_id 用于后续调用。


核心工作流

1. 列出并筛选发票

检索发票,支持按状态、联系人、日期范围和分页进行筛选。

工具: XERO_LIST_INVOICES

关键参数:

  • Statuses -- 逗号分隔的状态筛选:"DRAFT", "SUBMITTED", "AUTHORISED", "PAID"
  • ContactIDs -- 逗号分隔的联系人 ID,用于筛选
  • InvoiceIDs -- 逗号分隔的发票 ID,用于筛选
  • where -- OData 风格的筛选条件,例如 "Status==\"AUTHORISED\" AND Total>100"
  • order -- 排序表达式,例如 "Date DESC", "InvoiceNumber ASC"
  • page -- 分页页码
  • If-Modified-Since -- UTC 时间戳;仅返回自此日期后修改的发票
  • tenant_id -- Xero 组织 ID(如果省略,则使用第一个租户)

示例:

工具: XERO_LIST_INVOICES
参数:
  Statuses: "AUTHORISED,PAID"
  order: "Date DESC"
  page: 1

2. 管理联系人

检索和搜索联系人,用于发票和交易。

工具: XERO_GET_CONTACTS

关键参数:

  • searchTerm -- 不区分大小写的搜索,范围包括 Name、FirstName、LastName、Email、ContactNumber
  • ContactID -- 通过 ID 获取单个联系人
  • where -- OData 筛选条件,例如 "ContactStatus==\"ACTIVE\""
  • page, pageSize -- 分页控制
  • order -- 排序,例如 "UpdatedDateUTC DESC"
  • includeArchived -- 如果为 true,则包括已归档的联系人
  • summaryOnly -- 如果为 true,返回轻量级响应

示例:

工具: XERO_GET_CONTACTS
参数:
  searchTerm: "acme"
  page: 1
  pageSize: 25

注意: 在高流量账户上,某些 where 筛选条件(例如 IsCustomer, IsSupplier)可能会被 Xero 拒绝。请回退使用 searchTerm 或分页。


3. 创建付款

通过创建付款记录,将发票关联到银行账户。

工具: XERO_CREATE_PAYMENT

关键参数:

  • InvoiceID(必需)-- 付款适用的 Xero 发票 ID
  • AccountID(必需)-- 付款的银行账户 ID
  • Amount(必需)-- 付款金额(数字)
  • Date -- 付款日期,格式为 YYYY-MM-DD
  • Reference -- 付款参考或描述
  • CurrencyRate -- 外币付款的汇率

示例:

工具: XERO_CREATE_PAYMENT
参数:
  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. 创建银行交易

记录支出(付款)或收入(收款)银行交易。

工具: XERO_CREATE_BANK_TRANSACTION

关键参数:

  • Type(必需)-- "SPEND"(支出)或 "RECEIVE"(收入)
  • ContactID(必需)-- Xero 联系人 ID
  • BankAccountCode(必需)-- 科目表中的银行账户代码
  • LineItems(必需)-- 行项目数组,每个项目包含:
    • Description(必需)-- 行项目描述
    • UnitAmount(必需)-- 单价
    • AccountCode(必需)-- 用于分类的账户代码
    • Quantity -- 数量(默认 1)
    • TaxType -- 税类型:"OUTPUT", "INPUT", "NONE"
  • Date -- 交易日期,格式为 YYYY-MM-DD
  • Reference -- 交易参考
  • Status -- "AUTHORISED" 或 "DELETED"
  • CurrencyCode -- 例如 "USD", "EUR"

示例:

工具: XERO_CREATE_BANK_TRANSACTION
参数:
  Type: "SPEND"
  ContactID: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  BankAccountCode: "090"
  LineItems: [
    {
      "Description": "办公用品",
      "UnitAmount": 75.00,
      "AccountCode": "429",
      "Quantity": 1,
      "TaxType": "INPUT"
    }
  ]
  Date: "2026-02-11"
  Reference: "2月办公用品"

5. 列出付款和银行交易

查看现有的付款和银行交易历史。

工具:

  • XERO_LIST_PAYMENTS -- 列出将发票关联到银行交易的付款
  • XERO_LIST_BANK_TRANSACTIONS -- 列出支出/收入银行交易

通用参数:

  • where -- OData 筛选条件,例如 "Status==\"AUTHORISED\""
  • order -- 排序表达式,例如 "Date DESC"
  • page -- 分页页码
  • If-Modified-Since -- 自时间戳以来的增量更新
  • tenant_id -- 组织 ID

6. 查看科目表和连接

工具:

  • XERO_LIST_ACCOUNTS -- 检索所有账户代码,用于交易分类
  • XERO_GET_CONNECTIONS -- 列出活动 Xero 租户连接
  • XERO_LIST_ATTACHMENTS -- 列出实体(发票、联系人等)上的附件

已知陷阱

陷阱详情
多租户路由如果省略 tenant_id,将使用第一个连接的租户。管理多个组织时,请始终通过 XERO_GET_CONNECTIONS 验证正确的租户。
高流量筛选拒绝在大型账户上,某些 where 筛选条件(如 IsCustomer/IsSupplier)可能会被拒绝。请回退使用 searchTerm 和分页。
OData 筛选语法在 OData 筛选条件中使用双等号(==),例如 Status==\"AUTHORISED\"。单个 = 会导致错误。
必须分页大多数列表端点会进行分页。始终检查是否有更多页面,并继续获取直到完成。
日期格式所有日期必须使用 YYYY-MM-DD 格式。If-Modified-Since 的时间戳必须是完整的 ISO 8601 UTC 日期时间。
银行账户代码银行交易中的 BankAccountCode 必须与科目表中的有效代码匹配。使用 XERO_LIST_ACCOUNTS 发现有效代码。

快速参考

工具 Slug描述
XERO_LIST_INVOICES列出发票,支持筛选和分页
XERO_GET_CONTACTS检索和搜索联系人
XERO_CREATE_PAYMENT创建将发票关联到银行账户的付款
XERO_CREATE_BANK_TRANSACTION记录支出或收入银行交易
XERO_LIST_PAYMENTS列出付款记录
XERO_LIST_BANK_TRANSACTIONS列出银行交易
XERO_LIST_ACCOUNTS检索科目表
XERO_GET_CONNECTIONS列出活动 Xero 租户连接
XERO_LIST_ATTACHMENTS列出实体上的附件

由 Composio 提供支持

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相关技能