Xero Automation by composiohq/awesome-claude-skills
npx skills add https://github.com/composiohq/awesome-claude-skills --skill 'Xero Automation'自动化 Xero 会计操作,包括管理发票、联系人、付款、银行交易和会计科目表,适用于小型企业记账。
工具包文档: composio.dev/toolkits/xero
此技能要求连接至 https://rube.app/mcp 的 Rube MCP 服务器。
在执行任何工具之前,请确保 xero 工具包存在活跃连接。如果没有活跃连接,请通过 RUBE_MANAGE_CONNECTIONS 启动一个。
多租户: 如果您管理多个 Xero 组织,请首先调用 XERO_GET_CONNECTIONS 以列出活跃租户,并为后续调用获取正确的 tenant_id。
检索发票,可按状态、联系人、日期范围和分页进行筛选。
工具: XERO_LIST_INVOICES
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
关键参数:
Statuses -- 逗号分隔的状态筛选器:"DRAFT"、"SUBMITTED"、"AUTHORISED"、"PAID"ContactIDs -- 用于筛选的逗号分隔的联系人 IDInvoiceIDs -- 用于筛选的逗号分隔的发票 IDwhere -- OData 风格的筛选器,例如 "Status==\"AUTHORISED\" AND Total>100"order -- 排序表达式,例如 "Date DESC"、"InvoiceNumber ASC"page -- 用于分页的页码If-Modified-Since -- UTC 时间戳;仅返回自此日期之后修改的发票tenant_id -- Xero 组织 ID(如果省略,则使用第一个租户)示例:
Tool: XERO_LIST_INVOICES
Arguments:
Statuses: "AUTHORISED,PAID"
order: "Date DESC"
page: 1
检索和搜索联系人,用于发票和交易。
工具: XERO_GET_CONTACTS
关键参数:
searchTerm -- 在 Name、FirstName、LastName、Email、ContactNumber 字段上进行不区分大小写的搜索ContactID -- 按 ID 获取单个联系人where -- OData 筛选器,例如 "ContactStatus==\"ACTIVE\""page、pageSize -- 分页控制order -- 排序,例如 "UpdatedDateUTC DESC"includeArchived -- 当为 true 时包含已归档的联系人summaryOnly -- 当为 true 时返回轻量级响应示例:
Tool: XERO_GET_CONTACTS
Arguments:
searchTerm: "acme"
page: 1
pageSize: 25
注意: 在数据量大的账户上,某些
where筛选器(例如IsCustomer、IsSupplier)可能会被 Xero 拒绝。请回退到使用searchTerm或分页。
通过创建付款记录,将发票与银行账户关联。
工具: XERO_CREATE_PAYMENT
关键参数:
InvoiceID (必需)-- 付款所对应的 Xero 发票 IDAccountID (必需)-- 付款的银行账户 IDAmount (必需)-- 付款金额(数字)Date -- 付款日期,格式为 YYYY-MM-DDReference -- 付款参考或描述CurrencyRate -- 外币付款的汇率示例:
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"
记录支出(付款)或收入(收款)银行交易。
工具: XERO_CREATE_BANK_TRANSACTION
关键参数:
Type (必需)-- "SPEND"(付款)或 "RECEIVE"(收款)ContactID (必需)-- Xero 联系人 IDBankAccountCode (必需)-- 来自会计科目表的银行账户代码LineItems (必需)-- 行项目数组,每个包含:
Description (必需)-- 行项目描述UnitAmount (必需)-- 单价AccountCode (必需)-- 用于分类的账户代码Quantity -- 数量(默认为 1)TaxType -- 税务类型:"OUTPUT"、"INPUT"、"NONE"Date -- 交易日期,格式为 YYYY-MM-DDReference -- 交易参考Status -- "AUTHORISED" 或 "DELETED"CurrencyCode -- 例如 "USD"、"EUR"示例:
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"
查看现有的付款和银行交易历史。
工具:
XERO_LIST_PAYMENTS -- 列出将发票与银行交易关联的付款XERO_LIST_BANK_TRANSACTIONS -- 列出支出/收款银行交易通用参数:
where -- OData 筛选器,例如 "Status==\"AUTHORISED\""order -- 排序表达式,例如 "Date DESC"page -- 用于分页的页码If-Modified-Since -- 自时间戳以来的增量更新tenant_id -- 组织 ID工具:
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 来发现有效代码。 |
| 工具标识 | 描述 |
|---|---|
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 提供支持
每周安装次数
0
代码仓库
GitHub 星标数
43.1K
首次出现
1970年1月1日
安全审计
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
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.
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 byInvoiceIDs -- Comma-separated Invoice IDs to filter bywhere -- OData-style filter, e.g., "Status==\"AUTHORISED\" AND Total>100"order -- Sort expression, e.g., "Date DESC", Example:
Tool: XERO_LIST_INVOICES
Arguments:
Statuses: "AUTHORISED,PAID"
order: "Date DESC"
page: 1
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, ContactNumberContactID -- Fetch a single contact by IDwhere -- OData filter, e.g., "ContactStatus==\"ACTIVE\""page, pageSize -- Pagination controlsorder -- Sort, e.g., "UpdatedDateUTC DESC"includeArchived -- Include archived contacts when trueExample:
Tool: XERO_GET_CONTACTS
Arguments:
searchTerm: "acme"
page: 1
pageSize: 25
Note: On high-volume accounts, some
wherefilters (e.g.,IsCustomer,IsSupplier) may be rejected by Xero. Fall back tosearchTermor pagination.
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 toAccountID (required) -- Bank account ID for the paymentAmount (required) -- Payment amount (number)Date -- Payment date in YYYY-MM-DD formatReference -- Payment reference or descriptionCurrencyRate -- Exchange rate for foreign currency paymentsExample:
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"
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 IDBankAccountCode (required) -- Bank account code from chart of accountsLineItems (required) -- Array of line items, each with:
Description (required) -- Line item descriptionUnitAmount (required) -- Unit priceAccountCode (required) -- Account code for categorizationQuantity -- Quantity (default 1)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"
Review existing payments and bank transaction history.
Tools:
XERO_LIST_PAYMENTS -- List payments linking invoices to bank transactionsXERO_LIST_BANK_TRANSACTIONS -- List spend/receive bank transactionsCommon Parameters:
where -- OData filter, e.g., "Status==\"AUTHORISED\""order -- Sort expression, e.g., "Date DESC"page -- Page number for paginationIf-Modified-Since -- Incremental updates since timestamptenant_id -- Organization IDTools:
XERO_LIST_ACCOUNTS -- Retrieve all account codes for categorizing transactionsXERO_GET_CONNECTIONS -- List active Xero tenant connectionsXERO_LIST_ATTACHMENTS -- List attachments on an entity (invoice, contact, etc.)| Pitfall | Detail |
|---|---|
| Multi-tenant routing | If tenant_id is omitted, the first connected tenant is used. Always verify the correct tenant with XERO_GET_CONNECTIONS when managing multiple organizations. |
| High-volume filter rejection | On large accounts, some where filters like IsCustomer/IsSupplier may be rejected. Fall back to searchTerm with pagination. |
| OData filter syntax | Use double-equals (==) in OData filters, e.g., . Single causes errors. |
| Tool Slug | Description |
|---|---|
XERO_LIST_INVOICES | List invoices with filtering and pagination |
XERO_GET_CONTACTS | Retrieve and search contacts |
XERO_CREATE_PAYMENT | Create a payment linking invoice to bank account |
XERO_CREATE_BANK_TRANSACTION | Record a spend or receive bank transaction |
XERO_LIST_PAYMENTS | List payment records |
XERO_LIST_BANK_TRANSACTIONS |
Powered byComposio
Weekly Installs
0
Repository
GitHub Stars
43.1K
First Seen
Jan 1, 1970
Security Audits
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
27,400 周安装
"InvoiceNumber ASC"page -- Page number for paginationIf-Modified-Since -- UTC timestamp; returns only invoices modified since this datetenant_id -- Xero organization ID (uses first tenant if omitted)summaryOnly -- Lightweight response when trueTaxType -- Tax type: "OUTPUT", "INPUT", "NONE"Date -- Transaction date in YYYY-MM-DD formatReference -- Transaction referenceStatus -- "AUTHORISED" or "DELETED"CurrencyCode -- e.g., "USD", "EUR"Status==\"AUTHORISED\"=| Pagination required | Most list endpoints paginate results. Always check for additional pages and continue fetching until complete. |
| Date format | All dates must be in YYYY-MM-DD format. Timestamps for If-Modified-Since must be full ISO 8601 UTC datetime. |
| Bank account codes | BankAccountCode in bank transactions must match a valid code from the chart of accounts. Use XERO_LIST_ACCOUNTS to discover valid codes. |
| List bank transactions |
XERO_LIST_ACCOUNTS | Retrieve chart of accounts |
XERO_GET_CONNECTIONS | List active Xero tenant connections |
XERO_LIST_ATTACHMENTS | List attachments on an entity |