Xero
v0.1.4Xero MCP server for invoices, contacts, payments, quotes, and financial reports.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
xero_sign_in
Sign in to Xero. Takes no parameters; call with {}. Rebel calls this when the person clicks Connect on the Xero connector. With a Xero Web app it opens Xero's sign-in page in the browser; with a Custom Connection it checks the connection works.
delete-timesheet
Delete an existing payroll timesheet in Xero by its ID.
| Parameter | Type | Description |
|---|---|---|
timesheetID * | string | The ID of the timesheet to delete. |
get-timesheet
Retrieve a single payroll timesheet from Xero by its ID. This provides details such as the timesheet ID, employee ID, start and end dates, total hours, and the last updated date.
| Parameter | Type | Description |
|---|---|---|
timesheetID * | string | The ID of the timesheet to retrieve. |
get-invoice-attachment-content
Download the content of a specific invoice attachment from Xero. Returns the file content as base64-encoded text along with MIME type and content length. Use list-invoice-attachments first to get the exact FileName and MIME type. The fileName must match exactly (case-sensitive). Requires the accounting.attachments.read scope on the Xero Custom Connection.
| Parameter | Type | Description |
|---|---|---|
contentType * | string | MIME type from list-invoice-attachments (e.g. application/pdf, image/png) |
fileName * | string | Exact filename from list-invoice-attachments |
invoiceId * | string | The Xero Invoice ID (UUID) |
create-contact
Create a contact in Xero. When a contact is created, a deep link to the contact in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
email | string | |
phone | string |
create-credit-note
Create a credit note in Xero. When a credit note is created, a deep link to the credit note in Xero is returned. This deep link can be used to view the credit note in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
lineItems * | array | |
reference | string |
create-manual-journal
Create a manual journal in Xero. Retrieve a list of account codes in Xero to use for the journal lines. Journal lines must contain at least two individual journal lines with account codes, use basic accounting account types pairing when not specified, and make sure journal line pairs have credit and debit balanced.
| Parameter | Type | Description |
|---|---|---|
manualJournalLines * | array | The manualJournalLines element must contain at least two individual manualJournalLine sub-elements |
narration * | string | Description of manual journal being posted |
date | string | Optional date in YYYY-MM-DD format |
lineAmountTypes | string | Optional line amount types (EXCLUSIVE, INCLUSIVE, NO_TAX), NO_TAX by default |
showOnCashBasisReports | boolean | Optional boolean to show on cash basis reports, default is true |
status | string | Optional status of the manual journal (DRAFT, POSTED, DELETED, VOIDED, ARCHIVED), DRAFT by default |
url | string | Optional URL link to a source document |
create-invoice
Create an invoice in Xero. When an invoice is created, a deep link to the invoice in Xero is returned. This deep link can be used to view the invoice in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The ID of the contact to create the invoice for. Can be obtained from the list-contacts tool. |
lineItems * | array | |
type * | string | The type of invoice to create. ACCREC is for sales invoices, Accounts Receivable, or customer invoices. ACCPAY is for purchase invoices, Accounts Payable invoices, supplier invoices, or bi… |
currencyCode | string | Optional invoice currency, such as USD. Only use a currency enabled in the connected Xero organisation. |
date | string | The date the invoice was created (YYYY-MM-DD format). |
reference | string | A reference number for the invoice. |
create-quote
Create a quote in Xero. When a quote is created, a deep link to the quote in Xero is returned. This deep link can be used to view the quote in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
lineItems * | array | |
quoteNumber | string | |
reference | string | |
summary | string | |
terms | string | |
title | string |
create-payment
Create a payment against an invoice in Xero. This tool records a payment transaction against an invoice. You'll need to provide the invoice ID, account ID to make the payment from, and the amount. The amount must be positive and should not exceed the remaining amount due on the invoice. A payment can only be created for an invoice that is status AUTHORIZED A payment can only be created for an invoice that is not fully paid When a payment is created, a deep link to the payment in Xero is returned. This deep link can be used to view the payment in Xero directly. This link should be displa…
| Parameter | Type | Description |
|---|---|---|
accountId * | string | The ID of the account the payment is made from |
amount * | number | The amount of the payment (must be positive) |
invoiceId * | string | The ID of the invoice to pay |
date | string | Optional payment date in YYYY-MM-DD format |
reference | string | Optional payment reference/description |
create-item
Create an item in Xero.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
name * | string | |
description | string | |
inventoryAssetAccountCode | string | |
isTrackedAsInventory | boolean | |
purchaseDescription | string | |
purchaseDetails | object | |
salesDetails | object |
create-bank-transaction
Create a bank transaction in Xero. When a bank transaction is created, a deep link to the bank transaction in Xero is returned. This deep link can be used to view the bank transaction in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
bankAccountId * | string | |
contactId * | string | |
lineItems * | array | |
type * | string | |
date | string | If no date is provided, the date will default to today's date |
reference | string |
create-timesheet
Create a new payroll timesheet in Xero. This allows you to specify details such as the employee ID, payroll calendar ID, start and end dates, and timesheet lines.
| Parameter | Type | Description |
|---|---|---|
employeeID * | string | The ID of the employee. |
endDate * | string | The end date of the timesheet period (YYYY-MM-DD). |
payrollCalendarID * | string | The ID of the payroll calendar. |
startDate * | string | The start date of the timesheet period (YYYY-MM-DD). |
timesheetLines | array | The lines of the timesheet. |
create-tracking-category
Create a tracking category in Xero.
| Parameter | Type | Description |
|---|---|---|
name * | string |
create-tracking-options
Create tracking options for a tracking category in Xero.
| Parameter | Type | Description |
|---|---|---|
optionNames * | array | |
trackingCategoryId * | string |
create-purchase-order
Create a purchase order in Xero for a supplier. The purchase order is created as DRAFT unless a status is specified.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The ID of the supplier contact to create the purchase order for. Can be obtained from the list-contacts tool. |
lineItems * | array | |
currencyCode | string | Optional purchase order currency, such as USD. Only use a currency enabled in the connected Xero organisation. |
date | string | The date the purchase order was issued (YYYY-MM-DD format). Defaults to today. |
deliveryDate | string | The date the goods are to be delivered (YYYY-MM-DD format). |
purchaseOrderNumber | string | A unique alpha-numeric code for the purchase order. When omitted, Xero auto-generates one from the organisation settings. |
reference | string | An additional reference for the purchase order. |
status | string | The status to create the purchase order with. Defaults to DRAFT. |
get-invoice-history
Retrieve the history (audit trail) for a specific invoice in Xero. Returns history records including dates, users, details, and changes.
| Parameter | Type | Description |
|---|---|---|
invoiceID * | string | The Xero invoice ID. |
add-invoice-note
Add a note to a specific invoice in Xero. Notes appear in the entity's history/audit trail. Notes are immutable once created.
| Parameter | Type | Description |
|---|---|---|
invoiceID * | string | The Xero invoice ID. |
note * | string | The note text to add. This is immutable and cannot be edited or deleted after creation. |
get-contact-history
Retrieve the history (audit trail) for a specific contact in Xero. Returns history records including dates, users, details, and changes.
| Parameter | Type | Description |
|---|---|---|
contactID * | string | The Xero contact ID. |
add-contact-note
Add a note to a specific contact in Xero. Notes appear in the entity's history/audit trail. Notes are immutable once created.
| Parameter | Type | Description |
|---|---|---|
contactID * | string | The Xero contact ID. |
note * | string | The note text to add. This is immutable and cannot be edited or deleted after creation. |
get-credit-note-history
Retrieve the history (audit trail) for a specific credit-note in Xero. Returns history records including dates, users, details, and changes.
| Parameter | Type | Description |
|---|---|---|
creditNoteID * | string | The Xero credit note ID. |
add-credit-note-note
Add a note to a specific credit-note in Xero. Notes appear in the entity's history/audit trail. Notes are immutable once created.
| Parameter | Type | Description |
|---|---|---|
creditNoteID * | string | The Xero credit note ID. |
note * | string | The note text to add. This is immutable and cannot be edited or deleted after creation. |
get-bank-transaction-history
Retrieve the history (audit trail) for a specific bank-transaction in Xero. Returns history records including dates, users, details, and changes.
| Parameter | Type | Description |
|---|---|---|
bankTransactionID * | string | The Xero bank transaction ID. |
add-bank-transaction-note
Add a note to a specific bank-transaction in Xero. Notes appear in the entity's history/audit trail. Notes are immutable once created.
| Parameter | Type | Description |
|---|---|---|
bankTransactionID * | string | The Xero bank transaction ID. |
note * | string | The note text to add. This is immutable and cannot be edited or deleted after creation. |
get-quote-history
Retrieve the history (audit trail) for a specific quote in Xero. Returns history records including dates, users, details, and changes.
| Parameter | Type | Description |
|---|---|---|
quoteID * | string | The Xero quote ID. |
add-quote-note
Add a note to a specific quote in Xero. Notes appear in the entity's history/audit trail. Notes are immutable once created.
| Parameter | Type | Description |
|---|---|---|
note * | string | The note text to add. This is immutable and cannot be edited or deleted after creation. |
quoteID * | string | The Xero quote ID. |
list-accounts
Lists all accounts in Xero. Use this tool to get the account codes and names to be used when creating invoices in Xero
list-contacts
List all contacts in Xero. This includes Suppliers and Customers.
| Parameter | Type | Description |
|---|---|---|
page | number | Optional page number to retrieve for pagination. If not provided, the first page will be returned. If 100 contacts are returned, call this tool again with the next page number. |
searchTerm | string | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields |
list-currencies
Lists currencies enabled in the connected Xero organisation. Use this before creating or updating invoices with a non-base currency.
list-credit-notes
List credit notes in Xero. Ask the user if they want to see credit notes for a specific contact, or to see all credit notes before running. Ask the user if they want the next page of credit notes after running this tool if 10 credit notes are returned. If they want the next page, call this tool again with the next page number and the contact if one was provided in the previous call. COMMON MISTAKES: - Only use the params listed above. Do not invent additional filter or sort params. - There is no "search", "query", "filter", "sortBy", "limit", or "offset" param.
| Parameter | Type | Description |
|---|---|---|
page * | number | |
contactId | string |
list-invoices
List invoices in Xero. Returns up to pageSize results per page (default 100, max 100). SORTING: Default sort is UpdatedDateUTC DESC (last-modified first). Use orderBy to sort by DueDate, Date, or InvoiceNumber. Use orderDirection for ASC/DESC. FILTERING: Use status to filter by invoice status. Use type ACCREC for sales invoices or ACCPAY for bills. Use dateFrom/dateTo for date ranges (YYYY-MM-DD). PAGINATION: If results returned equals pageSize, there may be more pages. Call again with page+1. AGGREGATE QUERIES: For "latest invoice", "top N by due date", "total outstanding", "how many over…
| Parameter | Type | Description |
|---|---|---|
page * | integer | Page number (1-based). If results equal pageSize, there may be more pages. |
contactIds | array | |
dateFrom | string | Only invoices on or after this date (YYYY-MM-DD) |
dateTo | string | Only invoices on or before this date (YYYY-MM-DD) |
invoiceNumbers | array | If provided, invoice line items will also be returned |
orderBy | string | Sort field. Default: UpdatedDateUTC |
orderDirection | string | Sort direction. Default: DESC |
pageSize | integer | Results per page (default 100, max 100) |
status | string | Filter by invoice status |
type | string | ACCREC = sales invoices (accounts receivable), ACCPAY = bills (accounts payable) |
list-items
Lists all items in Xero. Use this tool to get the item codes and descriptions to be used when creating invoices in Xero. COMMON MISTAKES: - Only use the params listed above. Do not invent additional filter or sort params. - There is no "search", "query", "filter", "sortBy", "limit", or "offset" param.
| Parameter | Type | Description |
|---|---|---|
page * | number |
list-manual-journals
List all manual journals from Xero. Ask the user if they want to see a specific manual journal or all manual journals before running. Can optionally pass in manual journal ID to retrieve a specific journal, or a date to filter journals modified after that date. The response presents a complete overview of all manual journals currently registered in your Xero account, with their details. Ask the user if they want the next page of manual journals after running this tool if 10 manual journals are returned. If they want the next page, call this tool again with the next page number, modified date,…
| Parameter | Type | Description |
|---|---|---|
manualJournalId | string | Optional ID of the manual journal to retrieve |
modifiedAfter | string | Optional date YYYY-MM-DD to filter journals modified after this date |
page | number | Optional page number for pagination |
list-quotes
List all quotes in Xero. Ask the user if they want to see quotes for a specific contact before running. Ask the user if they want the next page of quotes after running this tool if 10 quotes are returned. If they do, call this tool again with the page number and the contact provided in the previous call. COMMON MISTAKES: - Only use the params listed above. Do not invent additional filter or sort params. - There is no "search", "query", "filter", "sortBy", "limit", or "offset" param.
| Parameter | Type | Description |
|---|---|---|
page * | number | |
contactId | string | |
quoteNumber | string |
list-tax-rates
Lists all tax rates in Xero. Use this tool to get the tax rates to be used when creating invoices in Xero
list-trial-balance
Lists trial balance in Xero. This provides a snapshot of the general ledger, showing debit and credit balances for each account.
| Parameter | Type | Description |
|---|---|---|
date | string | Optional date in YYYY-MM-DD format |
paymentsOnly | boolean | Optional flag to include only accounts with payments |
list-payments
List payments in Xero. This tool shows all payments made against invoices, including payment date, amount, and payment method. You can filter payments by invoice number, invoice ID, payment ID, or invoice reference. Ask the user if they want to see payments for a specific invoice, contact, payment or reference before running. If many payments are returned, ask the user if they want to see the next page. COMMON MISTAKES: - Only use the params listed above. Do not invent additional filter or sort params. - There is no "search", "query", "filter", "sortBy", "limit", or "offset" param.
| Parameter | Type | Description |
|---|---|---|
invoiceId | string | |
invoiceNumber | string | |
page | number | |
paymentId | string | |
reference | string |
list-profit-and-loss
Lists profit and loss report in Xero. This provides a summary of revenue, expenses, and profit or loss over a specified period of time.
| Parameter | Type | Description |
|---|---|---|
fromDate | string | Optional start date in YYYY-MM-DD format |
paymentsOnly | boolean | Optional flag to include only accounts with payments |
periods | number | Optional number of periods to compare |
standardLayout | boolean | Optional flag to use standard layout |
timeframe | string | Optional timeframe for the report (MONTH, QUARTER, YEAR) |
toDate | string | Optional end date in YYYY-MM-DD format |
list-bank-transactions
List all bank transactions in Xero. Ask the user if they want to see bank transactions for a specific bank account, or to see all bank transactions before running. Ask the user if they want the next page of bank transactions after running this tool if 10 bank transactions are returned. If they do, call this tool again with the next page number and the bank account if one was provided in the provided in the previous call. COMMON MISTAKES: - Only use the params listed above. Do not invent additional filter or sort params. - There is no "search", "query", "filter", "sortBy", "limit",…
| Parameter | Type | Description |
|---|---|---|
page * | number | |
bankAccountId | string |
list-payroll-employees
List all payroll employees in Xero. This retrieves comprehensive employee details including names, User IDs, dates of birth, email addresses, gender, phone numbers, start dates, engagement types (Permanent, FixedTerm, or Casual), titles, and when records were last updated. The response presents a complete overview of all staff currently registered in your Xero payroll, with their personal and employment information. If there are many employees, ask the user if they would like to see more detailed information about specific employees before proceeding.
list-report-balance-sheet
List the Balance Sheet report from Xero.
| Parameter | Type | Description |
|---|---|---|
date | string | Optional date in YYYY-MM-DD format |
paymentsOnly | boolean | Optional flag to include only accounts with payments |
periods | number | Optional number of periods to compare |
standardLayout | boolean | Optional flag to use standard layout |
timeframe | string | Optional timeframe for the report (MONTH, QUARTER, YEAR) |
trackingOptionID1 | string | Optional tracking option ID 1 |
trackingOptionID2 | string | Optional tracking option ID 2 |
list-organisation-details
Lists the organisation details from Xero. Use this tool to get information about the current Xero organisation.
list-payroll-employee-leave
List all leave records for a specific employee in Xero. This shows all leave transactions including approved, pending, and processed time off. Provide an employee ID to see their leave history.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | The Xero employee ID to fetch leave records for |
list-payroll-leave-periods
List all leave periods for a specific employee in Xero. This shows detailed time off periods including start and end dates, period status, payment dates, and leave types. Provide an employee ID to see their leave periods.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | The Xero employee ID to fetch leave periods for |
endDate | string | Optional end date in YYYY-MM-DD format |
startDate | string | Optional start date in YYYY-MM-DD format |
list-payroll-employee-leave-types
List all leave types available for a specific employee in Xero. This shows detailed information about the types of leave an employee can take, including schedule of accrual, leave type name, and entitlement.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | The Xero employee ID to fetch leave types for |
list-payroll-employee-leave-balances
List all leave balances for a specific employee in Xero. This shows current leave balances for all leave types available to the employee, including annual, sick, and other leave types.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | The Xero employee ID to fetch leave balances for |
list-payroll-leave-types
Lists all available leave types in Xero Payroll. This provides information about all the leave categories configured in your Xero system, including statutory and organization-specific leave types.
list-aged-receivables-by-contact
Lists the aged receivables in Xero. This shows aged receivables for a certain contact up to a report date.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
invoicesFromDate | string | Optional from date in YYYY-MM-DD format. If provided, will only show payable invoices after this date for the contact. |
invoicesToDate | string | Optional to date in YYYY-MM-DD format. If provided, will only show payable invoices before this date for the contact. |
reportDate | string | Optional date to retrieve aged receivables in YYYY-MM-DD format. If none is provided, defaults to end of the current month. |
list-aged-payables-by-contact
Lists the aged payables in Xero. This shows aged payables for a certain contact up to a report date.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
invoicesFromDate | string | Optional from date in YYYY-MM-DD format. If provided, will only show payable invoices after this date for the contact. |
invoicesToDate | string | Optional to date in YYYY-MM-DD format. If provided, will only show payable invoices before this date for the contact. |
reportDate | string | Optional date to retrieve aged payables in YYYY-MM-DD format. If none is provided, defaults to end of the current month. |
list-timesheets
List all payroll timesheets in Xero. This retrieves comprehensive timesheet details including timesheet IDs, employee IDs, start and end dates, total hours, and the last updated date.
list-contact-groups
List all contact groups in Xero. You can optionally specify a contact group ID to retrieve details for that specific group, including its contacts.
| Parameter | Type | Description |
|---|---|---|
contactGroupId | string | Optional ID of the contact group to retrieve |
list-tracking-categories
List all tracking categories in Xero, along with their associated tracking options.
| Parameter | Type | Description |
|---|---|---|
includeArchived | boolean | Determines whether or not archived categories will be returned. By default, no archived categories will be returned. |
list-invoice-attachments
List attachments for a specific invoice in Xero. Returns attachment metadata including filename, MIME type, and file size. Requires the accounting.attachments.read scope on the Xero Custom Connection. Use the FileName from the results with download-invoice-attachment to download content.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The Xero Invoice ID (UUID) |
list-bank-summary
Get the bank summary report from Xero: opening and closing balances plus total money in/out per bank account over a period. Useful for cash-position questions.
| Parameter | Type | Description |
|---|---|---|
fromDate | string | Optional start date of the report period (YYYY-MM-DD) |
toDate | string | Optional end date of the report period (YYYY-MM-DD) |
list-budget-summary
Get the budget summary report from Xero: budgeted vs actual figures per account. Useful for 'are we tracking to budget?' questions. Requires budgets to be set up in the Xero organisation.
| Parameter | Type | Description |
|---|---|---|
date | string | Optional date for the report (YYYY-MM-DD) |
periods | integer | Optional number of periods to compare (1-12) |
timeframe | string | Optional period size to compare (MONTH, QUARTER, YEAR) |
list-executive-summary
Get the executive summary report from Xero: a high-level snapshot of key financial metrics (cash, debtors, creditors, revenue, profit) for a date. Useful for 'how is the business doing?' questions.
| Parameter | Type | Description |
|---|---|---|
date | string | Optional date for the report (YYYY-MM-DD) |
list-purchase-orders
List purchase orders in Xero. Returns up to pageSize results per page (default 100, max 100). FILTERING: Use status to filter (DRAFT, SUBMITTED, AUTHORISED, BILLED, DELETED). Use dateFrom/dateTo for date ranges (YYYY-MM-DD). PAGINATION: If results returned equals pageSize, there may be more pages. Call again with page+1.
| Parameter | Type | Description |
|---|---|---|
dateFrom | string | Only purchase orders on or after this date (YYYY-MM-DD) |
dateTo | string | Only purchase orders on or before this date (YYYY-MM-DD) |
orderBy | string | Sort field. Default: Xero's default order |
orderDirection | string | Sort direction. Only applied when orderBy is set |
page | integer | Page number (1-based). If results equal pageSize, there may be more pages. |
pageSize | integer | Results per page (default 100, max 100) |
status | string | Filter by purchase order status |
update-contact
Update a contact in Xero. When a contact is updated, a deep link to the contact in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
name * | string | |
address | object | |
email | string | |
firstName | string | |
lastName | string | |
phone | string |
update-credit-note
Update a credit note in Xero. Only works on draft credit notes. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When a credit note is updated, a deep link to the credit note in Xero is returned. This deep link can be used to view the credit note in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
creditNoteId * | string | |
contactId | string | |
date | string | |
lineItems | array | All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user |
reference | string |
update-invoice
Update an invoice in Xero. Only works on draft invoices. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When an invoice is updated, a deep link to the invoice in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The ID of the invoice to update. |
contactId | string | The ID of the contact to update the invoice for. Can be obtained from the list-contacts tool. |
currencyCode | string | Optional invoice currency, such as USD. Only use a currency enabled in the connected Xero organisation. |
date | string | The date of the invoice. |
dueDate | string | The due date of the invoice. |
lineItems | array | All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user |
reference | string | A reference number for the invoice. |
update-manual-journal
Update a manual journal in Xero. Only works on draft manual journals. Do not modify line items or parameters that have not been specified by the user.
| Parameter | Type | Description |
|---|---|---|
manualJournalID * | string | ID of the manual journal to update |
manualJournalLines * | array | The manualJournalLines element must contain at least two individual manualJournalLine sub-elements |
narration * | string | Description of manual journal being posted |
date | string | Optional date in YYYY-MM-DD format |
lineAmountTypes | string | Optional line amount types (EXCLUSIVE, INCLUSIVE, NO_TAX), NO_TAX by default |
showOnCashBasisReports | boolean | Optional boolean to show on cash basis reports, default is true |
status | string | Optional status of the manual journal (DRAFT, POSTED, DELETED, VOIDED, ARCHIVED), DRAFT by default |
url | string | Optional URL link to a source document |
update-quote
Update a quote in Xero. Only works on draft quotes. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When a quote is updated, a deep link to the quote in Xero is returned. This deep link can be used to view the quote in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
quoteId * | string | |
contactId | string | |
date | string | |
expiryDate | string | |
lineItems | array | All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user |
quoteNumber | string | |
reference | string | |
summary | string | |
terms | string | |
title | string |
update-item
Update an item in Xero.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
itemId * | string | |
name * | string | |
description | string | |
inventoryAssetAccountCode | string | |
isTrackedAsInventory | boolean | |
purchaseDescription | string | |
purchaseDetails | object | |
salesDetails | object |
update-bank-transaction
Update a bank transaction in Xero. When a bank transaction is updated, a deep link to the bank transaction in Xero is returned. This deep link can be used to view the bank transaction in Xero directly. This link should be displayed to the user.
| Parameter | Type | Description |
|---|---|---|
bankTransactionId * | string | |
contactId | string | |
date | string | |
lineItems | array | All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user |
reference | string | |
type | string |
approve-timesheet
Approve a payroll timesheet in Xero by its ID.
| Parameter | Type | Description |
|---|---|---|
timesheetID * | string | The ID of the timesheet to approve. |
add-timesheet-line
Add a new timesheet line to an existing payroll timesheet in Xero.
| Parameter | Type | Description |
|---|---|---|
timesheetID * | string | The ID of the timesheet to update. |
timesheetLine * | object | The details of the timesheet line to add. |
update-timesheet-line
Update an existing timesheet line in a payroll timesheet in Xero.
| Parameter | Type | Description |
|---|---|---|
timesheetID * | string | The ID of the timesheet to update. |
timesheetLine * | object | The details of the timesheet line to update. |
timesheetLineID * | string | The ID of the timesheet line to update. |
revert-timesheet
Revert a payroll timesheet to draft in Xero by its ID.
| Parameter | Type | Description |
|---|---|---|
timesheetID * | string | The ID of the timesheet to revert. |
update-tracking-category
Updates an existing tracking category in Xero.
| Parameter | Type | Description |
|---|---|---|
trackingCategoryId * | string | |
name | string | |
status | string |
update-tracking-options
Updates tracking options for a tracking category in Xero.
| Parameter | Type | Description |
|---|---|---|
options * | array | |
trackingCategoryId * | string |
email-invoice
Email a copy of an invoice to its related contact via Xero. The invoice must be AUTHORISED — Xero rejects emails for DRAFT or SUBMITTED invoices. Use list-invoices to find the invoice ID.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The Xero invoice ID (UUID) of the AUTHORISED invoice to email |