{"data":{"slug":"github-composiohq-awesome-claude-skills-composio-skills-xero-automation-1ea9108d1b91","title":"Xero Automation: Invoice & Payment Management","summary":"Automate Xero accounting tasks like invoice management, contact lookup, and payment processing for efficient bookkeeping. This includes retrieving and filtering invoices, searching for contacts, creating payments, and recording bank transactions.","url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-xero-automation-1ea9108d1b91","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-composiohq-awesome-claude-skills-composio-skills-xero-automation-1ea9108d1b91","markdown_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-xero-automation-1ea9108d1b91.md","download_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-xero-automation-1ea9108d1b91\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"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`. For multi-tenant environments, first call `XERO_GET_CONNECTIONS` to list active tenants and obtain the correct `tenant_id` for subsequent calls.","instructions":"---\nname: Xero Automation\ndescription: \"Xero Automation: manage invoices, contacts, payments, bank transactions, and accounts in Xero for cloud-based bookkeeping\"\nrequires:\n  mcp: [rube]\n---\n\n# Xero Automation\n\nAutomate Xero accounting operations including managing invoices, contacts, payments, bank transactions, and chart of accounts for small business bookkeeping.\n\n**Toolkit docs:** [composio.dev\/toolkits\/xero](https:\/\/composio.dev\/toolkits\/xero)\n\n---\n\n## Setup\n\nThis skill requires the **Rube MCP server** connected at `https:\/\/rube.app\/mcp`.\n\nBefore executing any tools, ensure an active connection exists for the `xero` toolkit. If no connection is active, initiate one via `RUBE_MANAGE_CONNECTIONS`.\n\n**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.\n\n---\n\n## Core Workflows\n\n### 1. List and Filter Invoices\n\nRetrieve invoices with filtering by status, contact, date range, and pagination.\n\n**Tool:** `XERO_LIST_INVOICES`\n\n**Key Parameters:**\n- `Statuses` -- Comma-separated status filter: `\"DRAFT\"`, `\"SUBMITTED\"`, `\"AUTHORISED\"`, `\"PAID\"`\n- `ContactIDs` -- Comma-separated Contact IDs to filter by\n- `InvoiceIDs` -- Comma-separated Invoice IDs to filter by\n- `where` -- OData-style filter, e.g., `\"Status==\\\"AUTHORISED\\\" AND Total>100\"`\n- `order` -- Sort expression, e.g., `\"Date DESC\"`, `\"InvoiceNumber ASC\"`\n- `page` -- Page number for pagination\n- `If-Modified-Since` -- UTC timestamp; returns only invoices modified since this date\n- `tenant_id` -- Xero organization ID (uses first tenant if omitted)\n\n**Example:**\n```\nTool: XERO_LIST_INVOICES\nArguments:\n  Statuses: \"AUTHORISED,PAID\"\n  order: \"Date DESC\"\n  page: 1\n```\n\n---\n\n### 2. Manage Contacts\n\nRetrieve and search contacts for use in invoices and transactions.\n\n**Tool:** `XERO_GET_CONTACTS`\n\n**Key Parameters:**\n- `searchTerm` -- Case-insensitive search across Name, FirstName, LastName, Email, ContactNumber\n- `ContactID` -- Fetch a single contact by ID\n- `where` -- OData filter, e.g., `\"ContactStatus==\\\"ACTIVE\\\"\"`\n- `page`, `pageSize` -- Pagination controls\n- `order` -- Sort, e.g., `\"UpdatedDateUTC DESC\"`\n- `includeArchived` -- Include archived contacts when `true`\n- `summaryOnly` -- Lightweight response when `true`\n\n**Example:**\n```\nTool: XERO_GET_CONTACTS\nArguments:\n  searchTerm: \"acme\"\n  page: 1\n  pageSize: 25\n```\n\n> **Note:** On high-volume accounts, some `where` filters (e.g., `IsCustomer`, `IsSupplier`) may be rejected by Xero. Fall back to `searchTerm` or pagination.\n\n---\n\n### 3. Create Payments\n\nLink an invoice to a bank account by creating a payment record.\n\n**Tool:** `XERO_CREATE_PAYMENT`\n\n**Key Parameters:**\n- `InvoiceID` (required) -- Xero Invoice ID the payment applies to\n- `AccountID` (required) -- Bank account ID for the payment\n- `Amount` (required) -- Payment amount (number)\n- `Date` -- Payment date in `YYYY-MM-DD` format\n- `Reference` -- Payment reference or description\n- `CurrencyRate` -- Exchange rate for foreign currency payments\n\n**Example:**\n```\nTool: XERO_CREATE_PAYMENT\nArguments:\n  InvoiceID: \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n  AccountID: \"b2c3d4e5-f6a7-8901-bcde-f12345678901\"\n  Amount: 1500.00\n  Date: \"2026-02-11\"\n  Reference: \"Payment for INV-0042\"\n```\n\n---\n\n### 4. Create Bank Transactions\n\nRecord spend (payments out) or receive (money in) bank transactions.\n\n**Tool:** `XERO_CREATE_BANK_TRANSACTION`\n\n**Key Parameters:**\n- `Type` (required) -- `\"SPEND\"` (payment out) or `\"RECEIVE\"` (money in)\n- `ContactID` (required) -- Xero Contact ID\n- `BankAccountCode` (required) -- Bank account code from chart of accounts\n- `LineItems` (required) -- Array of line items, each with:\n  - `Description` (required) -- Line item description\n  - `UnitAmount` (required) -- Unit price\n  - `AccountCode` (required) -- Account code for categorization\n  - `Quantity` -- Quantity (default 1)\n  - `TaxType` -- Tax type: `\"OUTPUT\"`, `\"INPUT\"`, `\"NONE\"`\n- `Date` -- Transaction date in `YYYY-MM-DD` format\n- `Reference` -- Transaction reference\n- `Status` -- `\"AUTHORISED\"` or `\"DELETED\"`\n- `CurrencyCode` -- e.g., `\"USD\"`, `\"EUR\"`\n\n**Example:**\n```\nTool: XERO_CREATE_BANK_TRANSACTION\nArguments:\n  Type: \"SPEND\"\n  ContactID: \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n  BankAccountCode: \"090\"\n  LineItems: [\n    {\n      \"Description\": \"Office supplies\",\n      \"UnitAmount\": 75.00,\n      \"AccountCode\": \"429\",\n      \"Quantity\": 1,\n      \"TaxType\": \"INPUT\"\n    }\n  ]\n  Date: \"2026-02-11\"\n  Reference: \"Feb office supplies\"\n```\n\n---\n\n### 5. List Payments and Bank Transactions\n\nReview existing payments and bank transaction history.\n\n**Tools:**\n- `XERO_LIST_PAYMENTS` -- List payments linking invoices to bank transactions\n- `XERO_LIST_BANK_TRANSACTIONS` -- List spend\/receive bank transactions\n\n**Common Parameters:**\n- `where` -- OData filter, e.g., `\"Status==\\\"AUTHORISED\\\"\"`\n- `order` -- Sort expression, e.g., `\"Date DESC\"`\n- `page` -- Page number for pagination\n- `If-Modified-Since` -- Incremental updates since timestamp\n- `tenant_id` -- Organization ID\n\n---\n\n### 6. View Chart of Accounts and Connections\n\n**Tools:**\n- `XERO_LIST_ACCOUNTS` -- Retrieve all account codes for categorizing transactions\n- `XERO_GET_CONNECTIONS` -- List active Xero tenant connections\n- `XERO_LIST_ATTACHMENTS` -- List attachments on an entity (invoice, contact, etc.)\n\n---\n\n## Known Pitfalls\n\n| Pitfall | Detail |\n|---------|--------|\n| **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. |\n| **High-volume filter rejection** | On large accounts, some `where` filters like `IsCustomer`\/`IsSupplier` may be rejected. Fall back to `searchTerm` with pagination. |\n| **OData filter syntax** | Use double-equals (`==`) in OData filters, e.g., `Status==\\\"AUTHORISED\\\"`. Single `=` causes errors. |\n| **Pagination required** | Most list endpoints paginate results. Always check for additional pages and continue fetching until complete. |\n| **Date format** | All dates must be in `YYYY-MM-DD` format. Timestamps for `If-Modified-Since` must be full ISO 8601 UTC datetime. |\n| **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. |\n\n---\n\n## Quick Reference\n\n| Tool Slug | Description |\n|-----------|-------------|\n| `XERO_LIST_INVOICES` | List invoices with filtering and pagination |\n| `XERO_GET_CONTACTS` | Retrieve and search contacts |\n| `XERO_CREATE_PAYMENT` | Create a payment linking invoice to bank account |\n| `XERO_CREATE_BANK_TRANSACTION` | Record a spend or receive bank transaction |\n| `XERO_LIST_PAYMENTS` | List payment records |\n| `XERO_LIST_BANK_TRANSACTIONS` | List bank transactions |\n| `XERO_LIST_ACCOUNTS` | Retrieve chart of accounts |\n| `XERO_GET_CONNECTIONS` | List active Xero tenant connections |\n| `XERO_LIST_ATTACHMENTS` | List attachments on an entity |\n\n---\n\n*Powered by [Composio](https:\/\/composio.dev)*\n","use_cases":["Retrieve and filter invoices by status, contact, or date range.","Search for contacts to use in invoices and transactions.","Create payments for invoices using bank accounts.","Record bank transactions for spend or receive activities."],"limitations":[],"compatibility":[],"setup_tip":"This skill requires the **Rube MCP server** connected at `https:\/\/rube.app\/mcp`.\n\nBefore executing any tools, ensure an active connection exists for the `xero` toolkit. If no connection is active, initiate one via `RUBE_MANAGE_CONNECTIONS`.\n\n**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.\n\n---","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/ComposioHQ\/awesome-claude-skills\/blob\/be2a406907dbc61b73e6827ded415c96139d13a2\/composio-skills\/xero-automation\/SKILL.md","source_commit":"be2a406907dbc61b73e6827ded415c96139d13a2","license":null,"version":null,"listing_approved_at":"2026-11-21","created_at":"2026-11-20T12:40:33.000000Z","updated_at":"2026-11-21T09:43:38.000000Z","seo_title":"Xero Automation: Invoice & Payment Management","seo_description":"Streamline Xero accounting with automated invoice management, contact lookup, and payment processing for small businesses.","seo_keywords":["Xero invoice management","Xero payment processing","Xero contact lookup","Xero bank transactions","Xero accounting automation"]}}