Xero Accounting API

The Accounting API from Xero — 140 operation(s) for accounting.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Financial Management BC-200

Operations 237

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /Accounts List the chart of accounts · Xero Retrieves the full chart of accounts #
Ask an LLM
“What bank and expense accounts exist in my Xero chart of accounts?”
“Can I filter the chart of accounts by account type?”
Tell an agent
List all accounts in the chart of accounts.
Show accounts matching {where}, ordered by {order}.
PUT /Accounts Create an account in the chart of accounts · Xero Creates a new chart of accounts #
Ask an LLM
“How do I add a new bank or expense account to the chart of accounts?”
“Can I set a tax type and currency when creating an account?”
Tell an agent
Create an account named {Name} of type {Type}.
Add a new bank account {Name} with number {BankAccountNumber} in currency {CurrencyCode}.
GET /Accounts/{AccountID} Get one account from the chart of accounts · Xero Retrieves a single chart of accounts by using a unique account Id #
Ask an LLM
“What type and status is a specific account in the chart of accounts?”
“Can I look up a single account by its ID?”
Tell an agent
Get account {AccountID} from the chart of accounts.
Show the details of chart of accounts entry {AccountID}.
POST /Accounts/{AccountID} Update an account in the chart of accounts · Xero Updates a chart of accounts #
Ask an LLM
“How do I rename an existing account in the chart of accounts?”
“Can I change the tax type or currency of an account?”
Tell an agent
Update account {AccountID} with {Accounts}.
Rename chart of accounts entry {AccountID} to {Accounts}.
DELETE /Accounts/{AccountID} Delete an account from the chart of accounts · Xero Deletes a chart of accounts #
Ask an LLM
“How do I remove an account from the chart of accounts?”
“Can I delete an account by its ID?”
Tell an agent destructive · confirm first
Delete account {AccountID} from the chart of accounts.
Remove chart of accounts entry {AccountID}.
GET /Accounts/{AccountID}/Attachments List attachments on an account · Xero Retrieves attachments for a specific accounts by using a unique account Id #
Ask an LLM
“What files are attached to a chart of accounts entry?”
“Can I see all attachments on an account?”
Tell an agent
List attachments on account {AccountID}.
Show every file attached to chart of accounts entry {AccountID}.
GET /Accounts/{AccountID}/Attachments/{AttachmentID} Download an account attachment by ID · Xero Retrieves a specific attachment from a specific account using a unique… #
Ask an LLM
“How do I download a specific attachment from an account?”
“Can I fetch an account attachment by its ID?”
Tell an agent
Download attachment {AttachmentID} from account {AccountID}.
Fetch file {AttachmentID} attached to chart of accounts entry {AccountID}.
GET /Accounts/{AccountID}/Attachments/{FileName} Download an account attachment by filename · Xero Retrieves an attachment for a specific account by filename #
Ask an LLM
“Can I fetch an attached file on an accounts tab by its filename?”
“What do I need to pull a receipt attached to an account?”
Tell an agent
Download the attachment {file} from account {account}.
Get {file} on account {account} for tenant {tenant}.
POST /Accounts/{AccountID}/Attachments/{FileName} Replace an account attachment by filename · Xero Updates attachment on a specific account by filename #
Ask an LLM
“How do I replace an existing attachment on an account?”
“Can I update a file attached to an account by name?”
Tell an agent
Replace the existing attachment {FileName} on account {AccountID}.
Update file {FileName} attached to chart of accounts entry {AccountID}.
PUT /Accounts/{AccountID}/Attachments/{FileName} Attach a file to an account by filename · Xero Creates an attachment on a specific account #
Ask an LLM
“How do I attach a file to an account using its filename?”
“Can I upload a document to an account by name?”
Tell an agent
Attach a file named {FileName} to account {AccountID}.
Upload {FileName} as a new attachment on chart of accounts entry {AccountID}.
GET /BatchPayments List batch payments for invoices · Xero Retrieves either one or many batch payments for invoices #
Ask an LLM
“Which batch payments have been made against invoices?”
“Can I filter batch payments by status?”
Tell an agent
List all batch payments.
Show batch payments matching {where}.
PUT /BatchPayments Create batch payments for invoices · Xero Creates one or many batch payments for invoices #
Ask an LLM
“How do I pay several invoices in one batch payment?”
“Can I summarize errors when creating batch payments?”
Tell an agent
Create batch payments {BatchPayments}.
Pay these invoices in a batch: {BatchPayments}.
POST /BatchPayments Delete a batch payment by ID · Xero Updates a specific batch payment for invoices and credit notes #
Ask an LLM
“How do I cancel a batch payment by its ID?”
“Can I change a batch payment's status to deleted?”
Tell an agent destructive · confirm first
Delete batch payment {BatchPaymentID} with status {Status}.
Cancel batch payment {BatchPaymentID} by setting status {Status}.
GET /BatchPayments/{BatchPaymentID} Get a batch payment by ID · Xero Retrieves a specific batch payment using a unique batch payment Id #
Ask an LLM
“What is the status and amount of a specific batch payment?”
“Can I look up one batch payment by its ID?”
Tell an agent
Get batch payment {BatchPaymentID}.
Show the details of batch payment {BatchPaymentID}.
POST /BatchPayments/{BatchPaymentID} Delete a batch payment by URL ID · Xero Updates a specific batch payment for invoices and credit notes #
Ask an LLM
“How do I cancel a batch payment using the URL path ID?”
“Can I change a batch payment's status to deleted through the URL path?”
Tell an agent destructive · confirm first
Delete batch payment {BatchPaymentID} by URL path, setting status {Status}.
Cancel the batch payment at URL path {BatchPaymentID} with status {Status}.
GET /BatchPayments/{BatchPaymentID}/History Get the history of a batch payment · Xero Retrieves history from a specific batch payment #
Ask an LLM
“What changes have been made to a batch payment over time?”
“Can I see the history of a single batch payment?”
Tell an agent
Get the history of batch payment {BatchPaymentID}.
Show every change made to batch payment {BatchPaymentID}.
PUT /BatchPayments/{BatchPaymentID}/History Add a history record to a batch payment · Xero Creates a history record for a specific batch payment #
Ask an LLM
“How do I log a change against a batch payment?”
“Can I add a history record to a batch payment by its ID?”
Tell an agent
Add history records {HistoryRecords} to batch payment {BatchPaymentID}.
Log a change on batch payment {BatchPaymentID} with {HistoryRecords}.
GET /BankTransactions List bank transactions · Xero Retrieves any spent or received money transactions #
Ask an LLM
“Which spent and received money transactions are in my bank?”
“Can I page through bank transactions with line items?”
Tell an agent
List all bank transactions.
Show bank transactions matching {where}, page {page}.
PUT /BankTransactions Create bank transactions · Xero Creates one or more spent or received money transaction #
Ask an LLM
“How do I record a spent or received money transaction?”
“Can I create bank transactions with four decimal places?”
Tell an agent
Create bank transactions {BankTransactions}.
Record these spent and received money transactions: {BankTransactions}.
POST /BankTransactions Update or create bank transactions · Xero Updates or creates one or more spent or received money transaction #
Ask an LLM
“How do I update existing bank transactions or create new ones in one call?”
“Can I upsert bank transactions with a summary of errors?”
Tell an agent
Update or create bank transactions {BankTransactions}.
Upsert spent and received money transactions {BankTransactions}.
GET /BankTransactions/{BankTransactionID} Get a bank transaction · Xero Retrieves a single spent or received money transaction by using a unique… #
Ask an LLM
“How do I pull a single bank transaction by its ID?”
“Can I fetch a bank transaction with its attachments included?”
Tell an agent
Get bank transaction {transaction}.
Show bank transaction {transaction} with {unitdp} decimal places.
POST /BankTransactions/{BankTransactionID} Update a bank transaction · Xero Updates a single spent or received money transaction #
Ask an LLM
“How do I correct an amount on a bank transaction?”
“Can I update a bank transaction with an idempotency key?”
Tell an agent
Update bank transaction {transaction} with {changes}.
Correct bank transaction {transaction} using idempotency key {key}.
GET /BankTransactions/{BankTransactionID}/Attachments List attachments on a bank transaction · Xero Retrieves any attachments from a specific bank transactions #
Ask an LLM
“What files are attached to a bank transaction?”
“Can I list all attachments on one bank transaction?”
Tell an agent
List attachments on bank transaction {transaction}.
Show every file attached to bank transaction {transaction}.
GET /BankTransactions/{BankTransactionID}/Attachments/{AttachmentID} Download an attachment from a bank transaction · Xero Retrieves specific attachments from a specific BankTransaction using a… #
Ask an LLM
“How do I download a specific attachment from a bank transaction?”
“Can I fetch a bank transaction attachment by its ID?”
Tell an agent
Download attachment {attachment} from bank transaction {transaction}.
Fetch bank transaction {transaction} attachment {attachment} as {type}.
GET /BankTransactions/{BankTransactionID}/Attachments/{FileName} Download a bank transaction's attachment by filename · Xero Retrieves a specific attachment from a specific bank transaction by… #
Ask an LLM
“Is there a way to retrieve the supporting invoice file attached to a bank transaction?”
“Can I look up a bank transaction attachment by its file name?”
Tell an agent
Download the attachment {file} from bank transaction {transaction}.
Get {file} on bank transaction {transaction} for tenant {tenant}.
POST /BankTransactions/{BankTransactionID}/Attachments/{FileName} Replace a bank transaction attachment · Xero Updates a specific attachment from a specific bank transaction by filename #
Ask an LLM
“Can I overwrite an existing file on a bank transaction?”
“How do I replace a bank transaction attachment by filename?”
Tell an agent
Replace the {file} attachment on bank transaction {transaction}.
Overwrite bank transaction {transaction} attachment {file} with idempotency key {key}.
PUT /BankTransactions/{BankTransactionID}/Attachments/{FileName} Attach a file to a bank transaction · Xero Creates an attachment for a specific bank transaction by filename #
Ask an LLM
“How do I add a receipt file to a bank transaction?”
“Can I attach a file to a bank transaction by its filename?”
Tell an agent
Attach {file} to bank transaction {transaction}.
Add a receipt {file} to bank transaction {transaction} with idempotency key {key}.
GET /BankTransactions/{BankTransactionID}/History View a bank transaction's history · Xero Retrieves history from a specific bank transaction using a unique bank… #
Ask an LLM
“What changes have been made to a bank transaction over time?”
“Can I see the audit history of a bank transaction?”
Tell an agent
Show the history of bank transaction {transaction}.
List all edits made to bank transaction {transaction}.
PUT /BankTransactions/{BankTransactionID}/History Add a history record to a bank transaction · Xero Creates a history record for a specific bank transactions #
Ask an LLM
“How do I log a note against a bank transaction?”
“Can I add a history record to a bank transaction?”
Tell an agent
Add history record {record} to bank transaction {transaction}.
Log a note on bank transaction {transaction} with idempotency key {key}.
GET /BankTransfers List bank transfers · Xero Retrieves all bank transfers #
Ask an LLM
“Which bank transfers have been made between my accounts?”
“Can I filter bank transfers by status?”
Tell an agent
List all bank transfers.
Show bank transfers matching {where}, ordered by {order}.
PUT /BankTransfers Create a bank transfer · Xero Creates a bank transfer #
Ask an LLM
“How do I move money between bank accounts?”
“Can I create a bank transfer with an idempotency key?”
Tell an agent
Create bank transfers {transfers}.
Move money between accounts with {transfers} using idempotency key {key}.
GET /BankTransfers/{BankTransferID} Get a bank transfer · Xero Retrieves specific bank transfers by using a unique bank transfer Id #
Ask an LLM
“How do I look up one bank transfer by its ID?”
“Can I fetch a single bank transfer?”
Tell an agent
Get bank transfer {transfer}.
Show the details of bank transfer {transfer}.
GET /BankTransfers/{BankTransferID}/Attachments List attachments on a bank transfer · Xero Retrieves attachments from a specific bank transfer #
Ask an LLM
“What files are attached to a bank transfer?”
“Can I list all attachments on one bank transfer?”
Tell an agent
List attachments on bank transfer {transfer}.
Show every file attached to bank transfer {transfer}.
GET /BankTransfers/{BankTransferID}/Attachments/{AttachmentID} Download an attachment from a bank transfer · Xero Retrieves a specific attachment from a specific bank transfer using a… #
Ask an LLM
“How do I download a specific attachment from a bank transfer?”
“Can I fetch a bank transfer attachment by its ID?”
Tell an agent
Download attachment {attachment} from bank transfer {transfer}.
Fetch bank transfer {transfer} attachment {attachment} as {type}.
GET /BankTransfers/{BankTransferID}/Attachments/{FileName} Download a bank transfer's attachment by filename · Xero Retrieves a specific attachment on a specific bank transfer by file name #
Ask an LLM
“Can I download the file attached to a bank transfer, identified by name?”
“What's needed to fetch a supporting document for a bank transfer?”
Tell an agent
Download the attachment {file} from bank transfer {transfer}.
Get {file} on bank transfer {transfer} for tenant {tenant}.
POST /BankTransfers/{BankTransferID}/Attachments/{FileName} Replace a bank transfer attachment · Update bank transfer attachment by file name #
Ask an LLM
“Can I overwrite an existing file on a bank transfer?”
“How do I replace a bank transfer attachment by filename?”
Tell an agent
Replace the {file} attachment on bank transfer {transfer}.
Overwrite bank transfer {transfer} attachment {file} with idempotency key {key}.
PUT /BankTransfers/{BankTransferID}/Attachments/{FileName} Attach a file to a bank transfer · Create bank transfer attachment by file name #
Ask an LLM
“How do I add a receipt file to a bank transfer?”
“Can I attach a file to a bank transfer by its filename?”
Tell an agent
Attach {file} to bank transfer {transfer}.
Add a receipt {file} to bank transfer {transfer} with idempotency key {key}.
GET /BankTransfers/{BankTransferID}/History View a bank transfer's history · Xero Retrieves history from a specific bank transfer using a unique bank… #
Ask an LLM
“What changes have been made to a bank transfer over time?”
“Can I see the audit history of a bank transfer?”
Tell an agent
Show the history of bank transfer {transfer}.
List all edits made to bank transfer {transfer}.
PUT /BankTransfers/{BankTransferID}/History Add a history record to a bank transfer · Xero Creates a history record for a specific bank transfer #
Ask an LLM
“How do I log a note against a bank transfer?”
“Can I add a history record to a bank transfer?”
Tell an agent
Add history record {record} to bank transfer {transfer}.
Log a note on bank transfer {transfer} with idempotency key {key}.
GET /BrandingThemes List branding themes · Xero Retrieves all the branding themes #
Ask an LLM
“What branding themes are available for my company?”
“Can I list all branding themes?”
Tell an agent
List all branding themes.
Show the available branding themes for tenant {tenant}.
GET /BrandingThemes/{BrandingThemeID} Get a branding theme · Xero Retrieves a specific branding theme using a unique branding theme Id #
Ask an LLM
“How do I fetch a branding theme by its ID?”
“Can I look up the branding theme used for a specific tenant?”
Tell an agent
Get branding theme {theme}.
Show the branding theme {theme} for tenant {tenant}.
GET /BrandingThemes/{BrandingThemeID}/PaymentServices List payment services on a branding theme · Xero Retrieves the payment services for a specific branding theme #
Ask an LLM
“Which payment services are configured on a branding theme?”
“Can I see the payment service settings for a theme?”
Tell an agent
List payment services on branding theme {theme}.
Show the payment services configured for theme {theme} in tenant {tenant}.
POST /BrandingThemes/{BrandingThemeID}/PaymentServices Add a payment service to a branding theme · Xero Creates a new custom payment service for a specific branding theme #
Ask an LLM
“How do I add a custom payment service to a branding theme?”
“Can I create a new payment service on a theme?”
Tell an agent
Create payment services {services} on branding theme {theme}.
Add a new payment service to theme {theme} for tenant {tenant}.
GET /Budgets List budgets · Xero Retrieve a list of budgets #
Ask an LLM
“What budgets exist in my organisation?”
“Can I list budgets within a date range?”
Tell an agent
List all budgets.
List budgets between {from} and {to}.
GET /Budgets/{BudgetID} Get a budget and its lines · Xero Retrieves a specific budget, which includes budget lines #
Ask an LLM
“How do I see the lines of a specific budget?”
“Can I fetch one budget by ID?”
Tell an agent
Get budget {budget}.
Show budget {budget} lines between {from} and {to}.
GET /Contacts List contacts · Retrieves all contacts in a Xero organisation #
Ask an LLM
“Who are the contacts in my organisation?”
“Can I search contacts by name or email?”
Tell an agent
List all contacts.
Search contacts for {term}.
PUT /Contacts Bulk create contacts · Creates multiple contacts (bulk) in a Xero organisation #
Ask an LLM
“How do I add many new contacts to my organisation at once?”
“Can I create contacts in bulk?”
Tell an agent
Create these contacts in bulk: {contacts}.
Bulk add new contacts {contacts} to tenant {tenant}.
POST /Contacts Upsert contacts · Updates or creates one or more contacts in a Xero organisation #
Ask an LLM
“How do I update existing contacts or create new ones in one call?”
“Can I upsert contacts by their contact number?”
Tell an agent
Upsert contacts {contacts}.
Update or create contacts {contacts} in tenant {tenant}.
GET /Contacts/{ContactNumber} Get a contact by number · Retrieves a specific contact by contact number in a Xero organisation #
Ask an LLM
“How do I find a contact using its contact number?”
“Can I look up a contact by its number?”
Tell an agent
Get the contact with number {number}.
Find contact {number} in tenant {tenant}.
GET /Contacts/{ContactID} Get a contact · Retrieves a specific contacts in a Xero organisation using a unique contact Id #
Ask an LLM
“How do I fetch a contact's details by ID?”
“Can I retrieve one contact by its ID?”
Tell an agent
Get contact {contact}.
Show contact {contact} in tenant {tenant}.
POST /Contacts/{ContactID} Update a contact · Updates a specific contact in a Xero organisation #
Ask an LLM
“How do I change a contact's details?”
“Can I update a single contact by ID?”
Tell an agent
Update contact {contact} with {changes}.
Edit contact {contact} in tenant {tenant}.
GET /Contacts/{ContactID}/Attachments List attachments on a contact · Retrieves attachments for a specific contact in a Xero organisation #
Ask an LLM
“What files are attached to a contact?”
“Can I list all attachments for one contact?”
Tell an agent
List attachments on contact {contact}.
Show every file attached to contact {contact} in tenant {tenant}.
GET /Contacts/{ContactID}/Attachments/{AttachmentID} Download a contact attachment · Xero Retrieves a specific attachment from a specific contact using a unique… #
Ask an LLM
“How do I download a specific file attached to a contact?”
“Can I fetch a contact attachment by its ID and content type?”
Tell an agent
Download attachment {attachment} from contact {contact}.
Fetch contact {contact} attachment {attachment} as {type}.
GET /Contacts/{ContactID}/Attachments/{FileName} Download a contact attachment by name · Xero Retrieves a specific attachment from a specific contact by file name #
Ask an LLM
“How do I download a contact attachment when I only know its file name?”
“Can I fetch a contact file by name and content type?”
Tell an agent
Download the attachment named {name} from contact {contact}.
Fetch contact {contact} file {name} as {type}.
POST /Contacts/{ContactID}/Attachments/{FileName} Replace a contact attachment by name · Update contact attachment by file name #
Ask an LLM
“How do I replace an existing file on a contact?”
“Can I update a contact attachment using its file name?”
Tell an agent
Replace the file named {name} on contact {contact}.
Overwrite contact {contact} attachment {name}.
PUT /Contacts/{ContactID}/Attachments/{FileName} Upload a file to a contact · Create contact attachment by file name #
Ask an LLM
“How do I attach a file to a contact by its file name?”
“Can I upload a document to a contact by name?”
Tell an agent
Upload a file named {name} to contact {contact}.
Attach {name} to contact {contact} in tenant {tenant}.
GET /Contacts/{ContactID}/CISSettings Get a contact's CIS settings · Retrieves CIS settings for a specific contact in a Xero organisation #
Ask an LLM
“What CIS settings are configured on a contractor contact?”
“Can I read a contact's CIS settings?”
Tell an agent
Get the CIS settings for contact {contact}.
Show contractor {contact}'s CIS settings in tenant {tenant}.
GET /Contacts/{ContactID}/History List a contact's history · Xero Retrieves history records for a specific contact #
Ask an LLM
“What changes have been made to a contact over time?”
“Can I see the history of one contact?”
Tell an agent
Show the history of contact {contact}.
List change history for contact {contact} in tenant {tenant}.
PUT /Contacts/{ContactID}/History Add a history record to a contact · Xero Creates a new history record for a specific contact #
Ask an LLM
“How do I log a note against a contact?”
“Can I add a new history record to a contact?”
Tell an agent
Add history records {records} to contact {contact}.
Log a note on contact {contact} in tenant {tenant}.
GET /ContactGroups List contact groups · Xero Retrieves the contact Id and name of each contact group #
Ask an LLM
“What contact groups exist in my organisation?”
“Can I list contact groups ordered by name?”
Tell an agent
List all contact groups.
List contact groups matching {where}, ordered by {order}.
PUT /ContactGroups Create a contact group · Xero Creates a contact group #
Ask an LLM
“How do I create a new contact group?”
“Can I add contacts to a contact group in one call?”
Tell an agent
Create a contact group.
Create a contact group with contacts {contacts}.
GET /ContactGroups/{ContactGroupID} Get a contact group · Xero Retrieves a specific contact group by using a unique contact group Id #
Ask an LLM
“How do I look up a contact group by its ID?”
“What contacts are in a contact group?”
Tell an agent
Get contact group {contact_group_id}.
Show the contacts in contact group {contact_group_id}.
POST /ContactGroups/{ContactGroupID} Update a contact group · Xero Updates a specific contact group #
Ask an LLM
“How do I rename an existing contact group?”
“Can I change the contacts in a contact group?”
Tell an agent
Update contact group {contact_group_id}.
Replace the contacts in contact group {contact_group_id} with {contacts}.
PUT /ContactGroups/{ContactGroupID}/Contacts Add contacts to a contact group · Xero Creates contacts to a specific contact group #
Ask an LLM
“How do I add several contacts to a contact group at once?”
“Can I bulk add contacts to a group?”
Tell an agent
Add contacts {contacts} to contact group {contact_group_id}.
Bulk add these contacts to group {contact_group_id}: {contacts}.
DELETE /ContactGroups/{ContactGroupID}/Contacts Remove all contacts from a contact group · Xero Deletes all contacts from a specific contact group #
Ask an LLM
“How do I clear every contact out of a contact group?”
“Can I empty a contact group of all its members?”
Tell an agent destructive · confirm first
Remove all contacts from contact group {contact_group_id}.
Empty contact group {contact_group_id}.
DELETE /ContactGroups/{ContactGroupID}/Contacts/{ContactID} Remove one contact from a contact group · Xero Deletes a specific contact from a contact group using a unique contact Id #
Ask an LLM
“How do I take one contact out of a contact group?”
“Can I remove a single member from a group?”
Tell an agent destructive · confirm first
Remove contact {contact_id} from contact group {contact_group_id}.
Take {contact_id} out of group {contact_group_id}.
GET /CreditNotes List credit notes · Xero Retrieves any credit notes #
Ask an LLM
“How do I list all credit notes?”
“Can I filter credit notes by status?”
Tell an agent
List credit notes.
List credit notes matching {where}.
PUT /CreditNotes Create credit notes · Xero Creates a new credit note #
Ask an LLM
“How do I create a credit note?”
“Can I create several credit notes in one request?”
Tell an agent
Create credit notes {credit_notes}.
Create credit notes {credit_notes} with summarize errors {summarize_errors}.
POST /CreditNotes Create or update credit notes · Xero Updates or creates one or more credit notes #
Ask an LLM
“How do I create credit notes that might already exist?”
“Can I upsert credit notes in one call?”
Tell an agent
Create or update credit notes {credit_notes}.
Upsert credit notes {credit_notes} with summarize errors {summarize_errors}.
GET /CreditNotes/{CreditNoteID} Get a credit note · Xero Retrieves a specific credit note using a unique credit note Id #
Ask an LLM
“How do I look up one credit note?”
“What are the line items on a credit note?”
Tell an agent
Get credit note {credit_note_id}.
Show credit note {credit_note_id}.
POST /CreditNotes/{CreditNoteID} Update a credit note · Xero Updates a specific credit note #
Ask an LLM
“How do I edit an existing credit note?”
“Can I change the amount on a credit note?”
Tell an agent
Update credit note {credit_note_id}.
Edit credit note {credit_note_id} with {credit_notes}.
GET /CreditNotes/{CreditNoteID}/Attachments List attachments on a credit note · Xero Retrieves attachments for a specific credit notes #
Ask an LLM
“How do I list the attachments on a credit note?”
“What files are attached to a credit note?”
Tell an agent
List attachments on credit note {credit_note_id}.
Show every file attached to credit note {credit_note_id}.
GET /CreditNotes/{CreditNoteID}/Attachments/{AttachmentID} Get an attachment on a credit note · Xero Retrieves a specific attachment from a specific credit note using a unique… #
Ask an LLM
“How do I download a specific attachment from a credit note?”
“Can I fetch one file by its attachment ID?”
Tell an agent
Get attachment {attachment_id} from credit note {credit_note_id}.
Download file {attachment_id} on credit note {credit_note_id}.
GET /CreditNotes/{CreditNoteID}/Attachments/{FileName} Get a credit note attachment by file name · Xero Retrieves a specific attachment on a specific credit note by file name #
Ask an LLM
“How do I fetch an attachment on a credit note by its file name?”
“Can I look up a credit note file by name?”
Tell an agent
Get the attachment named {file_name} on credit note {credit_note_id}.
Find credit note {credit_note_id} attachment {file_name}.
POST /CreditNotes/{CreditNoteID}/Attachments/{FileName} Update a credit note attachment · Xero Updates attachments on a specific credit note by file name #
Ask an LLM
“How do I replace an attachment on a credit note?”
“Can I change an existing file on a credit note?”
Tell an agent
Update the attachment {file_name} on credit note {credit_note_id}.
Replace file {file_name} on credit note {credit_note_id}.
PUT /CreditNotes/{CreditNoteID}/Attachments/{FileName} Attach a file to a credit note · Xero Creates an attachment for a specific credit note #
Ask an LLM
“How do I attach a file to a credit note?”
“Can I make an attachment visible to the customer online?”
Tell an agent
Attach {file_name} to credit note {credit_note_id}.
Attach {file_name} to credit note {credit_note_id} with online {include_online}.
GET /CreditNotes/{CreditNoteID}/pdf Download a credit note as PDF · Xero Retrieves credit notes as PDF files #
Ask an LLM
“How do I download a credit note as a PDF?”
“Can I get a credit note in PDF format?”
Tell an agent
Download credit note {credit_note_id} as PDF.
Get credit note {credit_note_id} in PDF.
PUT /CreditNotes/{CreditNoteID}/Allocations Allocate a credit note · Xero Creates allocation for a specific credit note #
Ask an LLM
“How do I apply a credit note to an invoice?”
“Can I create an allocation on a credit note?”
Tell an agent
Create allocations {allocations} on credit note {credit_note_id}.
Allocate credit note {credit_note_id} with {allocations}.
DELETE /CreditNotes/{CreditNoteID}/Allocations/{AllocationID} Remove an allocation from a credit note · Xero Deletes an Allocation from a Credit Note #
Ask an LLM
“How do I remove an allocation from a credit note?”
“Can I delete one allocation on a credit note?”
Tell an agent destructive · confirm first
Delete allocation {allocation_id} from credit note {credit_note_id}.
Remove allocation {allocation_id} on credit note {credit_note_id}.
GET /CreditNotes/{CreditNoteID}/History Get a credit note's history · Xero Retrieves history records of a specific credit note #
Ask an LLM
“How do I see the history of a credit note?”
“What changes have been made to a credit note?”
Tell an agent
Get the history of credit note {credit_note_id}.
Show the change history for credit note {credit_note_id}.
PUT /CreditNotes/{CreditNoteID}/History Record a history event on a credit note · Xero Retrieves history records of a specific credit note #
Ask an LLM
“How do I log a history event on a credit note?”
“Can I add a note to a credit note's history?”
Tell an agent
Add a history record to credit note {credit_note}.
Log a history event on credit note {credit_note} with {history}.
GET /Currencies List currencies in the organisation · Retrieves currencies for your Xero organisation #
Ask an LLM
“What currencies does my organisation support?”
“Can I filter the currencies list?”
Tell an agent
List the currencies in my organisation.
Show currencies matching {where}.
PUT /Currencies Add a new currency to the organisation · Create a new currency for a Xero organisation #
Ask an LLM
“How do I add a new currency like EUR to my organisation?”
“Can I give a new currency a description?”
Tell an agent
Add currency {code} described as {description}.
Create a new currency {code} for the organisation.
GET /Employees List employees used in payruns · Retrieves employees used in Xero payrun #
Ask an LLM
“How do I get the employees set up for payruns?”
“Can I filter the payrun employees list?”
Tell an agent
List the employees used in payruns.
Show payrun employees matching {where}.
PUT /Employees Create employees for payruns · Creates new employees used in Xero payrun #
Ask an LLM
“How do I add new employees to payruns?”
“Can I create several payrun employees in one request?”
Tell an agent
Create payrun employees {employees}.
Add new employees {employees} to payruns.
POST /Employees Create a single employee for payruns · Creates a single new employees used in Xero payrun #
Ask an LLM
“How do I create one employee for payruns?”
“Can I upsert a single payrun employee?”
Tell an agent
Create a single payrun employee {employees}.
Upsert one employee {employees} into payruns.
GET /Employees/{EmployeeID} Get a payrun employee · Retrieves a specific employee used in Xero payrun using a unique employee Id #
Ask an LLM
“How do I look up one employee used in payruns?”
“What details are stored for a single payrun employee?”
Tell an agent
Get payrun employee {employee}.
Show the details of payrun employee {employee}.
GET /ExpenseClaims List expense claims · Xero Retrieves expense claims #
Ask an LLM
“How do I get the expense claims in my organisation?”
“Can I filter expense claims by status?”
Tell an agent
List expense claims.
Show expense claims matching {where}.
PUT /ExpenseClaims Create expense claims · Xero Creates expense claims #
Ask an LLM
“How do I create expense claims for employees?”
“Can I add several expense claims at once?”
Tell an agent
Create expense claims {claims}.
Add new expense claims {claims} to the organisation.
GET /ExpenseClaims/{ExpenseClaimID} Get an expense claim · Xero Retrieves a specific expense claim using a unique expense claim Id #
Ask an LLM
“How do I look up one expense claim?”
“What details are stored for a single expense claim?”
Tell an agent
Get expense claim {claim}.
Show the details of expense claim {claim}.
POST /ExpenseClaims/{ExpenseClaimID} Update an expense claim · Xero Updates a specific expense claims #
Ask an LLM
“How do I edit an existing expense claim?”
“Can I change the status of an expense claim?”
Tell an agent
Update expense claim {claim} with {changes}.
Edit expense claim {claim}.
GET /ExpenseClaims/{ExpenseClaimID}/History Get an expense claim's history · Xero Retrieves history records of a specific expense claim #
Ask an LLM
“How do I see the history of an expense claim?”
“What changes have been recorded on an expense claim?”
Tell an agent
Get the history of expense claim {claim}.
Show the change history for expense claim {claim}.
PUT /ExpenseClaims/{ExpenseClaimID}/History Record a history event on an expense claim · Xero Creates a history record for a specific expense claim #
Ask an LLM
“How do I log a history event on an expense claim?”
“Can I add a note to an expense claim's history?”
Tell an agent
Add a history record to expense claim {claim}.
Log a history event on expense claim {claim} with {history}.
GET /Invoices List sales invoices and purchase bills · Xero Retrieves sales invoices or purchase bills #
Ask an LLM
“How do I get the invoices and bills in my organisation?”
“Can I filter invoices by status or contact?”
Tell an agent
List invoices and bills.
Show invoices matching {where}.
PUT /Invoices Create sales invoices and purchase bills · Xero Creates one or more sales invoices or purchase bills #
Ask an LLM
“How do I create invoices and bills?”
“Can I create several invoices in one request?”
Tell an agent
Create invoices {invoices}.
Add new invoices {invoices} to the organisation.
POST /Invoices Create or update invoices and bills · Xero Updates or creates one or more sales invoices or purchase bills #
Ask an LLM
“How do I create new sales invoices or purchase bills in one request?”
“Can I update existing invoices and bills when I send them again?”
Tell an agent
Create or update these invoices {invoices}.
Send {invoices} to Xero in one call, with idempotency {key}.
GET /Invoices/{InvoiceID} Get an invoice or bill · Xero Retrieves a specific sales invoice or purchase bill using a unique invoice… #
Ask an LLM
“How do I look up one invoice or bill?”
“What details are stored for a single invoice?”
Tell an agent
Get invoice {invoice}.
Show the details of invoice {invoice}.
POST /Invoices/{InvoiceID} Update an invoice or bill · Xero Updates a specific sales invoices or purchase bills #
Ask an LLM
“How do I edit an existing invoice or bill?”
“Can I change the line items on an invoice?”
Tell an agent
Update invoice {invoice} with {changes}.
Edit invoice {invoice}.
GET /Invoices/{InvoiceID}/pdf Download an invoice or bill as PDF · Xero Retrieves invoices or purchase bills as PDF files #
Ask an LLM
“How do I download an invoice as a PDF?”
“Can I get a bill as a PDF file?”
Tell an agent
Download invoice {invoice} as a PDF.
Get the PDF of bill {invoice}.
GET /Invoices/{InvoiceID}/Attachments List attachments on an invoice · Xero Retrieves attachments for a specific invoice or purchase bill #
Ask an LLM
“How do I see the attachments on an invoice?”
“What files are attached to a bill?”
Tell an agent
List attachments on invoice {invoice}.
Show the files attached to bill {invoice}.
GET /Invoices/{InvoiceID}/Attachments/{AttachmentID} Download an invoice attachment by ID · Xero Retrieves a specific attachment from a specific invoices or purchase bills… #
Ask an LLM
“How do I download a file attached to an invoice when I know both IDs?”
“Can I fetch an invoice attachment by its attachment ID?”
Tell an agent
Download attachment {attachment} from invoice {invoice}.
Get the file with attachment ID {attachment} on invoice {invoice}.
GET /Invoices/{InvoiceID}/Attachments/{FileName} Download an invoice attachment by filename · Xero Retrieves an attachment from a specific invoice or purchase bill by… #
Ask an LLM
“Can I fetch an invoice attachment when I only know the filename?”
“Which call returns an invoice attachment by its name?”
Tell an agent
Download the attachment named {filename} on invoice {invoice}.
Get the invoice {invoice} attachment called {filename}.
POST /Invoices/{InvoiceID}/Attachments/{FileName} Replace an invoice attachment by filename · Xero Updates an attachment from a specific invoices or purchase bill by filename #
Ask an LLM
“Can I overwrite an existing file on an invoice without knowing its attachment ID?”
“What's the call to replace an invoice attachment by name?”
Tell an agent
Replace the attachment named {filename} on invoice {invoice}.
Overwrite the file {filename} on invoice {invoice} with a new upload.
PUT /Invoices/{InvoiceID}/Attachments/{FileName} Attach a file to an invoice by filename · Xero Creates an attachment for a specific invoice or purchase bill by filename #
Ask an LLM
“How do I upload a file to an invoice using its filename?”
“Can I make an uploaded file visible on the customer's online invoice?”
Tell an agent
Upload a file as attachment {filename} on invoice {invoice}.
Attach {filename} to invoice {invoice} and show it online: {online}.
GET /Invoices/{InvoiceID}/OnlineInvoice Get a link to an online invoice · Xero Retrieves a URL to an online invoice #
Ask an LLM
“Where do I get a shareable link to an invoice?”
“Can I retrieve the URL of an invoice as it appears online?”
Tell an agent
Get the online invoice link for invoice {invoice}.
Give me the URL to view invoice {invoice} online.
POST /Invoices/{InvoiceID}/Email Email an invoice to the contact · Xero Sends a copy of a specific invoice to related contact via email #
Ask an LLM
“How do I send a copy of an invoice to the customer by email?”
“Can I email an invoice and set its status at the same time?”
Tell an agent
Email invoice {invoice} to its contact.
Send a copy of invoice {invoice} by email with status {status}.
GET /Invoices/{InvoiceID}/History List changes made to an invoice · Xero Retrieves history records for a specific invoice #
Ask an LLM
“What changes have been made to an invoice over time?”
“Can I see the history of an invoice?”
Tell an agent
Show the history of invoice {invoice}.
List every change made to invoice {invoice}.
PUT /Invoices/{InvoiceID}/History Add a history record to an invoice · Xero Creates a history record for a specific invoice #
Ask an LLM
“How do I log a note against an invoice?”
“Can I add a new history record to an invoice?”
Tell an agent
Add a history record to invoice {invoice}.
Log {history} on invoice {invoice}.
GET /InvoiceReminders/Settings Get invoice reminder settings · Xero Retrieves invoice reminder settings #
Ask an LLM
“What are my organisation's invoicing reminder settings?”
“Can I check whether automatic invoice reminders are turned on?”
Tell an agent
Get the invoice reminder settings for tenant {tenant}.
Show how Xero handles overdue invoice reminders in {tenant}.
GET /Items List inventory and sales items · Xero Retrieves items #
Ask an LLM
“What items are set up in my inventory?”
“Can I filter the items list?”
Tell an agent
List all items.
List items matching {where}, ordered by {order}.
PUT /Items Create items · Xero Creates one or more items #
Ask an LLM
“How do I add a new item to my item list?”
“Can I create several items in one request?”
Tell an agent
Create items {items}.
Add new items {items} with unit decimal places {unitdp}.
POST /Items Update or create items · Xero Updates or creates one or more items #
Ask an LLM
“Can I create items that don't exist yet and update the ones that do?”
“What's the upsert call for items?”
Tell an agent
Upsert items {items}.
Create or update items {items} with unit decimal places {unitdp}.
GET /Items/{ItemID} Get a single item · Xero Retrieves a specific item using a unique item Id #
Ask an LLM
“How do I look up one item by its ID?”
“What's the price and name of a specific item?”
Tell an agent
Get item {item}.
Show item {item} with unit decimal places {unitdp}.
POST /Items/{ItemID} Update an item · Xero Updates a specific item #
Ask an LLM
“How do I change the price of an existing item?”
“Can I edit an item's description?”
Tell an agent
Update item {item} with {changes}.
Edit item {item} so its price is {changes}.
DELETE /Items/{ItemID} Delete an item · Xero Deletes a specific item #
Ask an LLM
“How do I remove an item from my item list?”
“Can I delete an item I no longer sell?”
Tell an agent destructive · confirm first
Delete item {item}.
Remove item {item} from the item list.
GET /Items/{ItemID}/History List changes made to an item · Xero Retrieves history for a specific item #
Ask an LLM
“What changes have been made to an item over time?”
“Can I see the history of an item?”
Tell an agent
Show the history of item {item}.
List every change made to item {item}.
PUT /Items/{ItemID}/History Add a history record to an item · Xero Creates a history record for a specific item #
Ask an LLM
“How do I log a note against an item?”
“Can I add a new history record to an item?”
Tell an agent
Add a history record to item {item}.
Log {history} on item {item}.
GET /Journals List journals · Xero Retrieves journals #
Ask an LLM
“What journals have been posted in my books?”
“Can I list only journals that contain payments?”
Tell an agent
List all journals.
List journals with payments only: {payments_only}.
GET /Journals/{JournalID} Get a single journal · Xero Retrieves a specific journal using a unique journal Id #
Ask an LLM
“How do I look up one journal by its ID?”
“What entries are in a specific journal?”
Tell an agent
Get journal {journal}.
Show the entries in journal {journal}.
GET /Journals/{JournalNumber} Get a journal by its number · Xero Retrieves a specific journal using a unique journal number #
Ask an LLM
“How do I find a journal when I only know its number?”
“Can I look up a journal by journal number?”
Tell an agent
Get journal number {number}.
Find the journal with number {number}.
GET /LinkedTransactions List linked transactions (billable expenses) · Xero Retrieves linked transactions (billable expenses) #
Ask an LLM
“Which billable expenses have been linked to a customer's invoice?”
“Can I filter linked transactions by the invoice they came from?”
Tell an agent
List linked transactions for contact {ContactID}.
Show linked transactions on invoice {SourceTransactionID}.
PUT /LinkedTransactions Link a billable expense to an invoice · Xero Creates linked transactions (billable expenses) #
Ask an LLM
“How do I record a billable expense against a customer invoice?”
“Can I link several expenses to one invoice line?”
Tell an agent
Link billable expense {SourceTransactionID} to invoice {TargetTransactionID}.
Create a linked transaction for invoice {TargetTransactionID} from expense {SourceTransactionID}.
GET /LinkedTransactions/{LinkedTransactionID} Get a linked transaction · Xero Retrieves a specific linked transaction (billable expenses) using a unique… #
Ask an LLM
“What are the details of one linked transaction?”
“Can I fetch a single billable expense link by its ID?”
Tell an agent
Get linked transaction {LinkedTransactionID}.
Show billable expense link {LinkedTransactionID}.
POST /LinkedTransactions/{LinkedTransactionID} Update a billable expense linked transaction · Xero Updates a specific linked transactions (billable expenses) #
Ask an LLM
“Can I edit a billable expense that is linked to a transaction?”
“How do I correct a linked billable expense transaction?”
Tell an agent
Update linked transaction {transaction}.
Change the billable expense {transaction} for tenant {tenant}.
DELETE /LinkedTransactions/{LinkedTransactionID} Delete a linked transaction · Xero Deletes a specific linked transactions (billable expenses) #
Ask an LLM
“How do I unlink a billable expense from an invoice?”
“Can I remove a linked transaction?”
Tell an agent destructive · confirm first
Delete linked transaction {LinkedTransactionID}.
Remove billable expense link {LinkedTransactionID}.
GET /ManualJournals List manual journals · Xero Retrieves manual journals #
Ask an LLM
“Which manual journals have been posted?”
“Can I filter manual journals by status?”
Tell an agent
List manual journals.
Show manual journals matching {where}.
PUT /ManualJournals Create manual journals · Xero Creates one or more manual journals #
Ask an LLM
“How do I post a manual journal entry?”
“Can I create several manual journals in one request?”
Tell an agent
Create manual journals {ManualJournals}.
Post a batch of manual journals with summarize errors {summarizeErrors}.
POST /ManualJournals Update or create a manual journal · Xero Updates or creates a single manual journal #
Ask an LLM
“Can I create a manual journal that doesn't exist yet?”
“What happens if I send a manual journal that already exists?”
Tell an agent
Update or create manual journal {ManualJournals}.
Upsert manual journal {ManualJournals} with summarize errors {summarizeErrors}.
GET /ManualJournals/{ManualJournalID} Get a manual journal · Xero Retrieves a specific manual journal #
Ask an LLM
“Can I look up one manual journal by its ID?”
“What are the details of a specific manual journal?”
Tell an agent
Get manual journal {journal}.
Show manual journal {journal} for tenant {tenant}.
POST /ManualJournals/{ManualJournalID} Update a manual journal · Xero Updates a specific manual journal #
Ask an LLM
“Can I edit an existing manual journal?”
“How do I change the lines on a manual journal?”
Tell an agent
Update manual journal {ManualJournalID}.
Edit the lines of manual journal {ManualJournalID}.
GET /ManualJournals/{ManualJournalID}/Attachments List attachments on a manual journal · Xero Retrieves attachment for a specific manual journal #
Ask an LLM
“Which files are attached to a manual journal?”
“Can I see every attachment on a journal?”
Tell an agent
List attachments on manual journal {ManualJournalID}.
Show all files attached to journal {ManualJournalID}.
GET /ManualJournals/{ManualJournalID}/Attachments/{AttachmentID} Get a manual journal attachment · Xero Allows you to retrieve a specific attachment from a specific manual… #
Ask an LLM
“Can I download a specific attachment from a manual journal?”
“What is the content type of a manual journal attachment?”
Tell an agent
Get attachment {AttachmentID} from manual journal {ManualJournalID}.
Download attachment {AttachmentID} on journal {ManualJournalID} as {contentType}.
GET /ManualJournals/{ManualJournalID}/Attachments/{FileName} Get a manual journal attachment by name · Xero Retrieves a specific attachment from a specific manual journal by file name #
Ask an LLM
“Can I fetch a manual journal attachment when I only know its file name?”
“Which attachment on a journal matches a file name?”
Tell an agent
Get attachment {FileName} on manual journal {ManualJournalID}.
Find the {FileName} attachment on journal {ManualJournalID}.
POST /ManualJournals/{ManualJournalID}/Attachments/{FileName} Replace a manual journal attachment · Xero Updates a specific attachment from a specific manual journal by file name #
Ask an LLM
“Can I replace an existing attachment on a manual journal?”
“How do I upload a new version of a journal attachment?”
Tell an agent
Replace attachment {FileName} on manual journal {ManualJournalID}.
Upload a new version of {FileName} on journal {ManualJournalID}.
PUT /ManualJournals/{ManualJournalID}/Attachments/{FileName} Attach a file to a manual journal · Xero Creates a specific attachment for a specific manual journal by file name #
Ask an LLM
“How do I attach a file to a manual journal?”
“Can I upload an attachment by file name?”
Tell an agent
Attach {FileName} to manual journal {ManualJournalID}.
Upload file {FileName} as an attachment on journal {ManualJournalID}.
GET /ManualJournals/{ManualJournalID}/History Get the history of a manual journal · Xero Retrieves history for a specific manual journal #
Ask an LLM
“What changes have been made to a manual journal?”
“Can I see the audit trail of a journal?”
Tell an agent
Get the history of manual journal {ManualJournalID}.
Show the change history for journal {ManualJournalID}.
PUT /ManualJournals/{ManualJournalID}/History Add a history record to a manual journal · Xero Creates a history record for a specific manual journal #
Ask an LLM
“How do I log an action against a manual journal?”
“Can I add a history note to a journal?”
Tell an agent
Add history record {HistoryRecords} to manual journal {ManualJournalID}.
Log a note on journal {ManualJournalID} with {HistoryRecords}.
GET /Organisation Get organisation details · Retrieves Xero organisation details #
Ask an LLM
“What are the legal and financial details of my Xero organisation?”
“Can I check which name and country my organisation is registered under?”
Tell an agent
Show the organisation details for tenant {tenant}.
Get this organisation's legal setup.
GET /Organisation/Actions List actions my app may perform · Retrieves a list of the key actions your app has permission to perform in the… #
Ask an LLM
“Which actions is my connected app allowed to perform on my organisation?”
“What permissions does my app have on the organisation's data?”
Tell an agent
List the actions my app may perform in {tenant}.
Show what my app is allowed to do on the organisation.
GET /Organisation/{OrganisationID}/CISSettings Get CIS settings for an organisation · Retrieves the CIS settings for the Xero organistaion #
Ask an LLM
“What are the Construction Industry Scheme settings for this organisation?”
“Can I read the CIS settings of a connected organisation?”
Tell an agent
Get CIS settings for organisation {OrganisationID}.
Show the Construction Industry Scheme settings of {OrganisationID}.
GET /Overpayments List overpayments · Xero Retrieves overpayments #
Ask an LLM
“Which overpayments have been made against invoices?”
“Can I filter overpayments by reference?”
Tell an agent
List overpayments matching {where}.
Show overpayments for reference {References}.
GET /Overpayments/{OverpaymentID} Get an overpayment · Xero Retrieves a specific overpayment using a unique overpayment Id #
Ask an LLM
“What is the amount and status of one overpayment?”
“Can I look up an overpayment by its ID?”
Tell an agent
Get overpayment {OverpaymentID}.
Show the details of overpayment {OverpaymentID}.
PUT /Overpayments/{OverpaymentID}/Allocations Allocate an overpayment to invoices · Xero Creates a single allocation for a specific overpayment #
Ask an LLM
“How do I apply an overpayment to an invoice?”
“Can I allocate several invoices to one overpayment?”
Tell an agent
Allocate overpayment {OverpaymentID} to {Allocations}.
Apply overpayment {OverpaymentID} to invoices {Allocations}.
DELETE /Overpayments/{OverpaymentID}/Allocations/{AllocationID} Remove an allocation from an overpayment · Xero Deletes an Allocation from an overpayment #
Ask an LLM
“Can I undo an allocation on an overpayment?”
“What happens to the overpayment when an allocation is deleted?”
Tell an agent destructive · confirm first
Delete allocation {AllocationID} from overpayment {OverpaymentID}.
Remove allocation {AllocationID} on overpayment {OverpaymentID}.
GET /Overpayments/{OverpaymentID}/History Get an overpayment's history · Xero Retrieves history records of a specific overpayment #
Ask an LLM
“What changes have been made to an overpayment?”
“Can I see the audit trail of an overpayment?”
Tell an agent
Show history of overpayment {OverpaymentID}.
List changes made to overpayment {OverpaymentID}.
PUT /Overpayments/{OverpaymentID}/History Add a history record to an overpayment · Xero Creates a history record for a specific overpayment #
Ask an LLM
“Can I log a custom note on an overpayment?”
“How do I record a manual change to an overpayment?”
Tell an agent
Add history record {HistoryRecords} to overpayment {OverpaymentID}.
Log a note on overpayment {OverpaymentID} with {HistoryRecords}.
GET /Payments List payments on invoices and credit notes · Xero Retrieves payments for invoices and credit notes #
Ask an LLM
“Which payments have been received against my invoices and credit notes?”
“Can I filter payments to a single invoice or credit note?”
Tell an agent
List payments for tenant {tenant}.
Show {page} of payments matching {where}, ordered by {order}.
PUT /Payments Record multiple payments against invoices · Xero Creates multiple payments for invoices or credit notes #
Ask an LLM
“How do I record several payments against invoices in one call?”
“Can I summarize validation errors when creating payments?”
Tell an agent
Create payments {Payments} for invoices.
Record payments {Payments} with summarize errors set to {summarizeErrors}.
POST /Payments Record one payment against an invoice · Xero Creates a single payment for invoice or credit notes #
Ask an LLM
“How do I record a single payment against an invoice?”
“Can I set a reference and currency rate on one payment?”
Tell an agent
Pay {Amount} on invoice {InvoiceNumber} dated {Date}.
Record payment {Amount} against credit note {CreditNoteNumber} with reference {Reference}.
GET /Payments/{PaymentID} Get a payment · Xero Retrieves a specific payment for invoices and credit notes using a unique… #
Ask an LLM
“What is the amount and status of one payment?”
“Can I look up a payment by its ID?”
Tell an agent
Get payment {PaymentID}.
Show the details of payment {PaymentID}.
POST /Payments/{PaymentID} Delete a payment · Xero Updates a specific payment for invoices and credit notes #
Ask an LLM
“How do I delete a payment I recorded by mistake?”
“Can I void a payment on an invoice or credit note?”
Tell an agent destructive · confirm first
Void payment {payment} with status {status}.
Delete payment {payment} on tenant {tenant}.
GET /Payments/{PaymentID}/History Get a payment's history · Xero Retrieves history records of a specific payment #
Ask an LLM
“What changes have been made to a payment?”
“Can I see the audit trail of a payment?”
Tell an agent
Show history of payment {PaymentID}.
List changes made to payment {PaymentID}.
PUT /Payments/{PaymentID}/History Add a history record to a payment · Xero Creates a history record for a specific payment #
Ask an LLM
“Can I log a custom note on a payment?”
“How do I record a manual change to a payment?”
Tell an agent
Add history record {HistoryRecords} to payment {PaymentID}.
Log a note on payment {PaymentID} with {HistoryRecords}.
GET /PaymentServices List payment services · Xero Retrieves payment services #
Ask an LLM
“Which payment services are available for my organisation?”
“What payment gateways can I accept payments through?”
Tell an agent
List the payment services for tenant {tenant}.
Show which online payment providers my organisation uses.
PUT /PaymentServices Create a payment service · Xero Creates a payment service #
Ask an LLM
“How do I add a new payment service?”
“Can I create a payment service with an idempotency key?”
Tell an agent
Create payment service {PaymentServices}.
Add payment service {PaymentServices} with idempotency key {Idempotency-Key}.
GET /Prepayments List prepayments · Xero Retrieves prepayments #
Ask an LLM
“Which prepayments have been received?”
“Can I filter prepayments by invoice number?”
Tell an agent
List prepayments matching {where}.
Show prepayments for invoice {InvoiceNumbers}.
GET /Prepayments/{PrepaymentID} Get a prepayment · Xero Allows you to retrieve a specified prepayments #
Ask an LLM
“What is the amount and status of one prepayment?”
“Can I look up a prepayment by its ID?”
Tell an agent
Get prepayment {PrepaymentID}.
Show the details of prepayment {PrepaymentID}.
PUT /Prepayments/{PrepaymentID}/Allocations Allocate a prepayment to invoices · Xero Allows you to create an Allocation for prepayments #
Ask an LLM
“How do I apply a prepayment to an invoice?”
“Can I allocate several invoices to one prepayment?”
Tell an agent
Allocate prepayment {PrepaymentID} to {Allocations}.
Apply prepayment {PrepaymentID} to invoices {Allocations}.
DELETE /Prepayments/{PrepaymentID}/Allocations/{AllocationID} Remove an allocation from a prepayment · Xero Deletes an Allocation from a Prepayment #
Ask an LLM
“Can I undo an allocation on a prepayment?”
“What happens to the prepayment when an allocation is deleted?”
Tell an agent destructive · confirm first
Delete allocation {AllocationID} from prepayment {PrepaymentID}.
Remove allocation {AllocationID} on prepayment {PrepaymentID}.
GET /Prepayments/{PrepaymentID}/History Get a prepayment's history · Xero Retrieves history record for a specific prepayment #
Ask an LLM
“What changes have been made to a prepayment?”
“Can I see the audit trail of a prepayment?”
Tell an agent
Show history of prepayment {PrepaymentID}.
List changes made to prepayment {PrepaymentID}.
PUT /Prepayments/{PrepaymentID}/History Record a history entry on a prepayment · Xero Creates a history record for a specific prepayment #
Ask an LLM
“How do I log a history event on a prepayment?”
“Can I add a history record to a prepayment by its ID?”
Tell an agent
Create a history record on prepayment {prepayment_id}.
Log a history event for prepayment {prepayment_id} with records {history_records}.
GET /PurchaseOrders List purchase orders · Xero Retrieves purchase orders #
Ask an LLM
“Which purchase orders have I raised?”
“Can I list purchase orders by status or date range?”
Tell an agent
List my purchase orders.
Show purchase orders with status {status} between {date_from} and {date_to}.
PUT /PurchaseOrders Create purchase orders · Xero Creates one or more purchase orders #
Ask an LLM
“How do I create purchase orders in Xero?”
“Can I create several purchase orders in one request?”
Tell an agent
Create purchase orders {purchase_orders}.
Add new purchase orders {purchase_orders} to tenant {tenant_id}.
POST /PurchaseOrders Upsert purchase orders · Xero Updates or creates one or more purchase orders #
Ask an LLM
“How do I create purchase orders that don't exist yet and update the ones that do?”
“Can I upsert purchase orders with a single request?”
Tell an agent
Upsert purchase orders {purchase_orders}.
Create or update purchase orders {purchase_orders} for tenant {tenant_id}.
GET /PurchaseOrders/{PurchaseOrderID}/pdf Download a purchase order as PDF · Xero Retrieves specific purchase order as PDF files using a unique purchase… #
Ask an LLM
“How do I download a purchase order as a PDF?”
“Can I get a purchase order's PDF by its ID?”
Tell an agent
Download purchase order {purchase_order_id} as a PDF.
Get the PDF of purchase order {purchase_order_id}.
GET /PurchaseOrders/{PurchaseOrderID} Get a purchase order · Xero Retrieves a specific purchase order using a unique purchase order Id #
Ask an LLM
“What are the details of one purchase order?”
“Can I fetch a purchase order by its ID?”
Tell an agent
Get purchase order {purchase_order_id}.
Show the details of purchase order {purchase_order_id}.
POST /PurchaseOrders/{PurchaseOrderID} Update a purchase order · Xero Updates a specific purchase order #
Ask an LLM
“How do I edit an existing purchase order?”
“Can I change a purchase order after it's been raised?”
Tell an agent
Update purchase order {purchase_order_id} with {purchase_orders}.
Edit existing purchase order {purchase_order_id}.
GET /PurchaseOrders/{PurchaseOrderNumber} Get a purchase order by number · Xero Retrieves a specific purchase order using purchase order number #
Ask an LLM
“How do I find a purchase order using its number?”
“Can I look up a purchase order by its purchase order number?”
Tell an agent
Get the purchase order with number {purchase_order_number}.
Find purchase order {purchase_order_number} by its number.
GET /PurchaseOrders/{PurchaseOrderID}/History Get a purchase order's history · Xero Retrieves history for a specific purchase order #
Ask an LLM
“What changes have been made to a purchase order over time?”
“Can I see the history of a purchase order?”
Tell an agent
Show the history of purchase order {purchase_order_id}.
List the change history for purchase order {purchase_order_id}.
PUT /PurchaseOrders/{PurchaseOrderID}/History Record a history entry on a purchase order · Xero Creates a history record for a specific purchase orders #
Ask an LLM
“How do I log a history event on a purchase order?”
“Can I add a history record to a purchase order by its ID?”
Tell an agent
Create a history record on purchase order {purchase_order_id}.
Log a history event for purchase order {purchase_order_id} with records {history_records}.
GET /PurchaseOrders/{PurchaseOrderID}/Attachments List attachments on a purchase order · Xero Retrieves attachments for a specific purchase order #
Ask an LLM
“What documents are attached to a purchase order?”
“Can I list all attachments on a purchase order?”
Tell an agent
List attachments on purchase order {purchase_order_id}.
Show every document attached to purchase order {purchase_order_id}.
GET /PurchaseOrders/{PurchaseOrderID}/Attachments/{AttachmentID} Download a purchase order attachment by ID · Xero Retrieves specific attachment for a specific purchase order using a unique… #
Ask an LLM
“Can I fetch a purchase order attachment using its attachment ID?”
“What do I need to pull the supplier invoice attached to a purchase order?”
Tell an agent
Download attachment {attachment} from purchase order {purchase_order}.
Get attachment {attachment} on {purchase_order} for tenant {tenant}.
GET /PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName} Download a purchase order attachment by filename · Xero Retrieves a specific attachment for a specific purchase order by filename #
Ask an LLM
“Is there a way to get a purchase order attachment by its filename?”
“Can I fetch the supplier invoice on a purchase order using its file name?”
Tell an agent
Download the attachment {file} from purchase order {purchase_order}.
Get {file} on {purchase_order} for tenant {tenant}.
POST /PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName} Replace a purchase order attachment · Xero Updates a specific attachment for a specific purchase order by filename #
Ask an LLM
“How do I replace an existing attachment on a purchase order?”
“Can I overwrite a purchase order attachment by filename?”
Tell an agent
Replace the attachment named {file_name} on purchase order {purchase_order_id}.
Overwrite existing attachment {file_name} on purchase order {purchase_order_id}.
PUT /PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName} Attach a file to a purchase order · Xero Creates attachment for a specific purchase order #
Ask an LLM
“How do I attach a file to a purchase order?”
“Can I upload a document to a purchase order by filename?”
Tell an agent
Attach a file named {file_name} to purchase order {purchase_order_id}.
Upload {file_name} as a new attachment on purchase order {purchase_order_id}.
GET /Quotes List sales quotes · Xero Retrieves sales quotes #
Ask an LLM
“Which sales quotes have I sent out?”
“Can I list quotes by status or expiry date?”
Tell an agent
List my sales quotes.
Show quotes with status {status} expiring between {expiry_from} and {expiry_to}.
PUT /Quotes Create sales quotes · Xero Create one or more quotes #
Ask an LLM
“How do I create a sales quote?”
“Can I create several quotes in one request?”
Tell an agent
Create quotes {quotes}.
Add new sales quotes {quotes} to tenant {tenant_id}.
POST /Quotes Upsert sales quotes · Xero Updates or creates one or more quotes #
Ask an LLM
“How do I create quotes that don't exist and update the ones that do?”
“Can I upsert quotes with a single request?”
Tell an agent
Upsert quotes {quotes}.
Create or update sales quotes {quotes} for tenant {tenant_id}.
GET /Quotes/{QuoteID} Get a sales quote · Xero Retrieves a specific quote using a unique quote Id #
Ask an LLM
“What are the details of one sales quote?”
“Can I fetch a quote by its ID?”
Tell an agent
Get quote {quote_id}.
Show the details of sales quote {quote_id}.
POST /Quotes/{QuoteID} Update a sales quote · Xero Updates a specific quote #
Ask an LLM
“How do I edit an existing sales quote?”
“Can I change a quote after it's been sent?”
Tell an agent
Update quote {quote_id} with {quotes}.
Edit existing sales quote {quote_id}.
GET /Quotes/{QuoteID}/History Get the history of a quote · Xero Retrieves history records of a specific quote #
Ask an LLM
“How do I see the change history of a quote?”
“Can I audit edits made to a quote over time?”
Tell an agent
Show the history of quote {quote_id}.
Get the change log for quote {quote_id}.
PUT /Quotes/{QuoteID}/History Add a history record to a quote · Xero Creates a history record for a specific quote #
Ask an LLM
“Can I manually add a note to a quote's history?”
“How do I log an edit on a quote?”
Tell an agent
Add history record {history} to quote {quote_id}.
Log a change on quote {quote_id} with {history}.
GET /Quotes/{QuoteID}/pdf Download a quote as a PDF · Xero Retrieves a specific quote as a PDF file using a unique quote Id #
Ask an LLM
“How do I download a quote as a PDF?”
“Can I get a PDF of a quote to send to a customer?”
Tell an agent
Download quote {quote_id} as a PDF.
Get the PDF of quote {quote_id}.
GET /Quotes/{QuoteID}/Attachments List attachments on a quote · Xero Retrieves attachments for a specific quote #
Ask an LLM
“What files are attached to a quote?”
“Can I see all attachments on a quote?”
Tell an agent
List the attachments on quote {quote_id}.
Show every file attached to quote {quote_id}.
GET /Quotes/{QuoteID}/Attachments/{AttachmentID} Download a quote attachment by ID · Xero Retrieves a specific attachment from a specific quote using a unique… #
Ask an LLM
“Can I fetch a document attached to a quote using its attachment ID?”
“What do I need to download a quote attachment?”
Tell an agent
Download attachment {attachment} from quote {quote}.
Get attachment {attachment} on quote {quote} for tenant {tenant}.
GET /Quotes/{QuoteID}/Attachments/{FileName} Download a quote attachment by filename · Xero Retrieves a specific attachment from a specific quote by filename #
Ask an LLM
“Can I fetch a file attached to a quote using its filename?”
“How do I download a quote attachment when I only know its name?”
Tell an agent
Download the {content_type} attachment named {file_name} on quote {quote_id}.
Get quote {quote_id}'s attachment {file_name} as {content_type}.
POST /Quotes/{QuoteID}/Attachments/{FileName} Replace a quote attachment by filename · Xero Updates a specific attachment from a specific quote by filename #
Ask an LLM
“How do I replace an uploaded document on a quote?”
“Can I swap out the file attached to a quote using its filename?”
Tell an agent
Update the attachment {file} on quote {quote}.
Swap {file} on quote {quote} for tenant {tenant} using {key}.
PUT /Quotes/{QuoteID}/Attachments/{FileName} Attach a file to a quote · Xero Creates attachment for a specific quote #
Ask an LLM
“How do I attach a file to a quote?”
“Can I add a new attachment to a quote by filename?”
Tell an agent
Attach a file named {file_name} to quote {quote_id}.
Add {file_name} as an attachment on quote {quote_id}.
GET /Receipts List draft expense claim receipts · Xero Retrieves draft expense claim receipts for any user #
Ask an LLM
“Which draft expense claim receipts exist for my user?”
“Can I filter draft receipts by status?”
Tell an agent
List my draft expense claim receipts.
Show draft receipts matching {where}.
PUT /Receipts Create draft expense claim receipts · Xero Creates draft expense claim receipts for any user #
Ask an LLM
“How do I create a draft receipt for an expense claim?”
“Can I add a new draft receipt for a user?”
Tell an agent
Create draft receipts {receipts}.
Add new draft expense claim receipts {receipts}.
GET /Receipts/{ReceiptID} Get a draft expense claim receipt · Xero Retrieves a specific draft expense claim receipt by using a unique receipt… #
Ask an LLM
“How do I view one draft receipt?”
“Can I fetch a single draft receipt by ID?”
Tell an agent
Get draft receipt {receipt_id}.
Show draft expense claim receipt {receipt_id}.
POST /Receipts/{ReceiptID} Update a draft expense claim receipt · Xero Updates a specific draft expense claim receipts #
Ask an LLM
“Can I edit an existing draft receipt?”
“How do I correct a draft expense claim receipt?”
Tell an agent
Update draft receipt {receipt_id} with {receipts}.
Correct draft expense claim receipt {receipt_id}.
GET /Receipts/{ReceiptID}/Attachments List attachments on a draft receipt · Xero Retrieves attachments for a specific expense claim receipt #
Ask an LLM
“What files are attached to a draft receipt?”
“Can I see all attachments on a draft expense claim receipt?”
Tell an agent
List the attachments on draft receipt {receipt_id}.
Show every file attached to draft expense claim receipt {receipt_id}.
GET /Receipts/{ReceiptID}/Attachments/{AttachmentID} Download a draft receipt attachment by ID · Xero Retrieves a specific attachments from a specific expense claim receipts by… #
Ask an LLM
“How do I download a specific file attached to a draft receipt?”
“Can I fetch a draft receipt attachment by its attachment ID?”
Tell an agent
Download attachment {attachment_id} from draft receipt {receipt_id}.
Get draft receipt {receipt_id}'s attachment {attachment_id}.
GET /Receipts/{ReceiptID}/Attachments/{FileName} Download a draft receipt attachment by filename · Xero Retrieves a specific attachment from a specific expense claim receipts by… #
Ask an LLM
“Can I fetch a file attached to a draft receipt using its filename?”
“How do I download a draft receipt attachment when I only know its name?”
Tell an agent
Download the {content_type} attachment named {file_name} on draft receipt {receipt_id}.
Get draft receipt {receipt_id}'s attachment {file_name} as {content_type}.
POST /Receipts/{ReceiptID}/Attachments/{FileName} Replace an expense receipt attachment by filename · Xero Updates a specific attachment on a specific expense claim receipts by file… #
Ask an LLM
“Can I replace a receipt uploaded with an expense claim?”
“How do I update the file on an expense claim attachment?”
Tell an agent
Update the attachment {file} on receipt {receipt}.
Replace {file} on expense claim {receipt} for tenant {tenant} with {key}.
PUT /Receipts/{ReceiptID}/Attachments/{FileName} Attach a file to a draft receipt · Xero Creates an attachment on a specific expense claim receipts by file name #
Ask an LLM
“How do I attach a file to a draft receipt?”
“Can I add a new attachment to a draft expense claim receipt by filename?”
Tell an agent
Attach a file named {file_name} to draft receipt {receipt_id}.
Add {file_name} as an attachment on draft receipt {receipt_id}.
GET /Receipts/{ReceiptID}/History Get the history of a draft receipt · Xero Retrieves a history record for a specific receipt #
Ask an LLM
“How do I see the change history of a draft receipt?”
“Can I audit edits made to a draft receipt?”
Tell an agent
Show the history of draft receipt {receipt_id}.
Get the change log for draft receipt {receipt_id}.
PUT /Receipts/{ReceiptID}/History Add a history record to a draft receipt · Xero Creates a history record for a specific receipt #
Ask an LLM
“Can I manually add a note to a draft receipt's history?”
“How do I log an edit on a draft receipt?”
Tell an agent
Add history record {history} to draft receipt {receipt_id}.
Log a change on draft receipt {receipt_id} with {history}.
GET /RepeatingInvoices List repeating invoices · Xero Retrieves repeating invoices #
Ask an LLM
“Which repeating invoices are set up in my tenant?”
“Can I filter repeating invoices?”
Tell an agent
List my repeating invoices.
Show repeating invoices matching {where}.
PUT /RepeatingInvoices Create repeating invoice templates · Xero Creates one or more repeating invoice templates #
Ask an LLM
“How do I set up recurring invoices for my customers?”
“Can I create several repeating invoice templates in one request?”
Tell an agent
Create repeating invoice templates {templates}.
Set up new recurring invoices for my customers.
POST /RepeatingInvoices Create or delete repeating invoice templates · Xero Creates or deletes one or more repeating invoice templates #
Ask an LLM
“Can I create new repeating invoices and delete old ones in one call?”
“What happens to existing templates when I send a mixed create and delete request?”
Tell an agent
Create or delete repeating invoice templates {templates}.
Upsert recurring invoice templates for my customers.
GET /RepeatingInvoices/{RepeatingInvoiceID} Get a repeating invoice template · Xero Retrieves a specific repeating invoice by using a unique repeating invoice… #
Ask an LLM
“How do I view one recurring invoice template?”
“Can I fetch a single repeating invoice by its ID?”
Tell an agent
Get repeating invoice template {invoice}.
Show the settings of recurring invoice {invoice}.
POST /RepeatingInvoices/{RepeatingInvoiceID} Delete a repeating invoice template · Xero Deletes a specific repeating invoice template #
Ask an LLM
“How do I stop a recurring invoice from being sent?”
“Can I delete a repeating invoice template?”
Tell an agent destructive · confirm first
Delete repeating invoice template {invoice}.
Stop recurring invoice {invoice} from being sent.
GET /RepeatingInvoices/{RepeatingInvoiceID}/Attachments List attachments on a repeating invoice · Xero Retrieves attachments from a specific repeating invoice #
Ask an LLM
“Which files are attached to a recurring invoice?”
“Can I see all attachments on a repeating invoice?”
Tell an agent
List attachments on repeating invoice {invoice}.
Show every file attached to recurring invoice {invoice}.
GET /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID} Get one attachment on a repeating invoice · Xero Retrieves a specific attachment from a specific repeating invoice #
Ask an LLM
“How do I download a specific file attached to a recurring invoice?”
“Can I fetch a repeating invoice attachment by its ID?”
Tell an agent
Get attachment {attachment} from repeating invoice {invoice}.
Download file {attachment} attached to recurring invoice {invoice}.
GET /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} Get a repeating invoice attachment by file name · Xero Retrieves a specific attachment from a specific repeating invoices by file… #
Ask an LLM
“Can I fetch a file on a recurring invoice by its name?”
“How do I find a repeating invoice attachment when I only know its file name?”
Tell an agent
Get attachment {file} on repeating invoice {invoice}.
Find the file named {file} on recurring invoice {invoice}.
POST /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} Replace a repeating invoice attachment · Xero Updates a specific attachment from a specific repeating invoices by file… #
Ask an LLM
“How do I replace a file on a recurring invoice?”
“Can I overwrite an existing attachment on a repeating invoice?”
Tell an agent
Replace attachment {file} on repeating invoice {invoice}.
Overwrite the file {file} on recurring invoice {invoice}.
PUT /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} Attach a file to a repeating invoice · Xero Creates an attachment from a specific repeating invoices by file name #
Ask an LLM
“How do I attach a file to a recurring invoice?”
“Can I upload a file to a repeating invoice by its name?”
Tell an agent
Attach {file} to repeating invoice {invoice}.
Upload a file to recurring invoice {invoice} as {file}.
GET /RepeatingInvoices/{RepeatingInvoiceID}/History Get a repeating invoice's history · Xero Retrieves history record for a specific repeating invoice #
Ask an LLM
“What changes have been made to a recurring invoice?”
“Can I see the history record of a repeating invoice?”
Tell an agent
Get the history of repeating invoice {invoice}.
Show change history for recurring invoice {invoice}.
PUT /RepeatingInvoices/{RepeatingInvoiceID}/History Add a history record to a repeating invoice · Xero Creates a history record for a specific repeating invoice #
Ask an LLM
“How do I log a change against a recurring invoice?”
“Can I add a history record to a repeating invoice?”
Tell an agent
Add history records {history} to repeating invoice {invoice}.
Log changes on recurring invoice {invoice}.
GET /Reports/TenNinetyNine Get a 1099 report · Xero Retrieve reports for 1099 #
Ask an LLM
“How do I pull the 1099 report for a given year?”
“Can I get a 1099 report for a specific tax year?”
Tell an agent
Get the 1099 report for {year}.
Pull the 1099 form for tax year {year}.
GET /Reports/AgedPayablesByContact Get aged payables by contact · Xero Retrieves report for aged payables by contact #
Ask an LLM
“How do I see how much a vendor owes me?”
“Can I filter the aged payables report by date?”
Tell an agent
Get aged payables for contact {contact}.
Show how much {contact} owes me, from {from} to {to}.
GET /Reports/AgedReceivablesByContact Get aged receivables by contact · Xero Retrieves report for aged receivables by contact #
Ask an LLM
“How much does each customer owe me, aged by days?”
“Can I run an aged receivables report for one contact?”
Tell an agent
Get the aged receivables report for contact {contact}.
Show how much {contact} owes me as of {date}.
GET /Reports/BalanceSheet Get a balance sheet report · Xero Retrieves report for balancesheet #
Ask an LLM
“What does my balance sheet look like as of a given date?”
“Can I compare several periods side by side on the balance sheet?”
Tell an agent
Get the balance sheet report for tenant {tenant}.
Show a balance sheet for {tenant} as of {date}, compared over {periods} periods by {timeframe}.
GET /Reports/BankSummary Get a bank summary report · Xero Retrieves report for bank summary #
Ask an LLM
“How do I see bank balances over a date range?”
“Can I get a bank summary report for a period?”
Tell an agent
Get the bank summary report from {from} to {to}.
Show bank balances between {from} and {to}.
GET /Reports/{ReportID} Get a report by report ID · Xero Retrieves a specific report using a unique ReportID #
Ask an LLM
“How do I fetch a report when I know its report ID?”
“Can I retrieve a specific report by its unique ID?”
Tell an agent
Get report {report}.
Fetch the report with ID {report}.
GET /Reports/BudgetSummary Get a budget summary report · Xero Retrieves report for budget summary #
Ask an LLM
“How do I compare budget versus actuals over a period?”
“Can I get a budget summary report for a date?”
Tell an agent
Get the budget summary report for {date}.
Show budget versus actuals for {periods} {timeframe}.
GET /Reports/ExecutiveSummary Get an executive summary report · Xero Retrieves report for executive summary #
Ask an LLM
“How do I get an executive summary of the business?”
“Can I pull the executive summary report for a date?”
Tell an agent
Get the executive summary report for {date}.
Show the executive summary for {date}.
GET /Reports List available reports · Xero Retrieves a list of the organistaions unique reports that require a uuid… #
Ask an LLM
“Which reports does my organisation have access to?”
“Can I get the list of unique report UUIDs for my organisation?”
Tell an agent
List the available reports for tenant {tenant}.
Show me the report UUIDs my organisation can run.
GET /Reports/ProfitAndLoss Get a profit and loss report · Xero Retrieves report for profit and loss #
Ask an LLM
“How do I pull a profit and loss report for a date range?”
“Can I compare several periods in one profit and loss report?”
Tell an agent
Get the profit and loss report for tenant {tenant} from {fromDate} to {toDate}.
Show the profit and loss report for {tenant} comparing {periods} {timeframe} periods.
GET /Reports/TrialBalance Get a trial balance report · Xero Retrieves report for trial balance #
Ask an LLM
“What were my ledger balances at a point in time?”
“Can I get a trial balance on a cash basis?”
Tell an agent
Get the trial balance for tenant {tenant} as of {date}.
Show the cash-only trial balance for {tenant} as of {date}.
POST /Setup Set up a new chart of accounts and conversion balances · Xero Sets the chart of accounts, the conversion date and conversion balances #
Ask an LLM
“How do I import my existing chart of accounts and opening balances into Xero?”
“What conversion date and balances do I need to start a new business?”
Tell an agent
Set up the chart of accounts for tenant {tenant} with conversion date {date}.
Import conversion balances {balances} for tenant {tenant} starting {date}.
GET /TaxRates List tax rates · Xero Retrieves tax rates #
Ask an LLM
“What tax rates are set up in my Xero tenant?”
“Can I filter the tax rates by a condition?”
Tell an agent
List the tax rates for tenant {tenant}.
Show tax rates in tenant {tenant} matching {where}.
PUT /TaxRates Create tax rates · Xero Creates one or more tax rates #
Ask an LLM
“How do I add a new tax rate to my chart of accounts?”
“Can I create several tax rates in one request?”
Tell an agent
Create tax rates {rates} in tenant {tenant}.
Add a new tax rate to tenant {tenant} using idempotency key {key}.
POST /TaxRates Update tax rates · Xero Updates tax rates #
Ask an LLM
“How do I change an existing tax rate?”
“Can I update several tax rates at once?”
Tell an agent
Update tax rates {rates} in tenant {tenant}.
Change the existing tax rates in tenant {tenant} with idempotency key {key}.
GET /TaxRates/{TaxType} Get a tax rate by its code · Xero Retrieves a specific tax rate according to given TaxType code #
Ask an LLM
“What is the rate for a given tax type code?”
“Can I look up one tax rate by its tax type?”
Tell an agent
Get the tax rate for tax type {taxType} in tenant {tenant}.
Show the {taxType} tax rate for tenant {tenant}.
GET /TrackingCategories List tracking categories and options · Xero Retrieves tracking categories and options #
Ask an LLM
“What tracking categories and options are set up in my tenant?”
“Can I include archived tracking categories in the list?”
Tell an agent
List tracking categories and options for tenant {tenant}.
Show tracking categories in tenant {tenant} including archived ones.
PUT /TrackingCategories Create a tracking category · Xero Create tracking categories #
Ask an LLM
“How do I add a new tracking category like Department or Region?”
“Can I create a tracking category with its options in one call?”
Tell an agent
Create tracking category {name} in tenant {tenant}.
Add a tracking category {name} with options {options} to tenant {tenant}.
GET /TrackingCategories/{TrackingCategoryID} Get a tracking category and its options · Xero Retrieves specific tracking categories and options using a unique tracking… #
Ask an LLM
“What options are available in a tracking category?”
“Can I fetch one tracking category by its ID?”
Tell an agent
Get tracking category {category} in tenant {tenant}.
Show the options of tracking category {category} for tenant {tenant}.
POST /TrackingCategories/{TrackingCategoryID} Update a tracking category · Xero Updates a specific tracking category #
Ask an LLM
“How do I rename a tracking category?”
“Can I change the status of a tracking category?”
Tell an agent
Rename tracking category {category} in tenant {tenant} to {name}.
Set tracking category {category} in tenant {tenant} to status {status}.
DELETE /TrackingCategories/{TrackingCategoryID} Delete a tracking category · Xero Deletes a specific tracking category #
Ask an LLM
“How do I remove a tracking category I no longer use?”
“Can I delete a tracking category by its ID?”
Tell an agent destructive · confirm first
Delete tracking category {category} from tenant {tenant}.
Remove the unused tracking category {category} in tenant {tenant}.
PUT /TrackingCategories/{TrackingCategoryID}/Options Create an option in a tracking category · Xero Creates options for a specific tracking category #
Ask an LLM
“How do I add a new cost centre or tracking category option in Xero?”
“Can I create a tracking option for a category that doesn't have one yet?”
Tell an agent
Create a new tracking option {Name} in tracking category {TrackingCategoryID} for tenant {xero-tenant-id}.
Add tracking option {Name} to category {TrackingCategoryID} with status {Status}.
POST /TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID} Update a tracking option · Xero Updates a specific option for a specific tracking category #
Ask an LLM
“How do I rename an existing tracking option?”
“Can I deactivate a tracking option?”
Tell an agent
Rename tracking option {option} in category {category} to {name}.
Set tracking option {option} in category {category} to status {status}.
DELETE /TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID} Delete a tracking option · Xero Deletes a specific option for a specific tracking category #
Ask an LLM
“How do I remove a single tracking option from a category?”
“Can I delete a tracking option by its ID?”
Tell an agent destructive · confirm first
Delete tracking option {option} from category {category} in tenant {tenant}.
Remove tracking option {option} under category {category} for tenant {tenant}.
GET /Users List users in the tenant · Xero Retrieves users #
Ask an LLM
“Who are the users set up in my Xero tenant?”
“Can I filter the user list by a condition?”
Tell an agent
List the users in tenant {tenant}.
Show users in tenant {tenant} matching {where}.
GET /Users/{UserID} Get a user · Xero Retrieves a specific user #
Ask an LLM
“What details are stored for one user?”
“Can I fetch a single user by their ID?”
Tell an agent
Get user {user} in tenant {tenant}.
Show the profile of user {user} for tenant {tenant}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xero:xero-accounting-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xero-accounting-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Xero Accounting API
  version: 11.1.0
  termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/
  contact:
    name: Xero Platform Team
    email: api@xero.com
    url: https://developer.xero.com
servers:
- description: The Xero Accounting API exposes accounting and related functions of the main Xero application and can be used for a variety of purposes such as creating transactions like invoices and credit notes, right through to extracting accounting data via our reports endpoint.
  url: https://api.xero.com/api.xro/2.0
tags:


# --- truncated at 32 KB (860 KB total) ---
# Full source: https://artifacts.apis.io/xero/openapi/xero-accounting-api-openapi.yml