Class AccountingApi
- java.lang.Object
-
- com.xero.api.client.AccountingApi
-
public class AccountingApi extends Object
AccountingApi has methods for interacting with all endpoints in the API set
-
-
Constructor Summary
Constructors Constructor Description AccountingApi()AccountingApiAccountingApi(ApiClient apiClient)AccountingApi
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayInputStreamconvertInputToByteArray(InputStream is)convert intput to byte arrayAccountscreateAccount(String accessToken, String xeroTenantId, Account account)Creates a new chart of accountsAttachmentscreateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType)Creates an attachment on a specific accountAttachmentscreateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body)Creates an attachment on a specific accountcom.google.api.client.http.HttpResponsecreateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType)Creates an attachment on a specific accountcom.google.api.client.http.HttpResponsecreateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body)Creates an attachment on a specific accountcom.google.api.client.http.HttpResponsecreateAccountForHttpResponse(String accessToken, String xeroTenantId, Account account)Creates a new chart of accountsAttachmentscreateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType)Creates an attachment for a specific bank transaction by filenameAttachmentscreateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body)Creates an attachment for a specific bank transaction by filenamecom.google.api.client.http.HttpResponsecreateBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType)Creates an attachment for a specific bank transaction by filenamecom.google.api.client.http.HttpResponsecreateBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body)Creates an attachment for a specific bank transaction by filenameHistoryRecordscreateBankTransactionHistoryRecord(String accessToken, String xeroTenantId, UUID bankTransactionID, HistoryRecords historyRecords)Creates a history record for a specific bank transactionscom.google.api.client.http.HttpResponsecreateBankTransactionHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, HistoryRecords historyRecords)Creates a history record for a specific bank transactionsBankTransactionscreateBankTransactions(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp)Creates one or more spent or received money transactioncom.google.api.client.http.HttpResponsecreateBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp)Creates one or more spent or received money transactionBankTransferscreateBankTransfer(String accessToken, String xeroTenantId, BankTransfers bankTransfers)Creates a bank transferAttachmentscreateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank TransferAttachmentscreateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfercom.google.api.client.http.HttpResponsecreateBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfercom.google.api.client.http.HttpResponsecreateBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfercom.google.api.client.http.HttpResponsecreateBankTransferForHttpResponse(String accessToken, String xeroTenantId, BankTransfers bankTransfers)Creates a bank transferHistoryRecordscreateBankTransferHistoryRecord(String accessToken, String xeroTenantId, UUID bankTransferID, HistoryRecords historyRecords)Creates a history record for a specific bank transfercom.google.api.client.http.HttpResponsecreateBankTransferHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, HistoryRecords historyRecords)Creates a history record for a specific bank transferBatchPaymentscreateBatchPayment(String accessToken, String xeroTenantId, BatchPayments batchPayments, Boolean summarizeErrors)Creates one or many batch payments for invoicescom.google.api.client.http.HttpResponsecreateBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, BatchPayments batchPayments, Boolean summarizeErrors)Creates one or many batch payments for invoicesHistoryRecordscreateBatchPaymentHistoryRecord(String accessToken, String xeroTenantId, UUID batchPaymentID, HistoryRecords historyRecords)Creates a history record for a specific batch paymentcom.google.api.client.http.HttpResponsecreateBatchPaymentHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID, HistoryRecords historyRecords)Creates a history record for a specific batch paymentPaymentServicescreateBrandingThemePaymentServices(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentService paymentService)Creates a new custom payment service for a specific branding themecom.google.api.client.http.HttpResponsecreateBrandingThemePaymentServicesForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentService paymentService)Creates a new custom payment service for a specific branding themeAttachmentscreateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType)200 - Success - return response of type Attachments array with an newly created AttachmentAttachmentscreateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body)200 - Success - return response of type Attachments array with an newly created Attachmentcom.google.api.client.http.HttpResponsecreateContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType)200 - Success - return response of type Attachments array with an newly created Attachmentcom.google.api.client.http.HttpResponsecreateContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body)200 - Success - return response of type Attachments array with an newly created AttachmentContactGroupscreateContactGroup(String accessToken, String xeroTenantId, ContactGroups contactGroups)Creates a contact groupContactscreateContactGroupContacts(String accessToken, String xeroTenantId, UUID contactGroupID, Contacts contacts)Creates contacts to a specific contact groupcom.google.api.client.http.HttpResponsecreateContactGroupContactsForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, Contacts contacts)Creates contacts to a specific contact groupcom.google.api.client.http.HttpResponsecreateContactGroupForHttpResponse(String accessToken, String xeroTenantId, ContactGroups contactGroups)Creates a contact groupHistoryRecordscreateContactHistory(String accessToken, String xeroTenantId, UUID contactID, HistoryRecords historyRecords)Creates a new history record for a specific contactcom.google.api.client.http.HttpResponsecreateContactHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, HistoryRecords historyRecords)Creates a new history record for a specific contactContactscreateContacts(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors)Creates multiple contacts (bulk) in a Xero organisationcom.google.api.client.http.HttpResponsecreateContactsForHttpResponse(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors)Creates multiple contacts (bulk) in a Xero organisationAllocationscreateCreditNoteAllocation(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors)Creates allocation for a specific credit notecom.google.api.client.http.HttpResponsecreateCreditNoteAllocationForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors)Creates allocation for a specific credit noteAttachmentscreateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, Boolean includeOnline, String mimeType)Creates an attachment for a specific credit noteAttachmentscreateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body, Boolean includeOnline)Creates an attachment for a specific credit notecom.google.api.client.http.HttpResponsecreateCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, Boolean includeOnline, String mimeType)Creates an attachment for a specific credit notecom.google.api.client.http.HttpResponsecreateCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body, Boolean includeOnline)Creates an attachment for a specific credit noteHistoryRecordscreateCreditNoteHistory(String accessToken, String xeroTenantId, UUID creditNoteID, HistoryRecords historyRecords)Retrieves history records of a specific credit notecom.google.api.client.http.HttpResponsecreateCreditNoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, HistoryRecords historyRecords)Retrieves history records of a specific credit noteCreditNotescreateCreditNotes(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp)Creates a new credit notecom.google.api.client.http.HttpResponsecreateCreditNotesForHttpResponse(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp)Creates a new credit noteCurrenciescreateCurrency(String accessToken, String xeroTenantId, Currency currency)Create a new currency for a Xero organisationcom.google.api.client.http.HttpResponsecreateCurrencyForHttpResponse(String accessToken, String xeroTenantId, Currency currency)Create a new currency for a Xero organisationEmployeescreateEmployees(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors)Creates new employees used in Xero payruncom.google.api.client.http.HttpResponsecreateEmployeesForHttpResponse(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors)Creates new employees used in Xero payrunHistoryRecordscreateExpenseClaimHistory(String accessToken, String xeroTenantId, UUID expenseClaimID, HistoryRecords historyRecords)Creates a history record for a specific expense claimcom.google.api.client.http.HttpResponsecreateExpenseClaimHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID, HistoryRecords historyRecords)Creates a history record for a specific expense claimExpenseClaimscreateExpenseClaims(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims)Creates expense claimscom.google.api.client.http.HttpResponsecreateExpenseClaimsForHttpResponse(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims)Creates expense claimsAttachmentscreateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, Boolean includeOnline, String mimeType)Creates an attachment for a specific invoice or purchase bill by filenameAttachmentscreateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body, Boolean includeOnline)Creates an attachment for a specific invoice or purchase bill by filenamecom.google.api.client.http.HttpResponsecreateInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, Boolean includeOnline, String mimeType)Creates an attachment for a specific invoice or purchase bill by filenamecom.google.api.client.http.HttpResponsecreateInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body, Boolean includeOnline)Creates an attachment for a specific invoice or purchase bill by filenameHistoryRecordscreateInvoiceHistory(String accessToken, String xeroTenantId, UUID invoiceID, HistoryRecords historyRecords)Creates a history record for a specific invoicecom.google.api.client.http.HttpResponsecreateInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, HistoryRecords historyRecords)Creates a history record for a specific invoiceInvoicescreateInvoices(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp)Creates one or more sales invoices or purchase billscom.google.api.client.http.HttpResponsecreateInvoicesForHttpResponse(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp)Creates one or more sales invoices or purchase billsHistoryRecordscreateItemHistory(String accessToken, String xeroTenantId, UUID itemID, HistoryRecords historyRecords)Creates a history record for a specific itemcom.google.api.client.http.HttpResponsecreateItemHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, HistoryRecords historyRecords)Creates a history record for a specific itemItemscreateItems(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp)Creates one or more itemscom.google.api.client.http.HttpResponsecreateItemsForHttpResponse(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp)Creates one or more itemsLinkedTransactionscreateLinkedTransaction(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction)Creates linked transactions (billable expenses)com.google.api.client.http.HttpResponsecreateLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction)Creates linked transactions (billable expenses)AttachmentscreateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType)Creates a specific attachment for a specific manual journal by file nameAttachmentscreateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body)Creates a specific attachment for a specific manual journal by file namecom.google.api.client.http.HttpResponsecreateManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType)Creates a specific attachment for a specific manual journal by file namecom.google.api.client.http.HttpResponsecreateManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body)Creates a specific attachment for a specific manual journal by file nameHistoryRecordscreateManualJournalHistoryRecord(String accessToken, String xeroTenantId, UUID manualJournalID, HistoryRecords historyRecords)Creates a history record for a specific manual journalcom.google.api.client.http.HttpResponsecreateManualJournalHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, HistoryRecords historyRecords)Creates a history record for a specific manual journalManualJournalscreateManualJournals(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors)Creates one or more manual journalscom.google.api.client.http.HttpResponsecreateManualJournalsForHttpResponse(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors)Creates one or more manual journalsAllocationscreateOverpaymentAllocations(String accessToken, String xeroTenantId, UUID overpaymentID, Allocations allocations, Boolean summarizeErrors)Creates a single allocation for a specific overpaymentcom.google.api.client.http.HttpResponsecreateOverpaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, Allocations allocations, Boolean summarizeErrors)Creates a single allocation for a specific overpaymentHistoryRecordscreateOverpaymentHistory(String accessToken, String xeroTenantId, UUID overpaymentID, HistoryRecords historyRecords)Creates a history record for a specific overpaymentcom.google.api.client.http.HttpResponsecreateOverpaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, HistoryRecords historyRecords)Creates a history record for a specific overpaymentPaymentscreatePayment(String accessToken, String xeroTenantId, Payment payment)Creates a single payment for invoice or credit notescom.google.api.client.http.HttpResponsecreatePaymentForHttpResponse(String accessToken, String xeroTenantId, Payment payment)Creates a single payment for invoice or credit notesHistoryRecordscreatePaymentHistory(String accessToken, String xeroTenantId, UUID paymentID, HistoryRecords historyRecords)Creates a history record for a specific paymentcom.google.api.client.http.HttpResponsecreatePaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, HistoryRecords historyRecords)Creates a history record for a specific paymentPaymentscreatePayments(String accessToken, String xeroTenantId, Payments payments, Boolean summarizeErrors)Creates multiple payments for invoices or credit notesPaymentServicescreatePaymentService(String accessToken, String xeroTenantId, PaymentServices paymentServices)Creates a payment servicecom.google.api.client.http.HttpResponsecreatePaymentServiceForHttpResponse(String accessToken, String xeroTenantId, PaymentServices paymentServices)Creates a payment servicecom.google.api.client.http.HttpResponsecreatePaymentsForHttpResponse(String accessToken, String xeroTenantId, Payments payments, Boolean summarizeErrors)Creates multiple payments for invoices or credit notesAllocationscreatePrepaymentAllocations(String accessToken, String xeroTenantId, UUID prepaymentID, Allocations allocations, Boolean summarizeErrors)Allows you to create an Allocation for prepaymentscom.google.api.client.http.HttpResponsecreatePrepaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, Allocations allocations, Boolean summarizeErrors)Allows you to create an Allocation for prepaymentsHistoryRecordscreatePrepaymentHistory(String accessToken, String xeroTenantId, UUID prepaymentID, HistoryRecords historyRecords)Creates a history record for a specific prepaymentcom.google.api.client.http.HttpResponsecreatePrepaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, HistoryRecords historyRecords)Creates a history record for a specific prepaymentAttachmentscreatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType)Creates attachment for a specific purchase orderAttachmentscreatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body)Creates attachment for a specific purchase ordercom.google.api.client.http.HttpResponsecreatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType)Creates attachment for a specific purchase ordercom.google.api.client.http.HttpResponsecreatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body)Creates attachment for a specific purchase orderHistoryRecordscreatePurchaseOrderHistory(String accessToken, String xeroTenantId, UUID purchaseOrderID, HistoryRecords historyRecords)Creates a history record for a specific purchase orderscom.google.api.client.http.HttpResponsecreatePurchaseOrderHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, HistoryRecords historyRecords)Creates a history record for a specific purchase ordersPurchaseOrderscreatePurchaseOrders(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors)Creates one or more purchase orderscom.google.api.client.http.HttpResponsecreatePurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors)Creates one or more purchase ordersAttachmentscreateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType)Creates attachment for a specific quoteAttachmentscreateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body)Creates attachment for a specific quotecom.google.api.client.http.HttpResponsecreateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType)Creates attachment for a specific quotecom.google.api.client.http.HttpResponsecreateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body)Creates attachment for a specific quoteHistoryRecordscreateQuoteHistory(String accessToken, String xeroTenantId, UUID quoteID, HistoryRecords historyRecords)Creates a history record for a specific quotecom.google.api.client.http.HttpResponsecreateQuoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, HistoryRecords historyRecords)Creates a history record for a specific quoteQuotescreateQuotes(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors)Create one or more quotescom.google.api.client.http.HttpResponsecreateQuotesForHttpResponse(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors)Create one or more quotesReceiptscreateReceipt(String accessToken, String xeroTenantId, Receipts receipts, Integer unitdp)Creates draft expense claim receipts for any userAttachmentscreateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType)Creates an attachment on a specific expense claim receipts by file nameAttachmentscreateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body)Creates an attachment on a specific expense claim receipts by file namecom.google.api.client.http.HttpResponsecreateReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType)Creates an attachment on a specific expense claim receipts by file namecom.google.api.client.http.HttpResponsecreateReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body)Creates an attachment on a specific expense claim receipts by file namecom.google.api.client.http.HttpResponsecreateReceiptForHttpResponse(String accessToken, String xeroTenantId, Receipts receipts, Integer unitdp)Creates draft expense claim receipts for any userHistoryRecordscreateReceiptHistory(String accessToken, String xeroTenantId, UUID receiptID, HistoryRecords historyRecords)Creates a history record for a specific receiptcom.google.api.client.http.HttpResponsecreateReceiptHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, HistoryRecords historyRecords)Creates a history record for a specific receiptAttachmentscreateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType)Creates an attachment from a specific repeating invoices by file nameAttachmentscreateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body)Creates an attachment from a specific repeating invoices by file namecom.google.api.client.http.HttpResponsecreateRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType)Creates an attachment from a specific repeating invoices by file namecom.google.api.client.http.HttpResponsecreateRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body)Creates an attachment from a specific repeating invoices by file nameHistoryRecordscreateRepeatingInvoiceHistory(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, HistoryRecords historyRecords)Creates a history record for a specific repeating invoicecom.google.api.client.http.HttpResponsecreateRepeatingInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, HistoryRecords historyRecords)Creates a history record for a specific repeating invoiceTaxRatescreateTaxRates(String accessToken, String xeroTenantId, TaxRates taxRates)Creates one or more tax ratescom.google.api.client.http.HttpResponsecreateTaxRatesForHttpResponse(String accessToken, String xeroTenantId, TaxRates taxRates)Creates one or more tax ratesTrackingCategoriescreateTrackingCategory(String accessToken, String xeroTenantId, TrackingCategory trackingCategory)Create tracking categoriescom.google.api.client.http.HttpResponsecreateTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, TrackingCategory trackingCategory)Create tracking categoriesTrackingOptionscreateTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingOption trackingOption)Creates options for a specific tracking categorycom.google.api.client.http.HttpResponsecreateTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingOption trackingOption)Creates options for a specific tracking categoryAccountsdeleteAccount(String accessToken, String xeroTenantId, UUID accountID)Deletes a chart of accountscom.google.api.client.http.HttpResponsedeleteAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID)Deletes a chart of accountsvoiddeleteContactGroupContact(String accessToken, String xeroTenantId, UUID contactGroupID, UUID contactID)Deletes a specific contact from a contact group using a unique contact Idcom.google.api.client.http.HttpResponsedeleteContactGroupContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, UUID contactID)Deletes a specific contact from a contact group using a unique contact IdvoiddeleteContactGroupContacts(String accessToken, String xeroTenantId, UUID contactGroupID)Deletes all contacts from a specific contact groupcom.google.api.client.http.HttpResponsedeleteContactGroupContactsForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID)Deletes all contacts from a specific contact groupvoiddeleteItem(String accessToken, String xeroTenantId, UUID itemID)Deletes a specific itemcom.google.api.client.http.HttpResponsedeleteItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID)Deletes a specific itemvoiddeleteLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID)Deletes a specific linked transactions (billable expenses)com.google.api.client.http.HttpResponsedeleteLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID)Deletes a specific linked transactions (billable expenses)PaymentsdeletePayment(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete)Updates a specific payment for invoices and credit notescom.google.api.client.http.HttpResponsedeletePaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete)Updates a specific payment for invoices and credit notesTrackingCategoriesdeleteTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID)Deletes a specific tracking categorycom.google.api.client.http.HttpResponsedeleteTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID)Deletes a specific tracking categoryTrackingOptionsdeleteTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID)Deletes a specific option for a specific tracking categorycom.google.api.client.http.HttpResponsedeleteTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID)Deletes a specific option for a specific tracking categoryvoidemailInvoice(String accessToken, String xeroTenantId, UUID invoiceID, RequestEmpty requestEmpty)Sends a copy of a specific invoice to related contact via emailcom.google.api.client.http.HttpResponseemailInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, RequestEmpty requestEmpty)Sends a copy of a specific invoice to related contact via emailAccountsgetAccount(String accessToken, String xeroTenantId, UUID accountID)Retrieves a single chart of accounts by using a unique account IdByteArrayInputStreamgetAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, String contentType)Retrieves an attachment for a specific account by filenamecom.google.api.client.http.HttpResponsegetAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, String contentType)Retrieves an attachment for a specific account by filenameByteArrayInputStreamgetAccountAttachmentById(String accessToken, String xeroTenantId, UUID accountID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific account using a unique attachment Idcom.google.api.client.http.HttpResponsegetAccountAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific account using a unique attachment IdAttachmentsgetAccountAttachments(String accessToken, String xeroTenantId, UUID accountID)Retrieves attachments for a specific accounts by using a unique account Idcom.google.api.client.http.HttpResponsegetAccountAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID accountID)Retrieves attachments for a specific accounts by using a unique account Idcom.google.api.client.http.HttpResponsegetAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID)Retrieves a single chart of accounts by using a unique account IdAccountsgetAccounts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves the full chart of accountscom.google.api.client.http.HttpResponsegetAccountsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves the full chart of accountsApiClientgetApiClient()get ApiClientBankTransactionsgetBankTransaction(String accessToken, String xeroTenantId, UUID bankTransactionID, Integer unitdp)Retrieves a single spent or received money transaction by using a unique bank transaction IdByteArrayInputStreamgetBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, String contentType)Retrieves a specific attachment from a specific bank transaction by filenamecom.google.api.client.http.HttpResponsegetBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, String contentType)Retrieves a specific attachment from a specific bank transaction by filenameByteArrayInputStreamgetBankTransactionAttachmentById(String accessToken, String xeroTenantId, UUID bankTransactionID, UUID attachmentID, String contentType)Retrieves specific attachments from a specific BankTransaction using a unique attachment Idcom.google.api.client.http.HttpResponsegetBankTransactionAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, UUID attachmentID, String contentType)Retrieves specific attachments from a specific BankTransaction using a unique attachment IdAttachmentsgetBankTransactionAttachments(String accessToken, String xeroTenantId, UUID bankTransactionID)Retrieves any attachments from a specific bank transactionscom.google.api.client.http.HttpResponsegetBankTransactionAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID)Retrieves any attachments from a specific bank transactionscom.google.api.client.http.HttpResponsegetBankTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, Integer unitdp)Retrieves a single spent or received money transaction by using a unique bank transaction IdBankTransactionsgetBankTransactions(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves any spent or received money transactionscom.google.api.client.http.HttpResponsegetBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves any spent or received money transactionsHistoryRecordsgetBankTransactionsHistory(String accessToken, String xeroTenantId, UUID bankTransactionID)Retrieves history from a specific bank transaction using a unique bank transaction Idcom.google.api.client.http.HttpResponsegetBankTransactionsHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID)Retrieves history from a specific bank transaction using a unique bank transaction IdBankTransfersgetBankTransfer(String accessToken, String xeroTenantId, UUID bankTransferID)Retrieves specific bank transfers by using a unique bank transfer IdByteArrayInputStreamgetBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, String contentType)Retrieves a specific attachment on a specific bank transfer by file namecom.google.api.client.http.HttpResponsegetBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, String contentType)Retrieves a specific attachment on a specific bank transfer by file nameByteArrayInputStreamgetBankTransferAttachmentById(String accessToken, String xeroTenantId, UUID bankTransferID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific bank transfer using a unique attachment IDcom.google.api.client.http.HttpResponsegetBankTransferAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific bank transfer using a unique attachment IDAttachmentsgetBankTransferAttachments(String accessToken, String xeroTenantId, UUID bankTransferID)Retrieves attachments from a specific bank transfercom.google.api.client.http.HttpResponsegetBankTransferAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID)Retrieves attachments from a specific bank transfercom.google.api.client.http.HttpResponsegetBankTransferForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID)Retrieves specific bank transfers by using a unique bank transfer IdHistoryRecordsgetBankTransferHistory(String accessToken, String xeroTenantId, UUID bankTransferID)Retrieves history from a specific bank transfer using a unique bank transfer Idcom.google.api.client.http.HttpResponsegetBankTransferHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID)Retrieves history from a specific bank transfer using a unique bank transfer IdBankTransfersgetBankTransfers(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves all bank transferscom.google.api.client.http.HttpResponsegetBankTransfersForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves all bank transfersHistoryRecordsgetBatchPaymentHistory(String accessToken, String xeroTenantId, UUID batchPaymentID)Retrieves history from a specific batch paymentcom.google.api.client.http.HttpResponsegetBatchPaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID)Retrieves history from a specific batch paymentBatchPaymentsgetBatchPayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves either one or many batch payments for invoicescom.google.api.client.http.HttpResponsegetBatchPaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves either one or many batch payments for invoicesBrandingThemesgetBrandingTheme(String accessToken, String xeroTenantId, UUID brandingThemeID)Retrieves a specific branding theme using a unique branding theme Idcom.google.api.client.http.HttpResponsegetBrandingThemeForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID)Retrieves a specific branding theme using a unique branding theme IdPaymentServicesgetBrandingThemePaymentServices(String accessToken, String xeroTenantId, UUID brandingThemeID)Retrieves the payment services for a specific branding themecom.google.api.client.http.HttpResponsegetBrandingThemePaymentServicesForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID)Retrieves the payment services for a specific branding themeBrandingThemesgetBrandingThemes(String accessToken, String xeroTenantId)Retrieves all the branding themescom.google.api.client.http.HttpResponsegetBrandingThemesForHttpResponse(String accessToken, String xeroTenantId)Retrieves all the branding themesBudgetsgetBudget(String accessToken, String xeroTenantId, UUID budgetID)Retrieves a specific budgets, which includes budget linescom.google.api.client.http.HttpResponsegetBudgetForHttpResponse(String accessToken, String xeroTenantId, UUID budgetID)Retrieves a specific budgets, which includes budget linesBudgetsgetBudgets(String accessToken, String xeroTenantId, List<UUID> ids, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom)Retrieve a list of budgetscom.google.api.client.http.HttpResponsegetBudgetsForHttpResponse(String accessToken, String xeroTenantId, List<UUID> ids, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom)Retrieve a list of budgetsContactsgetContact(String accessToken, String xeroTenantId, UUID contactID)Retrieves a specific contacts in a Xero organisation using a unique contact IdByteArrayInputStreamgetContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, String contentType)Retrieves a specific attachment from a specific contact by file namecom.google.api.client.http.HttpResponsegetContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, String contentType)Retrieves a specific attachment from a specific contact by file nameByteArrayInputStreamgetContactAttachmentById(String accessToken, String xeroTenantId, UUID contactID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific contact using a unique attachment Idcom.google.api.client.http.HttpResponsegetContactAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific contact using a unique attachment IdAttachmentsgetContactAttachments(String accessToken, String xeroTenantId, UUID contactID)Retrieves attachments for a specific contact in a Xero organisationcom.google.api.client.http.HttpResponsegetContactAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID contactID)Retrieves attachments for a specific contact in a Xero organisationContactsgetContactByContactNumber(String accessToken, String xeroTenantId, String contactNumber)Retrieves a specific contact by contact number in a Xero organisationcom.google.api.client.http.HttpResponsegetContactByContactNumberForHttpResponse(String accessToken, String xeroTenantId, String contactNumber)Retrieves a specific contact by contact number in a Xero organisationCISSettingsgetContactCISSettings(String accessToken, String xeroTenantId, UUID contactID)Retrieves CIS settings for a specific contact in a Xero organisationcom.google.api.client.http.HttpResponsegetContactCISSettingsForHttpResponse(String accessToken, String xeroTenantId, UUID contactID)Retrieves CIS settings for a specific contact in a Xero organisationcom.google.api.client.http.HttpResponsegetContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactID)Retrieves a specific contacts in a Xero organisation using a unique contact IdContactGroupsgetContactGroup(String accessToken, String xeroTenantId, UUID contactGroupID)Retrieves a specific contact group by using a unique contact group Idcom.google.api.client.http.HttpResponsegetContactGroupForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID)Retrieves a specific contact group by using a unique contact group IdContactGroupsgetContactGroups(String accessToken, String xeroTenantId, String where, String order)Retrieves the contact Id and name of each contact groupcom.google.api.client.http.HttpResponsegetContactGroupsForHttpResponse(String accessToken, String xeroTenantId, String where, String order)Retrieves the contact Id and name of each contact groupHistoryRecordsgetContactHistory(String accessToken, String xeroTenantId, UUID contactID)Retrieves history records for a specific contactcom.google.api.client.http.HttpResponsegetContactHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID contactID)Retrieves history records for a specific contactContactsgetContacts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, Integer page, Boolean includeArchived, Boolean summaryOnly)Retrieves all contacts in a Xero organisationcom.google.api.client.http.HttpResponsegetContactsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, Integer page, Boolean includeArchived, Boolean summaryOnly)Retrieves all contacts in a Xero organisationCreditNotesgetCreditNote(String accessToken, String xeroTenantId, UUID creditNoteID, Integer unitdp)Retrieves a specific credit note using a unique credit note IdByteArrayInputStreamgetCreditNoteAsPdf(String accessToken, String xeroTenantId, UUID creditNoteID)Retrieves credit notes as PDF filescom.google.api.client.http.HttpResponsegetCreditNoteAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID)Retrieves credit notes as PDF filesByteArrayInputStreamgetCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, String contentType)Retrieves a specific attachment on a specific credit note by file namecom.google.api.client.http.HttpResponsegetCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, String contentType)Retrieves a specific attachment on a specific credit note by file nameByteArrayInputStreamgetCreditNoteAttachmentById(String accessToken, String xeroTenantId, UUID creditNoteID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific credit note using a unique attachment Idcom.google.api.client.http.HttpResponsegetCreditNoteAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific credit note using a unique attachment IdAttachmentsgetCreditNoteAttachments(String accessToken, String xeroTenantId, UUID creditNoteID)Retrieves attachments for a specific credit notescom.google.api.client.http.HttpResponsegetCreditNoteAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID)Retrieves attachments for a specific credit notescom.google.api.client.http.HttpResponsegetCreditNoteForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Integer unitdp)Retrieves a specific credit note using a unique credit note IdHistoryRecordsgetCreditNoteHistory(String accessToken, String xeroTenantId, UUID creditNoteID)Retrieves history records of a specific credit notecom.google.api.client.http.HttpResponsegetCreditNoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID)Retrieves history records of a specific credit noteCreditNotesgetCreditNotes(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves any credit notescom.google.api.client.http.HttpResponsegetCreditNotesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves any credit notesCurrenciesgetCurrencies(String accessToken, String xeroTenantId, String where, String order)Retrieves currencies for your Xero organisationcom.google.api.client.http.HttpResponsegetCurrenciesForHttpResponse(String accessToken, String xeroTenantId, String where, String order)Retrieves currencies for your Xero organisationEmployeesgetEmployee(String accessToken, String xeroTenantId, UUID employeeID)Retrieves a specific employee used in Xero payrun using a unique employee Idcom.google.api.client.http.HttpResponsegetEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID)Retrieves a specific employee used in Xero payrun using a unique employee IdEmployeesgetEmployees(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves employees used in Xero payruncom.google.api.client.http.HttpResponsegetEmployeesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves employees used in Xero payrunExpenseClaimsgetExpenseClaim(String accessToken, String xeroTenantId, UUID expenseClaimID)Retrieves a specific expense claim using a unique expense claim Idcom.google.api.client.http.HttpResponsegetExpenseClaimForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID)Retrieves a specific expense claim using a unique expense claim IdHistoryRecordsgetExpenseClaimHistory(String accessToken, String xeroTenantId, UUID expenseClaimID)Retrieves history records of a specific expense claimcom.google.api.client.http.HttpResponsegetExpenseClaimHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID)Retrieves history records of a specific expense claimExpenseClaimsgetExpenseClaims(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves expense claimscom.google.api.client.http.HttpResponsegetExpenseClaimsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves expense claimsstatic AccountingApigetInstance(ApiClient apiClient)AccountingApi getInstanceInvoicesgetInvoice(String accessToken, String xeroTenantId, UUID invoiceID, Integer unitdp)Retrieves a specific sales invoice or purchase bill using a unique invoice IdByteArrayInputStreamgetInvoiceAsPdf(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves invoices or purchase bills as PDF filescom.google.api.client.http.HttpResponsegetInvoiceAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves invoices or purchase bills as PDF filesByteArrayInputStreamgetInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, String contentType)Retrieves an attachment from a specific invoice or purchase bill by filenamecom.google.api.client.http.HttpResponsegetInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, String contentType)Retrieves an attachment from a specific invoice or purchase bill by filenameByteArrayInputStreamgetInvoiceAttachmentById(String accessToken, String xeroTenantId, UUID invoiceID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Idcom.google.api.client.http.HttpResponsegetInvoiceAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment IdAttachmentsgetInvoiceAttachments(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves attachments for a specific invoice or purchase billcom.google.api.client.http.HttpResponsegetInvoiceAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves attachments for a specific invoice or purchase billcom.google.api.client.http.HttpResponsegetInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, Integer unitdp)Retrieves a specific sales invoice or purchase bill using a unique invoice IdHistoryRecordsgetInvoiceHistory(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves history records for a specific invoicecom.google.api.client.http.HttpResponsegetInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves history records for a specific invoiceInvoiceRemindersgetInvoiceReminders(String accessToken, String xeroTenantId)Retrieves invoice reminder settingscom.google.api.client.http.HttpResponsegetInvoiceRemindersForHttpResponse(String accessToken, String xeroTenantId)Retrieves invoice reminder settingsInvoicesgetInvoices(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, List<String> invoiceNumbers, List<UUID> contactIDs, List<String> statuses, Integer page, Boolean includeArchived, Boolean createdByMyApp, Integer unitdp, Boolean summaryOnly)Retrieves sales invoices or purchase billscom.google.api.client.http.HttpResponsegetInvoicesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, List<String> invoiceNumbers, List<UUID> contactIDs, List<String> statuses, Integer page, Boolean includeArchived, Boolean createdByMyApp, Integer unitdp, Boolean summaryOnly)Retrieves sales invoices or purchase billsItemsgetItem(String accessToken, String xeroTenantId, UUID itemID, Integer unitdp)Retrieves a specific item using a unique item Idcom.google.api.client.http.HttpResponsegetItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, Integer unitdp)Retrieves a specific item using a unique item IdHistoryRecordsgetItemHistory(String accessToken, String xeroTenantId, UUID itemID)Retrieves history for a specific itemcom.google.api.client.http.HttpResponsegetItemHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID itemID)Retrieves history for a specific itemItemsgetItems(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp)Retrieves itemscom.google.api.client.http.HttpResponsegetItemsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp)Retrieves itemsJournalsgetJournal(String accessToken, String xeroTenantId, UUID journalID)Retrieves a specific journal using a unique journal Id.com.google.api.client.http.HttpResponsegetJournalForHttpResponse(String accessToken, String xeroTenantId, UUID journalID)Retrieves a specific journal using a unique journal Id.JournalsgetJournals(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, Integer offset, Boolean paymentsOnly)Retrieves journalscom.google.api.client.http.HttpResponsegetJournalsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, Integer offset, Boolean paymentsOnly)Retrieves journalsLinkedTransactionsgetLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID)Retrieves a specific linked transaction (billable expenses) using a unique linked transaction Idcom.google.api.client.http.HttpResponsegetLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID)Retrieves a specific linked transaction (billable expenses) using a unique linked transaction IdLinkedTransactionsgetLinkedTransactions(String accessToken, String xeroTenantId, Integer page, UUID linkedTransactionID, UUID sourceTransactionID, UUID contactID, String status, UUID targetTransactionID)Retrieves linked transactions (billable expenses)com.google.api.client.http.HttpResponsegetLinkedTransactionsForHttpResponse(String accessToken, String xeroTenantId, Integer page, UUID linkedTransactionID, UUID sourceTransactionID, UUID contactID, String status, UUID targetTransactionID)Retrieves linked transactions (billable expenses)ManualJournalsgetManualJournal(String accessToken, String xeroTenantId, UUID manualJournalID)Retrieves a specific manual journalByteArrayInputStreamgetManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, String contentType)Retrieves a specific attachment from a specific manual journal by file namecom.google.api.client.http.HttpResponsegetManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, String contentType)Retrieves a specific attachment from a specific manual journal by file nameByteArrayInputStreamgetManualJournalAttachmentById(String accessToken, String xeroTenantId, UUID manualJournalID, UUID attachmentID, String contentType)Allows you to retrieve a specific attachment from a specific manual journal using a unique attachment Idcom.google.api.client.http.HttpResponsegetManualJournalAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, UUID attachmentID, String contentType)Allows you to retrieve a specific attachment from a specific manual journal using a unique attachment IdAttachmentsgetManualJournalAttachments(String accessToken, String xeroTenantId, UUID manualJournalID)Retrieves attachment for a specific manual journalcom.google.api.client.http.HttpResponsegetManualJournalAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID)Retrieves attachment for a specific manual journalcom.google.api.client.http.HttpResponsegetManualJournalForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID)Retrieves a specific manual journalManualJournalsgetManualJournals(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page)Retrieves manual journalscom.google.api.client.http.HttpResponsegetManualJournalsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page)Retrieves manual journalsHistoryRecordsgetManualJournalsHistory(String accessToken, String xeroTenantId, UUID manualJournalID)Retrieves history for a specific manual journalcom.google.api.client.http.HttpResponsegetManualJournalsHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID)Retrieves history for a specific manual journalOnlineInvoicesgetOnlineInvoice(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves a URL to an online invoicecom.google.api.client.http.HttpResponsegetOnlineInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID)Retrieves a URL to an online invoiceActionsgetOrganisationActions(String accessToken, String xeroTenantId)Retrieves a list of the key actions your app has permission to perform in the connected Xero organisation.com.google.api.client.http.HttpResponsegetOrganisationActionsForHttpResponse(String accessToken, String xeroTenantId)Retrieves a list of the key actions your app has permission to perform in the connected Xero organisation.CISOrgSettingsgetOrganisationCISSettings(String accessToken, String xeroTenantId, UUID organisationID)Retrieves the CIS settings for the Xero organistaion.com.google.api.client.http.HttpResponsegetOrganisationCISSettingsForHttpResponse(String accessToken, String xeroTenantId, UUID organisationID)Retrieves the CIS settings for the Xero organistaion.OrganisationsgetOrganisations(String accessToken, String xeroTenantId)Retrieves Xero organisation detailscom.google.api.client.http.HttpResponsegetOrganisationsForHttpResponse(String accessToken, String xeroTenantId)Retrieves Xero organisation detailsOverpaymentsgetOverpayment(String accessToken, String xeroTenantId, UUID overpaymentID)Retrieves a specific overpayment using a unique overpayment Idcom.google.api.client.http.HttpResponsegetOverpaymentForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID)Retrieves a specific overpayment using a unique overpayment IdHistoryRecordsgetOverpaymentHistory(String accessToken, String xeroTenantId, UUID overpaymentID)Retrieves history records of a specific overpaymentcom.google.api.client.http.HttpResponsegetOverpaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID)Retrieves history records of a specific overpaymentOverpaymentsgetOverpayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves overpaymentscom.google.api.client.http.HttpResponsegetOverpaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves overpaymentsPaymentsgetPayment(String accessToken, String xeroTenantId, UUID paymentID)Retrieves a specific payment for invoices and credit notes using a unique payment Idcom.google.api.client.http.HttpResponsegetPaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID)Retrieves a specific payment for invoices and credit notes using a unique payment IdHistoryRecordsgetPaymentHistory(String accessToken, String xeroTenantId, UUID paymentID)Retrieves history records of a specific paymentcom.google.api.client.http.HttpResponsegetPaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID)Retrieves history records of a specific paymentPaymentsgetPayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page)Retrieves payments for invoices and credit notesPaymentServicesgetPaymentServices(String accessToken, String xeroTenantId)Retrieves payment servicescom.google.api.client.http.HttpResponsegetPaymentServicesForHttpResponse(String accessToken, String xeroTenantId)Retrieves payment servicescom.google.api.client.http.HttpResponsegetPaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page)Retrieves payments for invoices and credit notesPrepaymentsgetPrepayment(String accessToken, String xeroTenantId, UUID prepaymentID)Allows you to retrieve a specified prepaymentscom.google.api.client.http.HttpResponsegetPrepaymentForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID)Allows you to retrieve a specified prepaymentsHistoryRecordsgetPrepaymentHistory(String accessToken, String xeroTenantId, UUID prepaymentID)Retrieves history record for a specific prepaymentcom.google.api.client.http.HttpResponsegetPrepaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID)Retrieves history record for a specific prepaymentPrepaymentsgetPrepayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves prepaymentscom.google.api.client.http.HttpResponsegetPrepaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp)Retrieves prepaymentsPurchaseOrdersgetPurchaseOrder(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves a specific purchase order using a unique purchase order IdByteArrayInputStreamgetPurchaseOrderAsPdf(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves specific purchase order as PDF files using a unique purchase order Idcom.google.api.client.http.HttpResponsegetPurchaseOrderAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves specific purchase order as PDF files using a unique purchase order IdByteArrayInputStreamgetPurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, String contentType)Retrieves a specific attachment for a specific purchase order by filenamecom.google.api.client.http.HttpResponsegetPurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, String contentType)Retrieves a specific attachment for a specific purchase order by filenameByteArrayInputStreamgetPurchaseOrderAttachmentById(String accessToken, String xeroTenantId, UUID purchaseOrderID, UUID attachmentID, String contentType)Retrieves specific attachment for a specific purchase order using a unique attachment Idcom.google.api.client.http.HttpResponsegetPurchaseOrderAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, UUID attachmentID, String contentType)Retrieves specific attachment for a specific purchase order using a unique attachment IdAttachmentsgetPurchaseOrderAttachments(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves attachments for a specific purchase ordercom.google.api.client.http.HttpResponsegetPurchaseOrderAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves attachments for a specific purchase orderPurchaseOrdersgetPurchaseOrderByNumber(String accessToken, String xeroTenantId, String purchaseOrderNumber)Retrieves a specific purchase order using purchase order numbercom.google.api.client.http.HttpResponsegetPurchaseOrderByNumberForHttpResponse(String accessToken, String xeroTenantId, String purchaseOrderNumber)Retrieves a specific purchase order using purchase order numbercom.google.api.client.http.HttpResponsegetPurchaseOrderForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves a specific purchase order using a unique purchase order IdHistoryRecordsgetPurchaseOrderHistory(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves history for a specific purchase ordercom.google.api.client.http.HttpResponsegetPurchaseOrderHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID)Retrieves history for a specific purchase orderPurchaseOrdersgetPurchaseOrders(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String status, String dateFrom, String dateTo, String order, Integer page)Retrieves purchase orderscom.google.api.client.http.HttpResponsegetPurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String status, String dateFrom, String dateTo, String order, Integer page)Retrieves purchase ordersQuotesgetQuote(String accessToken, String xeroTenantId, UUID quoteID)Retrieves a specific quote using a unique quote IdByteArrayInputStreamgetQuoteAsPdf(String accessToken, String xeroTenantId, UUID quoteID)Retrieves a specific quote as a PDF file using a unique quote Idcom.google.api.client.http.HttpResponsegetQuoteAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID)Retrieves a specific quote as a PDF file using a unique quote IdByteArrayInputStreamgetQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, String contentType)Retrieves a specific attachment from a specific quote by filenamecom.google.api.client.http.HttpResponsegetQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, String contentType)Retrieves a specific attachment from a specific quote by filenameByteArrayInputStreamgetQuoteAttachmentById(String accessToken, String xeroTenantId, UUID quoteID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific quote using a unique attachment Idcom.google.api.client.http.HttpResponsegetQuoteAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific quote using a unique attachment IdAttachmentsgetQuoteAttachments(String accessToken, String xeroTenantId, UUID quoteID)Retrieves attachments for a specific quotecom.google.api.client.http.HttpResponsegetQuoteAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID)Retrieves attachments for a specific quotecom.google.api.client.http.HttpResponsegetQuoteForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID)Retrieves a specific quote using a unique quote IdHistoryRecordsgetQuoteHistory(String accessToken, String xeroTenantId, UUID quoteID)Retrieves history records of a specific quotecom.google.api.client.http.HttpResponsegetQuoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID)Retrieves history records of a specific quoteQuotesgetQuotes(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, org.threeten.bp.LocalDate dateFrom, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate expiryDateFrom, org.threeten.bp.LocalDate expiryDateTo, UUID contactID, String status, Integer page, String order, String quoteNumber)Retrieves sales quotescom.google.api.client.http.HttpResponsegetQuotesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, org.threeten.bp.LocalDate dateFrom, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate expiryDateFrom, org.threeten.bp.LocalDate expiryDateTo, UUID contactID, String status, Integer page, String order, String quoteNumber)Retrieves sales quotesReceiptsgetReceipt(String accessToken, String xeroTenantId, UUID receiptID, Integer unitdp)Retrieves a specific draft expense claim receipt by using a unique receipt IdByteArrayInputStreamgetReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, String contentType)Retrieves a specific attachment from a specific expense claim receipts by file namecom.google.api.client.http.HttpResponsegetReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, String contentType)Retrieves a specific attachment from a specific expense claim receipts by file nameByteArrayInputStreamgetReceiptAttachmentById(String accessToken, String xeroTenantId, UUID receiptID, UUID attachmentID, String contentType)Retrieves a specific attachments from a specific expense claim receipts by using a unique attachment Idcom.google.api.client.http.HttpResponsegetReceiptAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, UUID attachmentID, String contentType)Retrieves a specific attachments from a specific expense claim receipts by using a unique attachment IdAttachmentsgetReceiptAttachments(String accessToken, String xeroTenantId, UUID receiptID)Retrieves attachments for a specific expense claim receiptcom.google.api.client.http.HttpResponsegetReceiptAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID)Retrieves attachments for a specific expense claim receiptcom.google.api.client.http.HttpResponsegetReceiptForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, Integer unitdp)Retrieves a specific draft expense claim receipt by using a unique receipt IdHistoryRecordsgetReceiptHistory(String accessToken, String xeroTenantId, UUID receiptID)Retrieves a history record for a specific receiptcom.google.api.client.http.HttpResponsegetReceiptHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID)Retrieves a history record for a specific receiptReceiptsgetReceipts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp)Retrieves draft expense claim receipts for any usercom.google.api.client.http.HttpResponsegetReceiptsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp)Retrieves draft expense claim receipts for any userRepeatingInvoicesgetRepeatingInvoice(String accessToken, String xeroTenantId, UUID repeatingInvoiceID)Retrieves a specific repeating invoice by using a unique repeating invoice IdByteArrayInputStreamgetRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, String contentType)Retrieves a specific attachment from a specific repeating invoices by file namecom.google.api.client.http.HttpResponsegetRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, String contentType)Retrieves a specific attachment from a specific repeating invoices by file nameByteArrayInputStreamgetRepeatingInvoiceAttachmentById(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific repeating invoicecom.google.api.client.http.HttpResponsegetRepeatingInvoiceAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, UUID attachmentID, String contentType)Retrieves a specific attachment from a specific repeating invoiceAttachmentsgetRepeatingInvoiceAttachments(String accessToken, String xeroTenantId, UUID repeatingInvoiceID)Retrieves attachments from a specific repeating invoicecom.google.api.client.http.HttpResponsegetRepeatingInvoiceAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID)Retrieves attachments from a specific repeating invoicecom.google.api.client.http.HttpResponsegetRepeatingInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID)Retrieves a specific repeating invoice by using a unique repeating invoice IdHistoryRecordsgetRepeatingInvoiceHistory(String accessToken, String xeroTenantId, UUID repeatingInvoiceID)Retrieves history record for a specific repeating invoicecom.google.api.client.http.HttpResponsegetRepeatingInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID)Retrieves history record for a specific repeating invoiceRepeatingInvoicesgetRepeatingInvoices(String accessToken, String xeroTenantId, String where, String order)Retrieves repeating invoicescom.google.api.client.http.HttpResponsegetRepeatingInvoicesForHttpResponse(String accessToken, String xeroTenantId, String where, String order)Retrieves repeating invoicesReportWithRowsgetReportAgedPayablesByContact(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate)Retrieves report for aged payables by contactcom.google.api.client.http.HttpResponsegetReportAgedPayablesByContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate)Retrieves report for aged payables by contactReportWithRowsgetReportAgedReceivablesByContact(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate)Retrieves report for aged receivables by contactcom.google.api.client.http.HttpResponsegetReportAgedReceivablesByContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate)Retrieves report for aged receivables by contactReportWithRowsgetReportBalanceSheet(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, String timeframe, String trackingOptionID1, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly)Retrieves report for balancesheetcom.google.api.client.http.HttpResponsegetReportBalanceSheetForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, String timeframe, String trackingOptionID1, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly)Retrieves report for balancesheetReportWithRowsgetReportBankSummary(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate)Retrieves report for bank summarycom.google.api.client.http.HttpResponsegetReportBankSummaryForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate)Retrieves report for bank summaryReportWithRowsgetReportBudgetSummary(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, Integer timeframe)Retrieves report for budget summarycom.google.api.client.http.HttpResponsegetReportBudgetSummaryForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, Integer timeframe)Retrieves report for budget summaryReportWithRowsgetReportExecutiveSummary(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date)Retrieves report for executive summarycom.google.api.client.http.HttpResponsegetReportExecutiveSummaryForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date)Retrieves report for executive summaryReportWithRowsgetReportFromId(String accessToken, String xeroTenantId, String reportID)Retrieves a specific report using a unique ReportIDcom.google.api.client.http.HttpResponsegetReportFromIdForHttpResponse(String accessToken, String xeroTenantId, String reportID)Retrieves a specific report using a unique ReportIDReportWithRowsgetReportProfitAndLoss(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, Integer periods, String timeframe, String trackingCategoryID, String trackingCategoryID2, String trackingOptionID, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly)Retrieves report for profit and losscom.google.api.client.http.HttpResponsegetReportProfitAndLossForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, Integer periods, String timeframe, String trackingCategoryID, String trackingCategoryID2, String trackingOptionID, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly)Retrieves report for profit and lossReportWithRowsgetReportsList(String accessToken, String xeroTenantId)Retrieves a list of the organistaions unique reports that require a uuid to fetchcom.google.api.client.http.HttpResponsegetReportsListForHttpResponse(String accessToken, String xeroTenantId)Retrieves a list of the organistaions unique reports that require a uuid to fetchReportsgetReportTenNinetyNine(String accessToken, String xeroTenantId, String reportYear)Retrieve reports for 1099com.google.api.client.http.HttpResponsegetReportTenNinetyNineForHttpResponse(String accessToken, String xeroTenantId, String reportYear)Retrieve reports for 1099ReportWithRowsgetReportTrialBalance(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Boolean paymentsOnly)Retrieves report for trial balancecom.google.api.client.http.HttpResponsegetReportTrialBalanceForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Boolean paymentsOnly)Retrieves report for trial balanceTaxRatesgetTaxRates(String accessToken, String xeroTenantId, String where, String order, String taxType)Retrieves tax ratescom.google.api.client.http.HttpResponsegetTaxRatesForHttpResponse(String accessToken, String xeroTenantId, String where, String order, String taxType)Retrieves tax ratesTrackingCategoriesgetTrackingCategories(String accessToken, String xeroTenantId, String where, String order, Boolean includeArchived)Retrieves tracking categories and optionscom.google.api.client.http.HttpResponsegetTrackingCategoriesForHttpResponse(String accessToken, String xeroTenantId, String where, String order, Boolean includeArchived)Retrieves tracking categories and optionsTrackingCategoriesgetTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID)Retrieves specific tracking categories and options using a unique tracking category Idcom.google.api.client.http.HttpResponsegetTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID)Retrieves specific tracking categories and options using a unique tracking category IdUsersgetUser(String accessToken, String xeroTenantId, UUID userID)Retrieves a specific userStringgetUserAgent()get user agentcom.google.api.client.http.HttpResponsegetUserForHttpResponse(String accessToken, String xeroTenantId, UUID userID)Retrieves a specific userUsersgetUsers(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves userscom.google.api.client.http.HttpResponsegetUsersForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order)Retrieves usersImportSummaryObjectpostSetup(String accessToken, String xeroTenantId, Setup setup)Sets the chart of accounts, the conversion date and conversion balancescom.google.api.client.http.HttpResponsepostSetupForHttpResponse(String accessToken, String xeroTenantId, Setup setup)Sets the chart of accounts, the conversion date and conversion balancesvoidsetApiClient(ApiClient apiClient)set ApiClientvoidsetUserAgent(String userAgent)set user agentAccountsupdateAccount(String accessToken, String xeroTenantId, UUID accountID, Accounts accounts)Updates a chart of accountsAttachmentsupdateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType)Updates attachment on a specific account by filenameAttachmentsupdateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body)Updates attachment on a specific account by filenamecom.google.api.client.http.HttpResponseupdateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType)Updates attachment on a specific account by filenamecom.google.api.client.http.HttpResponseupdateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body)Updates attachment on a specific account by filenamecom.google.api.client.http.HttpResponseupdateAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, Accounts accounts)Updates a chart of accountsBankTransactionsupdateBankTransaction(String accessToken, String xeroTenantId, UUID bankTransactionID, BankTransactions bankTransactions, Integer unitdp)Updates a single spent or received money transactionAttachmentsupdateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific bank transaction by filenameAttachmentsupdateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body)Updates a specific attachment from a specific bank transaction by filenamecom.google.api.client.http.HttpResponseupdateBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific bank transaction by filenamecom.google.api.client.http.HttpResponseupdateBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body)Updates a specific attachment from a specific bank transaction by filenamecom.google.api.client.http.HttpResponseupdateBankTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, BankTransactions bankTransactions, Integer unitdp)Updates a single spent or received money transactionAttachmentsupdateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank TransferAttachmentsupdateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfercom.google.api.client.http.HttpResponseupdateBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfercom.google.api.client.http.HttpResponseupdateBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body)200 - Success - return response of Attachments array of 0 to N Attachment for a Bank TransferContactsupdateContact(String accessToken, String xeroTenantId, UUID contactID, Contacts contacts)Updates a specific contact in a Xero organisationAttachmentsupdateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType)200 - Success - return response of type Attachments array with an updated AttachmentAttachmentsupdateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body)200 - Success - return response of type Attachments array with an updated Attachmentcom.google.api.client.http.HttpResponseupdateContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType)200 - Success - return response of type Attachments array with an updated Attachmentcom.google.api.client.http.HttpResponseupdateContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body)200 - Success - return response of type Attachments array with an updated Attachmentcom.google.api.client.http.HttpResponseupdateContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, Contacts contacts)Updates a specific contact in a Xero organisationContactGroupsupdateContactGroup(String accessToken, String xeroTenantId, UUID contactGroupID, ContactGroups contactGroups)Updates a specific contact groupcom.google.api.client.http.HttpResponseupdateContactGroupForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, ContactGroups contactGroups)Updates a specific contact groupCreditNotesupdateCreditNote(String accessToken, String xeroTenantId, UUID creditNoteID, CreditNotes creditNotes, Integer unitdp)Updates a specific credit noteAttachmentsupdateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, String mimeType)Updates attachments on a specific credit note by file nameAttachmentsupdateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body)Updates attachments on a specific credit note by file namecom.google.api.client.http.HttpResponseupdateCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, String mimeType)Updates attachments on a specific credit note by file namecom.google.api.client.http.HttpResponseupdateCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body)Updates attachments on a specific credit note by file namecom.google.api.client.http.HttpResponseupdateCreditNoteForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, CreditNotes creditNotes, Integer unitdp)Updates a specific credit noteExpenseClaimsupdateExpenseClaim(String accessToken, String xeroTenantId, UUID expenseClaimID, ExpenseClaims expenseClaims)Updates a specific expense claimscom.google.api.client.http.HttpResponseupdateExpenseClaimForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID, ExpenseClaims expenseClaims)Updates a specific expense claimsInvoicesupdateInvoice(String accessToken, String xeroTenantId, UUID invoiceID, Invoices invoices, Integer unitdp)Updates a specific sales invoices or purchase billsAttachmentsupdateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, String mimeType)Updates an attachment from a specific invoices or purchase bill by filenameAttachmentsupdateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body)Updates an attachment from a specific invoices or purchase bill by filenamecom.google.api.client.http.HttpResponseupdateInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, String mimeType)Updates an attachment from a specific invoices or purchase bill by filenamecom.google.api.client.http.HttpResponseupdateInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body)Updates an attachment from a specific invoices or purchase bill by filenamecom.google.api.client.http.HttpResponseupdateInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, Invoices invoices, Integer unitdp)Updates a specific sales invoices or purchase billsItemsupdateItem(String accessToken, String xeroTenantId, UUID itemID, Items items, Integer unitdp)Updates a specific itemcom.google.api.client.http.HttpResponseupdateItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, Items items, Integer unitdp)Updates a specific itemLinkedTransactionsupdateLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID, LinkedTransactions linkedTransactions)Updates a specific linked transactions (billable expenses)com.google.api.client.http.HttpResponseupdateLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID, LinkedTransactions linkedTransactions)Updates a specific linked transactions (billable expenses)ManualJournalsupdateManualJournal(String accessToken, String xeroTenantId, UUID manualJournalID, ManualJournals manualJournals)Updates a specific manual journalAttachmentsupdateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific manual journal by file nameAttachmentsupdateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body)Updates a specific attachment from a specific manual journal by file namecom.google.api.client.http.HttpResponseupdateManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific manual journal by file namecom.google.api.client.http.HttpResponseupdateManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body)Updates a specific attachment from a specific manual journal by file namecom.google.api.client.http.HttpResponseupdateManualJournalForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, ManualJournals manualJournals)Updates a specific manual journalBankTransactionsupdateOrCreateBankTransactions(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more spent or received money transactioncom.google.api.client.http.HttpResponseupdateOrCreateBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more spent or received money transactionContactsupdateOrCreateContacts(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors)Updates or creates one or more contacts in a Xero organisationcom.google.api.client.http.HttpResponseupdateOrCreateContactsForHttpResponse(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors)Updates or creates one or more contacts in a Xero organisationCreditNotesupdateOrCreateCreditNotes(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more credit notescom.google.api.client.http.HttpResponseupdateOrCreateCreditNotesForHttpResponse(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more credit notesEmployeesupdateOrCreateEmployees(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors)Creates a single new employees used in Xero payruncom.google.api.client.http.HttpResponseupdateOrCreateEmployeesForHttpResponse(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors)Creates a single new employees used in Xero payrunInvoicesupdateOrCreateInvoices(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more sales invoices or purchase billscom.google.api.client.http.HttpResponseupdateOrCreateInvoicesForHttpResponse(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more sales invoices or purchase billsItemsupdateOrCreateItems(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more itemscom.google.api.client.http.HttpResponseupdateOrCreateItemsForHttpResponse(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp)Updates or creates one or more itemsManualJournalsupdateOrCreateManualJournals(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors)Updates or creates a single manual journalcom.google.api.client.http.HttpResponseupdateOrCreateManualJournalsForHttpResponse(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors)Updates or creates a single manual journalPurchaseOrdersupdateOrCreatePurchaseOrders(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors)Updates or creates one or more purchase orderscom.google.api.client.http.HttpResponseupdateOrCreatePurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors)Updates or creates one or more purchase ordersQuotesupdateOrCreateQuotes(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors)Updates or creates one or more quotescom.google.api.client.http.HttpResponseupdateOrCreateQuotesForHttpResponse(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors)Updates or creates one or more quotesPurchaseOrdersupdatePurchaseOrder(String accessToken, String xeroTenantId, UUID purchaseOrderID, PurchaseOrders purchaseOrders)Updates a specific purchase orderAttachmentsupdatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType)Updates a specific attachment for a specific purchase order by filenameAttachmentsupdatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body)Updates a specific attachment for a specific purchase order by filenamecom.google.api.client.http.HttpResponseupdatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType)Updates a specific attachment for a specific purchase order by filenamecom.google.api.client.http.HttpResponseupdatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body)Updates a specific attachment for a specific purchase order by filenamecom.google.api.client.http.HttpResponseupdatePurchaseOrderForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, PurchaseOrders purchaseOrders)Updates a specific purchase orderQuotesupdateQuote(String accessToken, String xeroTenantId, UUID quoteID, Quotes quotes)Updates a specific quoteAttachmentsupdateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific quote by filenameAttachmentsupdateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body)Updates a specific attachment from a specific quote by filenamecom.google.api.client.http.HttpResponseupdateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific quote by filenamecom.google.api.client.http.HttpResponseupdateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body)Updates a specific attachment from a specific quote by filenamecom.google.api.client.http.HttpResponseupdateQuoteForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, Quotes quotes)Updates a specific quoteReceiptsupdateReceipt(String accessToken, String xeroTenantId, UUID receiptID, Receipts receipts, Integer unitdp)Updates a specific draft expense claim receiptsAttachmentsupdateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType)Updates a specific attachment on a specific expense claim receipts by file nameAttachmentsupdateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body)Updates a specific attachment on a specific expense claim receipts by file namecom.google.api.client.http.HttpResponseupdateReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType)Updates a specific attachment on a specific expense claim receipts by file namecom.google.api.client.http.HttpResponseupdateReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body)Updates a specific attachment on a specific expense claim receipts by file namecom.google.api.client.http.HttpResponseupdateReceiptForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, Receipts receipts, Integer unitdp)Updates a specific draft expense claim receiptsAttachmentsupdateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific repeating invoices by file nameAttachmentsupdateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body)Updates a specific attachment from a specific repeating invoices by file namecom.google.api.client.http.HttpResponseupdateRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType)Updates a specific attachment from a specific repeating invoices by file namecom.google.api.client.http.HttpResponseupdateRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body)Updates a specific attachment from a specific repeating invoices by file nameTaxRatesupdateTaxRate(String accessToken, String xeroTenantId, TaxRates taxRates)Updates tax ratescom.google.api.client.http.HttpResponseupdateTaxRateForHttpResponse(String accessToken, String xeroTenantId, TaxRates taxRates)Updates tax ratesTrackingCategoriesupdateTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingCategory trackingCategory)Updates a specific tracking categorycom.google.api.client.http.HttpResponseupdateTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingCategory trackingCategory)Updates a specific tracking categoryTrackingOptionsupdateTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID, TrackingOption trackingOption)Updates a specific option for a specific tracking categorycom.google.api.client.http.HttpResponseupdateTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID, TrackingOption trackingOption)Updates a specific option for a specific tracking category
-
-
-
Constructor Detail
-
AccountingApi
public AccountingApi()
AccountingApi
-
AccountingApi
public AccountingApi(ApiClient apiClient)
AccountingApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Detail
-
getInstance
public static AccountingApi getInstance(ApiClient apiClient)
AccountingApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
public ApiClient getApiClient()
get ApiClient- Returns:
- apiClient the current ApiClient
-
setApiClient
public void setApiClient(ApiClient apiClient)
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
public void setUserAgent(String userAgent)
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
public String getUserAgent()
get user agent- Returns:
- String of user agent
-
createAccount
public Accounts createAccount(String accessToken, String xeroTenantId, Account account) throws IOException
Creates a new chart of accounts200 - Success - created new Account and return response of type Accounts array with new Account
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for Tenantaccount- Account object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Accounts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createAccountForHttpResponse
public com.google.api.client.http.HttpResponse createAccountForHttpResponse(String accessToken, String xeroTenantId, Account account) throws IOException
Creates a new chart of accounts200 - Success - created new Account and return response of type Accounts array with new Account
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for Tenantaccount- Account object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createAccountAttachmentByFileName
public Attachments createAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment on a specific account200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createAccountAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment on a specific account200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createAccountAttachmentByFileName
public Attachments createAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body) throws IOException
Creates an attachment on a specific account200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createAccountAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body) throws IOException
Creates an attachment on a specific account200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransactionAttachmentByFileName
public Attachments createBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment for a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransactionAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment for a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransactionAttachmentByFileName
public Attachments createBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body) throws IOException
Creates an attachment for a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransactionAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body) throws IOException
Creates an attachment for a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransactionHistoryRecord
public HistoryRecords createBankTransactionHistoryRecord(String accessToken, String xeroTenantId, UUID bankTransactionID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific bank transactions200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransactionHistoryRecordForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransactionHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific bank transactions200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransactions
public BankTransactions createBankTransactions(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates one or more spent or received money transaction200 - Success - return response of type BankTransactions array with new BankTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactions- BankTransactions with an array of BankTransaction objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransactionsForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates one or more spent or received money transaction200 - Success - return response of type BankTransactions array with new BankTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactions- BankTransactions with an array of BankTransaction objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransfer
public BankTransfers createBankTransfer(String accessToken, String xeroTenantId, BankTransfers bankTransfers) throws IOException
Creates a bank transfer200 - Success - return response of BankTransfers array of one BankTransfer
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransfers- BankTransfers with array of BankTransfer objects in request bodyaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransfers
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransferForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransferForHttpResponse(String accessToken, String xeroTenantId, BankTransfers bankTransfers) throws IOException
Creates a bank transfer200 - Success - return response of BankTransfers array of one BankTransfer
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransfers- BankTransfers with array of BankTransfer objects in request bodyaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransferAttachmentByFileName
public Attachments createBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransferAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransferAttachmentByFileName
public Attachments createBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransferAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransferHistoryRecord
public HistoryRecords createBankTransferHistoryRecord(String accessToken, String xeroTenantId, UUID bankTransferID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific bank transfer200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBankTransferHistoryRecordForHttpResponse
public com.google.api.client.http.HttpResponse createBankTransferHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific bank transfer200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBatchPayment
public BatchPayments createBatchPayment(String accessToken, String xeroTenantId, BatchPayments batchPayments, Boolean summarizeErrors) throws IOException
Creates one or many batch payments for invoices200 - Success - return response of type BatchPayments array of BatchPayment objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbatchPayments- BatchPayments with an array of Payments in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- BatchPayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBatchPaymentForHttpResponse
public com.google.api.client.http.HttpResponse createBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, BatchPayments batchPayments, Boolean summarizeErrors) throws IOException
Creates one or many batch payments for invoices200 - Success - return response of type BatchPayments array of BatchPayment objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbatchPayments- BatchPayments with an array of Payments in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBatchPaymentHistoryRecord
public HistoryRecords createBatchPaymentHistoryRecord(String accessToken, String xeroTenantId, UUID batchPaymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific batch payment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBatchPaymentHistoryRecordForHttpResponse
public com.google.api.client.http.HttpResponse createBatchPaymentHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific batch payment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBrandingThemePaymentServices
public PaymentServices createBrandingThemePaymentServices(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentService paymentService) throws IOException
Creates a new custom payment service for a specific branding theme200 - Success - return response of type PaymentServices array with newly created PaymentService
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemepaymentService- PaymentService object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- PaymentServices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createBrandingThemePaymentServicesForHttpResponse
public com.google.api.client.http.HttpResponse createBrandingThemePaymentServicesForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentService paymentService) throws IOException
Creates a new custom payment service for a specific branding theme200 - Success - return response of type PaymentServices array with newly created PaymentService
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemepaymentService- PaymentService object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContactAttachmentByFileName
public Attachments createContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of type Attachments array with an newly created Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContactAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of type Attachments array with an newly created Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createContactAttachmentByFileName
public Attachments createContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body) throws IOException
200 - Success - return response of type Attachments array with an newly created Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createContactAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body) throws IOException
200 - Success - return response of type Attachments array with an newly created Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContactGroup
public ContactGroups createContactGroup(String accessToken, String xeroTenantId, ContactGroups contactGroups) throws IOException
Creates a contact group200 - Success - return response of type Contact Groups array of newly created Contact Group
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroups- ContactGroups with an array of names in request bodyaccessToken- Authorization token for user set in header of each request- Returns:
- ContactGroups
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createContactGroupForHttpResponse
public com.google.api.client.http.HttpResponse createContactGroupForHttpResponse(String accessToken, String xeroTenantId, ContactGroups contactGroups) throws IOException
Creates a contact group200 - Success - return response of type Contact Groups array of newly created Contact Group
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroups- ContactGroups with an array of names in request bodyaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContactGroupContacts
public Contacts createContactGroupContacts(String accessToken, String xeroTenantId, UUID contactGroupID, Contacts contacts) throws IOException
Creates contacts to a specific contact group200 - Success - return response of type Contacts array of added Contacts
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact Groupcontacts- Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createContactGroupContactsForHttpResponse
public com.google.api.client.http.HttpResponse createContactGroupContactsForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, Contacts contacts) throws IOException
Creates contacts to a specific contact group200 - Success - return response of type Contacts array of added Contacts
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact Groupcontacts- Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContactHistory
public HistoryRecords createContactHistory(String accessToken, String xeroTenantId, UUID contactID, HistoryRecords historyRecords) throws IOException
Creates a new history record for a specific contact200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContacthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createContactHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createContactHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, HistoryRecords historyRecords) throws IOException
Creates a new history record for a specific contact200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContacthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContacts
public Contacts createContacts(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors) throws IOException
Creates multiple contacts (bulk) in a Xero organisation200 - Success - return response of type Contacts array with newly created Contact
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for Tenantcontacts- Contacts with an array of Contact objects to create in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createContactsForHttpResponse
public com.google.api.client.http.HttpResponse createContactsForHttpResponse(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors) throws IOException
Creates multiple contacts (bulk) in a Xero organisation200 - Success - return response of type Contacts array with newly created Contact
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for Tenantcontacts- Contacts with an array of Contact objects to create in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCreditNoteAllocation
public Allocations createCreditNoteAllocation(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors) throws IOException
Creates allocation for a specific credit note200 - Success - return response of type Allocations array with newly created Allocation for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Noteallocations- Allocations with array of Allocation object in body of request.summarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Allocations
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createCreditNoteAllocationForHttpResponse
public com.google.api.client.http.HttpResponse createCreditNoteAllocationForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors) throws IOException
Creates allocation for a specific credit note200 - Success - return response of type Allocations array with newly created Allocation for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Noteallocations- Allocations with array of Allocation object in body of request.summarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCreditNoteAttachmentByFileName
public Attachments createCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, Boolean includeOnline, String mimeType) throws IOException
Creates an attachment for a specific credit note200 - Success - return response of type Attachments array with newly created Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoicemimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCreditNoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, Boolean includeOnline, String mimeType) throws IOException
Creates an attachment for a specific credit note200 - Success - return response of type Attachments array with newly created Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoicemimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createCreditNoteAttachmentByFileName
public Attachments createCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body, Boolean includeOnline) throws IOException
Creates an attachment for a specific credit note200 - Success - return response of type Attachments array with newly created Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoiceaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createCreditNoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body, Boolean includeOnline) throws IOException
Creates an attachment for a specific credit note200 - Success - return response of type Attachments array with newly created Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCreditNoteHistory
public HistoryRecords createCreditNoteHistory(String accessToken, String xeroTenantId, UUID creditNoteID, HistoryRecords historyRecords) throws IOException
Retrieves history records of a specific credit note200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createCreditNoteHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createCreditNoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, HistoryRecords historyRecords) throws IOException
Retrieves history records of a specific credit note200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCreditNotes
public CreditNotes createCreditNotes(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates a new credit note200 - Success - return response of type Credit Notes array of newly created CreditNote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNotes- Credit Notes with array of CreditNote object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- CreditNotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createCreditNotesForHttpResponse
public com.google.api.client.http.HttpResponse createCreditNotesForHttpResponse(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates a new credit note200 - Success - return response of type Credit Notes array of newly created CreditNote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNotes- Credit Notes with array of CreditNote object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCurrency
public Currencies createCurrency(String accessToken, String xeroTenantId, Currency currency) throws IOException
Create a new currency for a Xero organisation200 - Unsupported - return response incorrect exception, API is not able to create new Currency
- Parameters:
xeroTenantId- Xero identifier for Tenantcurrency- Currency object in the body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Currencies
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createCurrencyForHttpResponse
public com.google.api.client.http.HttpResponse createCurrencyForHttpResponse(String accessToken, String xeroTenantId, Currency currency) throws IOException
Create a new currency for a Xero organisation200 - Unsupported - return response incorrect exception, API is not able to create new Currency
- Parameters:
xeroTenantId- Xero identifier for Tenantcurrency- Currency object in the body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployees
public Employees createEmployees(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors) throws IOException
Creates new employees used in Xero payrun200 - Success - return response of type Employees array with new Employee
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantemployees- Employees with array of Employee object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeesForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeesForHttpResponse(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors) throws IOException
Creates new employees used in Xero payrun200 - Success - return response of type Employees array with new Employee
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantemployees- Employees with array of Employee object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createExpenseClaimHistory
public HistoryRecords createExpenseClaimHistory(String accessToken, String xeroTenantId, UUID expenseClaimID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific expense claim200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createExpenseClaimHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createExpenseClaimHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific expense claim200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createExpenseClaims
public ExpenseClaims createExpenseClaims(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims) throws IOException
Creates expense claims200 - Success - return response of type ExpenseClaims array with newly created ExpenseClaim
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaims- ExpenseClaims with array of ExpenseClaim object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- ExpenseClaims
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createExpenseClaimsForHttpResponse
public com.google.api.client.http.HttpResponse createExpenseClaimsForHttpResponse(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims) throws IOException
Creates expense claims200 - Success - return response of type ExpenseClaims array with newly created ExpenseClaim
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaims- ExpenseClaims with array of ExpenseClaim object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createInvoiceAttachmentByFileName
public Attachments createInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, Boolean includeOnline, String mimeType) throws IOException
Creates an attachment for a specific invoice or purchase bill by filename200 - Success - return response of type Attachments array with newly created Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoicemimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, Boolean includeOnline, String mimeType) throws IOException
Creates an attachment for a specific invoice or purchase bill by filename200 - Success - return response of type Attachments array with newly created Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoicemimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createInvoiceAttachmentByFileName
public Attachments createInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body, Boolean includeOnline) throws IOException
Creates an attachment for a specific invoice or purchase bill by filename200 - Success - return response of type Attachments array with newly created Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoiceaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body, Boolean includeOnline) throws IOException
Creates an attachment for a specific invoice or purchase bill by filename200 - Success - return response of type Attachments array with newly created Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestincludeOnline- Allows an attachment to be seen by the end customer within their online invoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createInvoiceHistory
public HistoryRecords createInvoiceHistory(String accessToken, String xeroTenantId, UUID invoiceID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific invoice200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createInvoiceHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific invoice200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createInvoices
public Invoices createInvoices(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates one or more sales invoices or purchase bills200 - Success - return response of type Invoices array with newly created Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantinvoices- Invoices with an array of invoice objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Invoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createInvoicesForHttpResponse
public com.google.api.client.http.HttpResponse createInvoicesForHttpResponse(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates one or more sales invoices or purchase bills200 - Success - return response of type Invoices array with newly created Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantinvoices- Invoices with an array of invoice objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createItemHistory
public HistoryRecords createItemHistory(String accessToken, String xeroTenantId, UUID itemID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific item200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createItemHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createItemHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific item200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createItems
public Items createItems(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates one or more items200 - Success - return response of type Items array with newly created Item
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantitems- Items with an array of Item objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Items
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createItemsForHttpResponse
public com.google.api.client.http.HttpResponse createItemsForHttpResponse(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp) throws IOException
Creates one or more items200 - Success - return response of type Items array with newly created Item
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantitems- Items with an array of Item objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createLinkedTransaction
public LinkedTransactions createLinkedTransaction(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction) throws IOException
Creates linked transactions (billable expenses)200 - Success - return response of type LinkedTransactions array with newly created LinkedTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransaction- LinkedTransaction object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- LinkedTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createLinkedTransactionForHttpResponse
public com.google.api.client.http.HttpResponse createLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction) throws IOException
Creates linked transactions (billable expenses)200 - Success - return response of type LinkedTransactions array with newly created LinkedTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransaction- LinkedTransaction object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createManualJournalAttachmentByFileName
public Attachments createManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType) throws IOException
Creates a specific attachment for a specific manual journal by file name200 - Success - return response of type Attachments array with a newly created Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createManualJournalAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType) throws IOException
Creates a specific attachment for a specific manual journal by file name200 - Success - return response of type Attachments array with a newly created Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createManualJournalAttachmentByFileName
public Attachments createManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body) throws IOException
Creates a specific attachment for a specific manual journal by file name200 - Success - return response of type Attachments array with a newly created Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createManualJournalAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body) throws IOException
Creates a specific attachment for a specific manual journal by file name200 - Success - return response of type Attachments array with a newly created Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createManualJournalHistoryRecord
public HistoryRecords createManualJournalHistoryRecord(String accessToken, String xeroTenantId, UUID manualJournalID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific manual journal200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createManualJournalHistoryRecordForHttpResponse
public com.google.api.client.http.HttpResponse createManualJournalHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific manual journal200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createManualJournals
public ManualJournals createManualJournals(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors) throws IOException
Creates one or more manual journals200 - Success - return response of type ManualJournals array with newly created ManualJournal
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournals- ManualJournals array with ManualJournal object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- ManualJournals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createManualJournalsForHttpResponse
public com.google.api.client.http.HttpResponse createManualJournalsForHttpResponse(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors) throws IOException
Creates one or more manual journals200 - Success - return response of type ManualJournals array with newly created ManualJournal
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournals- ManualJournals array with ManualJournal object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createOverpaymentAllocations
public Allocations createOverpaymentAllocations(String accessToken, String xeroTenantId, UUID overpaymentID, Allocations allocations, Boolean summarizeErrors) throws IOException
Creates a single allocation for a specific overpayment200 - Success - return response of type Allocations array with all Allocation for Overpayments
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a Overpaymentallocations- Allocations array with Allocation object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Allocations
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createOverpaymentAllocationsForHttpResponse
public com.google.api.client.http.HttpResponse createOverpaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, Allocations allocations, Boolean summarizeErrors) throws IOException
Creates a single allocation for a specific overpayment200 - Success - return response of type Allocations array with all Allocation for Overpayments
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a Overpaymentallocations- Allocations array with Allocation object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createOverpaymentHistory
public HistoryRecords createOverpaymentHistory(String accessToken, String xeroTenantId, UUID overpaymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific overpayment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error - API is not able to create HistoryRecord for Overpayments
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createOverpaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createOverpaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific overpayment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error - API is not able to create HistoryRecord for Overpayments
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayment
public Payments createPayment(String accessToken, String xeroTenantId, Payment payment) throws IOException
Creates a single payment for invoice or credit notes200 - Success - return response of type Payments array for newly created Payment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantpayment- Request body with a single Payment objectaccessToken- Authorization token for user set in header of each request- Returns:
- Payments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPaymentForHttpResponse
public com.google.api.client.http.HttpResponse createPaymentForHttpResponse(String accessToken, String xeroTenantId, Payment payment) throws IOException
Creates a single payment for invoice or credit notes200 - Success - return response of type Payments array for newly created Payment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantpayment- Request body with a single Payment objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPaymentHistory
public HistoryRecords createPaymentHistory(String accessToken, String xeroTenantId, UUID paymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific payment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error - API is not able to create HistoryRecord for Payments
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createPaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific payment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error - API is not able to create HistoryRecord for Payments
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPaymentService
public PaymentServices createPaymentService(String accessToken, String xeroTenantId, PaymentServices paymentServices) throws IOException
Creates a payment service200 - Success - return response of type PaymentServices array for newly created PaymentService
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentServices- PaymentServices array with PaymentService object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- PaymentServices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPaymentServiceForHttpResponse
public com.google.api.client.http.HttpResponse createPaymentServiceForHttpResponse(String accessToken, String xeroTenantId, PaymentServices paymentServices) throws IOException
Creates a payment service200 - Success - return response of type PaymentServices array for newly created PaymentService
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentServices- PaymentServices array with PaymentService object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayments
public Payments createPayments(String accessToken, String xeroTenantId, Payments payments, Boolean summarizeErrors) throws IOException
Creates multiple payments for invoices or credit notes200 - Success - return response of type Payments array for newly created Payment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantpayments- Payments array with Payment object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Payments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPaymentsForHttpResponse
public com.google.api.client.http.HttpResponse createPaymentsForHttpResponse(String accessToken, String xeroTenantId, Payments payments, Boolean summarizeErrors) throws IOException
Creates multiple payments for invoices or credit notes200 - Success - return response of type Payments array for newly created Payment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantpayments- Payments array with Payment object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPrepaymentAllocations
public Allocations createPrepaymentAllocations(String accessToken, String xeroTenantId, UUID prepaymentID, Allocations allocations, Boolean summarizeErrors) throws IOException
Allows you to create an Allocation for prepayments200 - Success - return response of type Allocations array of Allocation for all Prepayment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentallocations- Allocations with an array of Allocation object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Allocations
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPrepaymentAllocationsForHttpResponse
public com.google.api.client.http.HttpResponse createPrepaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, Allocations allocations, Boolean summarizeErrors) throws IOException
Allows you to create an Allocation for prepayments200 - Success - return response of type Allocations array of Allocation for all Prepayment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentallocations- Allocations with an array of Allocation object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPrepaymentHistory
public HistoryRecords createPrepaymentHistory(String accessToken, String xeroTenantId, UUID prepaymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific prepayment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - Unsupported - return response incorrect exception, API is not able to create HistoryRecord for Expense Claims
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPrepaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createPrepaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific prepayment200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - Unsupported - return response incorrect exception, API is not able to create HistoryRecord for Expense Claims
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPurchaseOrderAttachmentByFileName
public Attachments createPurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType) throws IOException
Creates attachment for a specific purchase order200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPurchaseOrderAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createPurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType) throws IOException
Creates attachment for a specific purchase order200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPurchaseOrderAttachmentByFileName
public Attachments createPurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body) throws IOException
Creates attachment for a specific purchase order200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPurchaseOrderAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createPurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body) throws IOException
Creates attachment for a specific purchase order200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPurchaseOrderHistory
public HistoryRecords createPurchaseOrderHistory(String accessToken, String xeroTenantId, UUID purchaseOrderID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific purchase orders200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPurchaseOrderHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createPurchaseOrderHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific purchase orders200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPurchaseOrders
public PurchaseOrders createPurchaseOrders(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors) throws IOException
Creates one or more purchase orders200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrders- PurchaseOrders with an array of PurchaseOrder object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- PurchaseOrders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPurchaseOrdersForHttpResponse
public com.google.api.client.http.HttpResponse createPurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors) throws IOException
Creates one or more purchase orders200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrders- PurchaseOrders with an array of PurchaseOrder object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createQuoteAttachmentByFileName
public Attachments createQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType) throws IOException
Creates attachment for a specific quote200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createQuoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType) throws IOException
Creates attachment for a specific quote200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createQuoteAttachmentByFileName
public Attachments createQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body) throws IOException
Creates attachment for a specific quote200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createQuoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body) throws IOException
Creates attachment for a specific quote200 - Success - return response of type Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createQuoteHistory
public HistoryRecords createQuoteHistory(String accessToken, String xeroTenantId, UUID quoteID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific quote200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createQuoteHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createQuoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific quote200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createQuotes
public Quotes createQuotes(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors) throws IOException
Create one or more quotes200 - Success - return response of type Quotes with array with newly created Quote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantquotes- Quotes with an array of Quote object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Quotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createQuotesForHttpResponse
public com.google.api.client.http.HttpResponse createQuotesForHttpResponse(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors) throws IOException
Create one or more quotes200 - Success - return response of type Quotes with array with newly created Quote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantquotes- Quotes with an array of Quote object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createReceipt
public Receipts createReceipt(String accessToken, String xeroTenantId, Receipts receipts, Integer unitdp) throws IOException
Creates draft expense claim receipts for any user200 - Success - return response of type Receipts array for newly created Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantreceipts- Receipts with an array of Receipt object in body of requestunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Receipts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createReceiptForHttpResponse
public com.google.api.client.http.HttpResponse createReceiptForHttpResponse(String accessToken, String xeroTenantId, Receipts receipts, Integer unitdp) throws IOException
Creates draft expense claim receipts for any user200 - Success - return response of type Receipts array for newly created Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantreceipts- Receipts with an array of Receipt object in body of requestunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createReceiptAttachmentByFileName
public Attachments createReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with newly created Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createReceiptAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with newly created Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createReceiptAttachmentByFileName
public Attachments createReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body) throws IOException
Creates an attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with newly created Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createReceiptAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body) throws IOException
Creates an attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with newly created Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createReceiptHistory
public HistoryRecords createReceiptHistory(String accessToken, String xeroTenantId, UUID receiptID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific receipt200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - Unsupported - return response incorrect exception, API is not able to create HistoryRecord for Receipts
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceipthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createReceiptHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createReceiptHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific receipt200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - Unsupported - return response incorrect exception, API is not able to create HistoryRecord for Receipts
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceipthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createRepeatingInvoiceAttachmentByFileName
public Attachments createRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createRepeatingInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType) throws IOException
Creates an attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createRepeatingInvoiceAttachmentByFileName
public Attachments createRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body) throws IOException
Creates an attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createRepeatingInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse createRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body) throws IOException
Creates an attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createRepeatingInvoiceHistory
public HistoryRecords createRepeatingInvoiceHistory(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific repeating invoice200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createRepeatingInvoiceHistoryForHttpResponse
public com.google.api.client.http.HttpResponse createRepeatingInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, HistoryRecords historyRecords) throws IOException
Creates a history record for a specific repeating invoice200 - Success - return response of type HistoryRecords array of HistoryRecord objects
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTaxRates
public TaxRates createTaxRates(String accessToken, String xeroTenantId, TaxRates taxRates) throws IOException
Creates one or more tax rates200 - Success - return response of type TaxRates array newly created TaxRate
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttaxRates- TaxRates array with TaxRate object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- TaxRates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createTaxRatesForHttpResponse
public com.google.api.client.http.HttpResponse createTaxRatesForHttpResponse(String accessToken, String xeroTenantId, TaxRates taxRates) throws IOException
Creates one or more tax rates200 - Success - return response of type TaxRates array newly created TaxRate
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttaxRates- TaxRates array with TaxRate object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTrackingCategory
public TrackingCategories createTrackingCategory(String accessToken, String xeroTenantId, TrackingCategory trackingCategory) throws IOException
Create tracking categories200 - Success - return response of type TrackingCategories array of newly created TrackingCategory
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategory- TrackingCategory object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- TrackingCategories
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createTrackingCategoryForHttpResponse
public com.google.api.client.http.HttpResponse createTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, TrackingCategory trackingCategory) throws IOException
Create tracking categories200 - Success - return response of type TrackingCategories array of newly created TrackingCategory
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategory- TrackingCategory object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTrackingOptions
public TrackingOptions createTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingOption trackingOption) throws IOException
Creates options for a specific tracking category200 - Success - return response of type TrackingOptions array of options for a specified category
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOption- TrackingOption object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- TrackingOptions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createTrackingOptionsForHttpResponse
public com.google.api.client.http.HttpResponse createTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingOption trackingOption) throws IOException
Creates options for a specific tracking category200 - Success - return response of type TrackingOptions array of options for a specified category
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOption- TrackingOption object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteAccount
public Accounts deleteAccount(String accessToken, String xeroTenantId, UUID accountID) throws IOException
Deletes a chart of accounts200 - Success - delete existing Account and return response of type Accounts array with deleted Account
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccessToken- Authorization token for user set in header of each request- Returns:
- Accounts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteAccountForHttpResponse
public com.google.api.client.http.HttpResponse deleteAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID) throws IOException
Deletes a chart of accounts200 - Success - delete existing Account and return response of type Accounts array with deleted Account
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteContactGroupContact
public void deleteContactGroupContact(String accessToken, String xeroTenantId, UUID contactGroupID, UUID contactID) throws IOException
Deletes a specific contact from a contact group using a unique contact Id204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteContactGroupContactForHttpResponse
public com.google.api.client.http.HttpResponse deleteContactGroupContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, UUID contactID) throws IOException
Deletes a specific contact from a contact group using a unique contact Id204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteContactGroupContacts
public void deleteContactGroupContacts(String accessToken, String xeroTenantId, UUID contactGroupID) throws IOException
Deletes all contacts from a specific contact group204 - Success - return response 204 no content
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupaccessToken- Authorization token for user set in header of each request- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteContactGroupContactsForHttpResponse
public com.google.api.client.http.HttpResponse deleteContactGroupContactsForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID) throws IOException
Deletes all contacts from a specific contact group204 - Success - return response 204 no content
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteItem
public void deleteItem(String accessToken, String xeroTenantId, UUID itemID) throws IOException
Deletes a specific item204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemaccessToken- Authorization token for user set in header of each request- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteItemForHttpResponse
public com.google.api.client.http.HttpResponse deleteItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID) throws IOException
Deletes a specific item204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteLinkedTransaction
public void deleteLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID) throws IOException
Deletes a specific linked transactions (billable expenses)204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionaccessToken- Authorization token for user set in header of each request- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteLinkedTransactionForHttpResponse
public com.google.api.client.http.HttpResponse deleteLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID) throws IOException
Deletes a specific linked transactions (billable expenses)204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deletePayment
public Payments deletePayment(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete) throws IOException
Updates a specific payment for invoices and credit notes200 - Success - return response of type Payments array for updated Payment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentpaymentDelete- The paymentDelete parameteraccessToken- Authorization token for user set in header of each request- Returns:
- Payments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deletePaymentForHttpResponse
public com.google.api.client.http.HttpResponse deletePaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete) throws IOException
Updates a specific payment for invoices and credit notes200 - Success - return response of type Payments array for updated Payment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentpaymentDelete- The paymentDelete parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteTrackingCategory
public TrackingCategories deleteTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID) throws IOException
Deletes a specific tracking category200 - Success - return response of type TrackingCategories array of deleted TrackingCategory
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategoryaccessToken- Authorization token for user set in header of each request- Returns:
- TrackingCategories
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteTrackingCategoryForHttpResponse
public com.google.api.client.http.HttpResponse deleteTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID) throws IOException
Deletes a specific tracking category200 - Success - return response of type TrackingCategories array of deleted TrackingCategory
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategoryaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteTrackingOptions
public TrackingOptions deleteTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID) throws IOException
Deletes a specific option for a specific tracking category200 - Success - return response of type TrackingOptions array of remaining options for a specified category
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking OptionaccessToken- Authorization token for user set in header of each request- Returns:
- TrackingOptions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteTrackingOptionsForHttpResponse
public com.google.api.client.http.HttpResponse deleteTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID) throws IOException
Deletes a specific option for a specific tracking category200 - Success - return response of type TrackingOptions array of remaining options for a specified category
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking OptionaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
emailInvoice
public void emailInvoice(String accessToken, String xeroTenantId, UUID invoiceID, RequestEmpty requestEmpty) throws IOException
Sends a copy of a specific invoice to related contact via email204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicerequestEmpty- The requestEmpty parameteraccessToken- Authorization token for user set in header of each request- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
emailInvoiceForHttpResponse
public com.google.api.client.http.HttpResponse emailInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, RequestEmpty requestEmpty) throws IOException
Sends a copy of a specific invoice to related contact via email204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicerequestEmpty- The requestEmpty parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getAccount
public Accounts getAccount(String accessToken, String xeroTenantId, UUID accountID) throws IOException
Retrieves a single chart of accounts by using a unique account Id200 - Success - return response of type Accounts array with one Account
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccessToken- Authorization token for user set in header of each request- Returns:
- Accounts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getAccountForHttpResponse
public com.google.api.client.http.HttpResponse getAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID) throws IOException
Retrieves a single chart of accounts by using a unique account Id200 - Success - return response of type Accounts array with one Account
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getAccountAttachmentByFileName
public ByteArrayInputStream getAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, String contentType) throws IOException
Retrieves an attachment for a specific account by filename200 - Success - return response of attachment for Account as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getAccountAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, String contentType) throws IOException
Retrieves an attachment for a specific account by filename200 - Success - return response of attachment for Account as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getAccountAttachmentById
public ByteArrayInputStream getAccountAttachmentById(String accessToken, String xeroTenantId, UUID accountID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific account using a unique attachment Id200 - Success - return response of attachment for Account as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getAccountAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getAccountAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific account using a unique attachment Id200 - Success - return response of attachment for Account as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getAccountAttachments
public Attachments getAccountAttachments(String accessToken, String xeroTenantId, UUID accountID) throws IOException
Retrieves attachments for a specific accounts by using a unique account Id200 - Success - return response of type Attachments array of Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getAccountAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getAccountAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID accountID) throws IOException
Retrieves attachments for a specific accounts by using a unique account Id200 - Success - return response of type Attachments array of Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getAccounts
public Accounts getAccounts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves the full chart of accounts200 - Success - return response of type Accounts array with 0 to n Account
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- Accounts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getAccountsForHttpResponse
public com.google.api.client.http.HttpResponse getAccountsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves the full chart of accounts200 - Success - return response of type Accounts array with 0 to n Account
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransaction
public BankTransactions getBankTransaction(String accessToken, String xeroTenantId, UUID bankTransactionID, Integer unitdp) throws IOException
Retrieves a single spent or received money transaction by using a unique bank transaction Id200 - Success - return response of type BankTransactions array with a specific BankTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransactionForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, Integer unitdp) throws IOException
Retrieves a single spent or received money transaction by using a unique bank transaction Id200 - Success - return response of type BankTransactions array with a specific BankTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransactionAttachmentByFileName
public ByteArrayInputStream getBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific bank transaction by filename200 - Success - return response of attachment for BankTransaction as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransactionAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific bank transaction by filename200 - Success - return response of attachment for BankTransaction as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransactionAttachmentById
public ByteArrayInputStream getBankTransactionAttachmentById(String accessToken, String xeroTenantId, UUID bankTransactionID, UUID attachmentID, String contentType) throws IOException
Retrieves specific attachments from a specific BankTransaction using a unique attachment Id200 - Success - return response of attachment for BankTransaction as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransactionAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransactionAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, UUID attachmentID, String contentType) throws IOException
Retrieves specific attachments from a specific BankTransaction using a unique attachment Id200 - Success - return response of attachment for BankTransaction as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransactionAttachments
public Attachments getBankTransactionAttachments(String accessToken, String xeroTenantId, UUID bankTransactionID) throws IOException
Retrieves any attachments from a specific bank transactions200 - Success - return response of type Attachments array with 0 to n Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransactionAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransactionAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID) throws IOException
Retrieves any attachments from a specific bank transactions200 - Success - return response of type Attachments array with 0 to n Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransactions
public BankTransactions getBankTransactions(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves any spent or received money transactions200 - Success - return response of type BankTransactions array with 0 to n BankTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- Up to 100 bank transactions will be returned in a single API call with line items detailsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransactionsForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves any spent or received money transactions200 - Success - return response of type BankTransactions array with 0 to n BankTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- Up to 100 bank transactions will be returned in a single API call with line items detailsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransactionsHistory
public HistoryRecords getBankTransactionsHistory(String accessToken, String xeroTenantId, UUID bankTransactionID) throws IOException
Retrieves history from a specific bank transaction using a unique bank transaction Id200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransactionsHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransactionsHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID) throws IOException
Retrieves history from a specific bank transaction using a unique bank transaction Id200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransfer
public BankTransfers getBankTransfer(String accessToken, String xeroTenantId, UUID bankTransferID) throws IOException
Retrieves specific bank transfers by using a unique bank transfer Id200 - Success - return response of BankTransfers array with one BankTransfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransfers
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransferForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransferForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID) throws IOException
Retrieves specific bank transfers by using a unique bank transfer Id200 - Success - return response of BankTransfers array with one BankTransfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransferAttachmentByFileName
public ByteArrayInputStream getBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, String contentType) throws IOException
Retrieves a specific attachment on a specific bank transfer by file name200 - Success - return response of binary data from the Attachment to a Bank Transfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransferAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, String contentType) throws IOException
Retrieves a specific attachment on a specific bank transfer by file name200 - Success - return response of binary data from the Attachment to a Bank Transfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransferAttachmentById
public ByteArrayInputStream getBankTransferAttachmentById(String accessToken, String xeroTenantId, UUID bankTransferID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific bank transfer using a unique attachment ID200 - Success - return response of binary data from the Attachment to a Bank Transfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransferAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransferAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific bank transfer using a unique attachment ID200 - Success - return response of binary data from the Attachment to a Bank Transfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransferAttachments
public Attachments getBankTransferAttachments(String accessToken, String xeroTenantId, UUID bankTransferID) throws IOException
Retrieves attachments from a specific bank transfer200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransferAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransferAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID) throws IOException
Retrieves attachments from a specific bank transfer200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransferHistory
public HistoryRecords getBankTransferHistory(String accessToken, String xeroTenantId, UUID bankTransferID) throws IOException
Retrieves history from a specific bank transfer using a unique bank transfer Id200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransferHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransferHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID) throws IOException
Retrieves history from a specific bank transfer using a unique bank transfer Id200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBankTransfers
public BankTransfers getBankTransfers(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves all bank transfers200 - Success - return response of BankTransfers array of 0 to N BankTransfer
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransfers
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBankTransfersForHttpResponse
public com.google.api.client.http.HttpResponse getBankTransfersForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves all bank transfers200 - Success - return response of BankTransfers array of 0 to N BankTransfer
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBatchPaymentHistory
public HistoryRecords getBatchPaymentHistory(String accessToken, String xeroTenantId, UUID batchPaymentID) throws IOException
Retrieves history from a specific batch payment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBatchPaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getBatchPaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID) throws IOException
Retrieves history from a specific batch payment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBatchPayments
public BatchPayments getBatchPayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves either one or many batch payments for invoices200 - Success - return response of type BatchPayments array of BatchPayment objects
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- BatchPayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBatchPaymentsForHttpResponse
public com.google.api.client.http.HttpResponse getBatchPaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves either one or many batch payments for invoices200 - Success - return response of type BatchPayments array of BatchPayment objects
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBrandingTheme
public BrandingThemes getBrandingTheme(String accessToken, String xeroTenantId, UUID brandingThemeID) throws IOException
Retrieves a specific branding theme using a unique branding theme Id200 - Success - return response of type BrandingThemes with one BrandingTheme
- Parameters:
xeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemeaccessToken- Authorization token for user set in header of each request- Returns:
- BrandingThemes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBrandingThemeForHttpResponse
public com.google.api.client.http.HttpResponse getBrandingThemeForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID) throws IOException
Retrieves a specific branding theme using a unique branding theme Id200 - Success - return response of type BrandingThemes with one BrandingTheme
- Parameters:
xeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemeaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBrandingThemePaymentServices
public PaymentServices getBrandingThemePaymentServices(String accessToken, String xeroTenantId, UUID brandingThemeID) throws IOException
Retrieves the payment services for a specific branding theme200 - Success - return response of type PaymentServices array with 0 to N PaymentService
- Parameters:
xeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemeaccessToken- Authorization token for user set in header of each request- Returns:
- PaymentServices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBrandingThemePaymentServicesForHttpResponse
public com.google.api.client.http.HttpResponse getBrandingThemePaymentServicesForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID) throws IOException
Retrieves the payment services for a specific branding theme200 - Success - return response of type PaymentServices array with 0 to N PaymentService
- Parameters:
xeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemeaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBrandingThemes
public BrandingThemes getBrandingThemes(String accessToken, String xeroTenantId) throws IOException
Retrieves all the branding themes200 - Success - return response of type BrandingThemes
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- BrandingThemes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBrandingThemesForHttpResponse
public com.google.api.client.http.HttpResponse getBrandingThemesForHttpResponse(String accessToken, String xeroTenantId) throws IOException
Retrieves all the branding themes200 - Success - return response of type BrandingThemes
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBudget
public Budgets getBudget(String accessToken, String xeroTenantId, UUID budgetID) throws IOException
Retrieves a specific budgets, which includes budget lines200 - Success - return response of type Invoices array with specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantbudgetID- Unique identifier for BudgetsaccessToken- Authorization token for user set in header of each request- Returns:
- Budgets
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBudgetForHttpResponse
public com.google.api.client.http.HttpResponse getBudgetForHttpResponse(String accessToken, String xeroTenantId, UUID budgetID) throws IOException
Retrieves a specific budgets, which includes budget lines200 - Success - return response of type Invoices array with specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantbudgetID- Unique identifier for BudgetsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBudgets
public Budgets getBudgets(String accessToken, String xeroTenantId, List<UUID> ids, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom) throws IOException
Retrieve a list of budgets200 - Success - return response of type Budgets array with 0 to N Budgets
- Parameters:
xeroTenantId- Xero identifier for Tenantids- Filter by BudgetID. Allows you to retrieve a specific individual budget.dateTo- Filter by start datedateFrom- Filter by end dateaccessToken- Authorization token for user set in header of each request- Returns:
- Budgets
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBudgetsForHttpResponse
public com.google.api.client.http.HttpResponse getBudgetsForHttpResponse(String accessToken, String xeroTenantId, List<UUID> ids, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom) throws IOException
Retrieve a list of budgets200 - Success - return response of type Budgets array with 0 to N Budgets
- Parameters:
xeroTenantId- Xero identifier for Tenantids- Filter by BudgetID. Allows you to retrieve a specific individual budget.dateTo- Filter by start datedateFrom- Filter by end dateaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContact
public Contacts getContact(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves a specific contacts in a Xero organisation using a unique contact Id200 - Success - return response of type Contacts array with a unique Contact
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactForHttpResponse
public com.google.api.client.http.HttpResponse getContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves a specific contacts in a Xero organisation using a unique contact Id200 - Success - return response of type Contacts array with a unique Contact
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactAttachmentByFileName
public ByteArrayInputStream getContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific contact by file name200 - Success - return response of attachment for Contact as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific contact by file name200 - Success - return response of attachment for Contact as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactAttachmentById
public ByteArrayInputStream getContactAttachmentById(String accessToken, String xeroTenantId, UUID contactID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific contact using a unique attachment Id200 - Success - return response of attachment for Contact as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getContactAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific contact using a unique attachment Id200 - Success - return response of attachment for Contact as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactAttachments
public Attachments getContactAttachments(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves attachments for a specific contact in a Xero organisation200 - Success - return response of type Attachments array with 0 to N Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getContactAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves attachments for a specific contact in a Xero organisation200 - Success - return response of type Attachments array with 0 to N Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactByContactNumber
public Contacts getContactByContactNumber(String accessToken, String xeroTenantId, String contactNumber) throws IOException
Retrieves a specific contact by contact number in a Xero organisation200 - Success - return response of type Contacts array with a unique Contact
- Parameters:
xeroTenantId- Xero identifier for TenantcontactNumber- This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).accessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactByContactNumberForHttpResponse
public com.google.api.client.http.HttpResponse getContactByContactNumberForHttpResponse(String accessToken, String xeroTenantId, String contactNumber) throws IOException
Retrieves a specific contact by contact number in a Xero organisation200 - Success - return response of type Contacts array with a unique Contact
- Parameters:
xeroTenantId- Xero identifier for TenantcontactNumber- This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactCISSettings
public CISSettings getContactCISSettings(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves CIS settings for a specific contact in a Xero organisation200 - Success - return response of type CISSettings for a specific Contact
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- CISSettings
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactCISSettingsForHttpResponse
public com.google.api.client.http.HttpResponse getContactCISSettingsForHttpResponse(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves CIS settings for a specific contact in a Xero organisation200 - Success - return response of type CISSettings for a specific Contact
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactGroup
public ContactGroups getContactGroup(String accessToken, String xeroTenantId, UUID contactGroupID) throws IOException
Retrieves a specific contact group by using a unique contact group Id200 - Success - return response of type Contact Groups array with a specific Contact Group
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupaccessToken- Authorization token for user set in header of each request- Returns:
- ContactGroups
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactGroupForHttpResponse
public com.google.api.client.http.HttpResponse getContactGroupForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID) throws IOException
Retrieves a specific contact group by using a unique contact group Id200 - Success - return response of type Contact Groups array with a specific Contact Group
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactGroups
public ContactGroups getContactGroups(String accessToken, String xeroTenantId, String where, String order) throws IOException
Retrieves the contact Id and name of each contact group200 - Success - return response of type Contact Groups array of Contact Group
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- ContactGroups
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactGroupsForHttpResponse
public com.google.api.client.http.HttpResponse getContactGroupsForHttpResponse(String accessToken, String xeroTenantId, String where, String order) throws IOException
Retrieves the contact Id and name of each contact group200 - Success - return response of type Contact Groups array of Contact Group
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContactHistory
public HistoryRecords getContactHistory(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves history records for a specific contact200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getContactHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID contactID) throws IOException
Retrieves history records for a specific contact200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getContacts
public Contacts getContacts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, Integer page, Boolean includeArchived, Boolean summaryOnly) throws IOException
Retrieves all contacts in a Xero organisation200 - Success - return response of type Contacts array with 0 to N Contact
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementids- Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call.page- e.g. page=1 - Up to 100 contacts will be returned in a single API call.includeArchived- e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the responsesummaryOnly- Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.accessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getContactsForHttpResponse
public com.google.api.client.http.HttpResponse getContactsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, Integer page, Boolean includeArchived, Boolean summaryOnly) throws IOException
Retrieves all contacts in a Xero organisation200 - Success - return response of type Contacts array with 0 to N Contact
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementids- Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call.page- e.g. page=1 - Up to 100 contacts will be returned in a single API call.includeArchived- e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the responsesummaryOnly- Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNote
public CreditNotes getCreditNote(String accessToken, String xeroTenantId, UUID creditNoteID, Integer unitdp) throws IOException
Retrieves a specific credit note using a unique credit note Id200 - Success - return response of type Credit Notes array with a unique CreditNote
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Noteunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- CreditNotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNoteForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNoteForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Integer unitdp) throws IOException
Retrieves a specific credit note using a unique credit note Id200 - Success - return response of type Credit Notes array with a unique CreditNote
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Noteunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNoteAsPdf
public ByteArrayInputStream getCreditNoteAsPdf(String accessToken, String xeroTenantId, UUID creditNoteID) throws IOException
Retrieves credit notes as PDF files200 - Success - return response of binary data from the Attachment to a Credit Note
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNoteAsPdfForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNoteAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID) throws IOException
Retrieves credit notes as PDF files200 - Success - return response of binary data from the Attachment to a Credit Note
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNoteAttachmentByFileName
public ByteArrayInputStream getCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, String contentType) throws IOException
Retrieves a specific attachment on a specific credit note by file name200 - Success - return response of attachment for Credit Note as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, String contentType) throws IOException
Retrieves a specific attachment on a specific credit note by file name200 - Success - return response of attachment for Credit Note as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNoteAttachmentById
public ByteArrayInputStream getCreditNoteAttachmentById(String accessToken, String xeroTenantId, UUID creditNoteID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific credit note using a unique attachment Id200 - Success - return response of attachment for Credit Note as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNoteAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNoteAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific credit note using a unique attachment Id200 - Success - return response of attachment for Credit Note as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNoteAttachments
public Attachments getCreditNoteAttachments(String accessToken, String xeroTenantId, UUID creditNoteID) throws IOException
Retrieves attachments for a specific credit notes200 - Success - return response of type Attachments array with all Attachment for specific Credit Note
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNoteAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNoteAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID) throws IOException
Retrieves attachments for a specific credit notes200 - Success - return response of type Attachments array with all Attachment for specific Credit Note
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNoteHistory
public HistoryRecords getCreditNoteHistory(String accessToken, String xeroTenantId, UUID creditNoteID) throws IOException
Retrieves history records of a specific credit note200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNoteHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID) throws IOException
Retrieves history records of a specific credit note200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCreditNotes
public CreditNotes getCreditNotes(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves any credit notes200 - Success - return response of type Credit Notes array of CreditNote
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit noteunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- CreditNotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCreditNotesForHttpResponse
public com.google.api.client.http.HttpResponse getCreditNotesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves any credit notes200 - Success - return response of type Credit Notes array of CreditNote
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit noteunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getCurrencies
public Currencies getCurrencies(String accessToken, String xeroTenantId, String where, String order) throws IOException
Retrieves currencies for your Xero organisation200 - Success - return response of type Currencies array with all Currencies
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- Currencies
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getCurrenciesForHttpResponse
public com.google.api.client.http.HttpResponse getCurrenciesForHttpResponse(String accessToken, String xeroTenantId, String where, String order) throws IOException
Retrieves currencies for your Xero organisation200 - Success - return response of type Currencies array with all Currencies
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployee
public Employees getEmployee(String accessToken, String xeroTenantId, UUID employeeID) throws IOException
Retrieves a specific employee used in Xero payrun using a unique employee Id200 - Success - return response of type Employees array with specified Employee
- Parameters:
xeroTenantId- Xero identifier for TenantemployeeID- Unique identifier for a EmployeeaccessToken- Authorization token for user set in header of each request- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException
Retrieves a specific employee used in Xero payrun using a unique employee Id200 - Success - return response of type Employees array with specified Employee
- Parameters:
xeroTenantId- Xero identifier for TenantemployeeID- Unique identifier for a EmployeeaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployees
public Employees getEmployees(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves employees used in Xero payrun200 - Success - return response of type Employees array with all Employee
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves employees used in Xero payrun200 - Success - return response of type Employees array with all Employee
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getExpenseClaim
public ExpenseClaims getExpenseClaim(String accessToken, String xeroTenantId, UUID expenseClaimID) throws IOException
Retrieves a specific expense claim using a unique expense claim Id200 - Success - return response of type ExpenseClaims array with specified ExpenseClaim
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimaccessToken- Authorization token for user set in header of each request- Returns:
- ExpenseClaims
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getExpenseClaimForHttpResponse
public com.google.api.client.http.HttpResponse getExpenseClaimForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID) throws IOException
Retrieves a specific expense claim using a unique expense claim Id200 - Success - return response of type ExpenseClaims array with specified ExpenseClaim
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getExpenseClaimHistory
public HistoryRecords getExpenseClaimHistory(String accessToken, String xeroTenantId, UUID expenseClaimID) throws IOException
Retrieves history records of a specific expense claim200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getExpenseClaimHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getExpenseClaimHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID) throws IOException
Retrieves history records of a specific expense claim200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getExpenseClaims
public ExpenseClaims getExpenseClaims(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves expense claims200 - Success - return response of type ExpenseClaims array with all ExpenseClaims
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- ExpenseClaims
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getExpenseClaimsForHttpResponse
public com.google.api.client.http.HttpResponse getExpenseClaimsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves expense claims200 - Success - return response of type ExpenseClaims array with all ExpenseClaims
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoice
public Invoices getInvoice(String accessToken, String xeroTenantId, UUID invoiceID, Integer unitdp) throws IOException
Retrieves a specific sales invoice or purchase bill using a unique invoice Id200 - Success - return response of type Invoices array with specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoiceunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Invoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, Integer unitdp) throws IOException
Retrieves a specific sales invoice or purchase bill using a unique invoice Id200 - Success - return response of type Invoices array with specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoiceunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoiceAsPdf
public ByteArrayInputStream getInvoiceAsPdf(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves invoices or purchase bills as PDF files200 - Success - return response of byte array pdf version of specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceAsPdfForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves invoices or purchase bills as PDF files200 - Success - return response of byte array pdf version of specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoiceAttachmentByFileName
public ByteArrayInputStream getInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, String contentType) throws IOException
Retrieves an attachment from a specific invoice or purchase bill by filename200 - Success - return response of attachment for Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, String contentType) throws IOException
Retrieves an attachment from a specific invoice or purchase bill by filename200 - Success - return response of attachment for Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoiceAttachmentById
public ByteArrayInputStream getInvoiceAttachmentById(String accessToken, String xeroTenantId, UUID invoiceID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id200 - Success - return response of attachment for Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id200 - Success - return response of attachment for Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoiceAttachments
public Attachments getInvoiceAttachments(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves attachments for a specific invoice or purchase bill200 - Success - return response of type Attachments array of Attachments for specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves attachments for a specific invoice or purchase bill200 - Success - return response of type Attachments array of Attachments for specified Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoiceHistory
public HistoryRecords getInvoiceHistory(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves history records for a specific invoice200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves history records for a specific invoice200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoiceReminders
public InvoiceReminders getInvoiceReminders(String accessToken, String xeroTenantId) throws IOException
Retrieves invoice reminder settings200 - Success - return response of Invoice Reminders
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- InvoiceReminders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoiceRemindersForHttpResponse
public com.google.api.client.http.HttpResponse getInvoiceRemindersForHttpResponse(String accessToken, String xeroTenantId) throws IOException
Retrieves invoice reminder settings200 - Success - return response of Invoice Reminders
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getInvoices
public Invoices getInvoices(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, List<String> invoiceNumbers, List<UUID> contactIDs, List<String> statuses, Integer page, Boolean includeArchived, Boolean createdByMyApp, Integer unitdp, Boolean summaryOnly) throws IOException
Retrieves sales invoices or purchase bills200 - Success - return response of type Invoices array with all Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementids- Filter by a comma-separated list of InvoicesIDs.invoiceNumbers- Filter by a comma-separated list of InvoiceNumbers.contactIDs- Filter by a comma-separated list of ContactIDs.statuses- Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.page- e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoiceincludeArchived- e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the responsecreatedByMyApp- When set to true you'll only retrieve Invoices created by your appunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountssummaryOnly- Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.accessToken- Authorization token for user set in header of each request- Returns:
- Invoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getInvoicesForHttpResponse
public com.google.api.client.http.HttpResponse getInvoicesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, List<String> invoiceNumbers, List<UUID> contactIDs, List<String> statuses, Integer page, Boolean includeArchived, Boolean createdByMyApp, Integer unitdp, Boolean summaryOnly) throws IOException
Retrieves sales invoices or purchase bills200 - Success - return response of type Invoices array with all Invoices
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementids- Filter by a comma-separated list of InvoicesIDs.invoiceNumbers- Filter by a comma-separated list of InvoiceNumbers.contactIDs- Filter by a comma-separated list of ContactIDs.statuses- Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.page- e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoiceincludeArchived- e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the responsecreatedByMyApp- When set to true you'll only retrieve Invoices created by your appunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountssummaryOnly- Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getItem
public Items getItem(String accessToken, String xeroTenantId, UUID itemID, Integer unitdp) throws IOException
Retrieves a specific item using a unique item Id200 - Success - return response of type Items array with specified Item
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Itemunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Items
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getItemForHttpResponse
public com.google.api.client.http.HttpResponse getItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, Integer unitdp) throws IOException
Retrieves a specific item using a unique item Id200 - Success - return response of type Items array with specified Item
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Itemunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getItemHistory
public HistoryRecords getItemHistory(String accessToken, String xeroTenantId, UUID itemID) throws IOException
Retrieves history for a specific item200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getItemHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getItemHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID itemID) throws IOException
Retrieves history for a specific item200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getItems
public Items getItems(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp) throws IOException
Retrieves items200 - Success - return response of type Items array with all Item
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Items
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getItemsForHttpResponse
public com.google.api.client.http.HttpResponse getItemsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp) throws IOException
Retrieves items200 - Success - return response of type Items array with all Item
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getJournal
public Journals getJournal(String accessToken, String xeroTenantId, UUID journalID) throws IOException
Retrieves a specific journal using a unique journal Id.200 - Success - return response of type Journals array with specified Journal
- Parameters:
xeroTenantId- Xero identifier for TenantjournalID- Unique identifier for a JournalaccessToken- Authorization token for user set in header of each request- Returns:
- Journals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getJournalForHttpResponse
public com.google.api.client.http.HttpResponse getJournalForHttpResponse(String accessToken, String xeroTenantId, UUID journalID) throws IOException
Retrieves a specific journal using a unique journal Id.200 - Success - return response of type Journals array with specified Journal
- Parameters:
xeroTenantId- Xero identifier for TenantjournalID- Unique identifier for a JournalaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getJournals
public Journals getJournals(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, Integer offset, Boolean paymentsOnly) throws IOException
Retrieves journals200 - Success - return response of type Journals array with all Journals
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedoffset- Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returnedpaymentsOnly- Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default.accessToken- Authorization token for user set in header of each request- Returns:
- Journals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getJournalsForHttpResponse
public com.google.api.client.http.HttpResponse getJournalsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, Integer offset, Boolean paymentsOnly) throws IOException
Retrieves journals200 - Success - return response of type Journals array with all Journals
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedoffset- Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returnedpaymentsOnly- Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default.accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLinkedTransaction
public LinkedTransactions getLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID) throws IOException
Retrieves a specific linked transaction (billable expenses) using a unique linked transaction Id200 - Success - return response of type LinkedTransactions array with a specified LinkedTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionaccessToken- Authorization token for user set in header of each request- Returns:
- LinkedTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLinkedTransactionForHttpResponse
public com.google.api.client.http.HttpResponse getLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID) throws IOException
Retrieves a specific linked transaction (billable expenses) using a unique linked transaction Id200 - Success - return response of type LinkedTransactions array with a specified LinkedTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLinkedTransactions
public LinkedTransactions getLinkedTransactions(String accessToken, String xeroTenantId, Integer page, UUID linkedTransactionID, UUID sourceTransactionID, UUID contactID, String status, UUID targetTransactionID) throws IOException
Retrieves linked transactions (billable expenses)200 - Success - return response of type LinkedTransactions array with all LinkedTransaction
- Parameters:
xeroTenantId- Xero identifier for Tenantpage- Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page=1.linkedTransactionID- The Xero identifier for an Linked TransactionsourceTransactionID- Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoicecontactID- Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer.status- Filter by the combination of ContactID and Status. Get the linked transactions associated to a customer and with a statustargetTransactionID- Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoiceaccessToken- Authorization token for user set in header of each request- Returns:
- LinkedTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLinkedTransactionsForHttpResponse
public com.google.api.client.http.HttpResponse getLinkedTransactionsForHttpResponse(String accessToken, String xeroTenantId, Integer page, UUID linkedTransactionID, UUID sourceTransactionID, UUID contactID, String status, UUID targetTransactionID) throws IOException
Retrieves linked transactions (billable expenses)200 - Success - return response of type LinkedTransactions array with all LinkedTransaction
- Parameters:
xeroTenantId- Xero identifier for Tenantpage- Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page=1.linkedTransactionID- The Xero identifier for an Linked TransactionsourceTransactionID- Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoicecontactID- Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer.status- Filter by the combination of ContactID and Status. Get the linked transactions associated to a customer and with a statustargetTransactionID- Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getManualJournal
public ManualJournals getManualJournal(String accessToken, String xeroTenantId, UUID manualJournalID) throws IOException
Retrieves a specific manual journal200 - Success - return response of type ManualJournals array with a specified ManualJournals
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalaccessToken- Authorization token for user set in header of each request- Returns:
- ManualJournals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getManualJournalForHttpResponse
public com.google.api.client.http.HttpResponse getManualJournalForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID) throws IOException
Retrieves a specific manual journal200 - Success - return response of type ManualJournals array with a specified ManualJournals
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getManualJournalAttachmentByFileName
public ByteArrayInputStream getManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific manual journal by file name200 - Success - return response of attachment for Manual Journal as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getManualJournalAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific manual journal by file name200 - Success - return response of attachment for Manual Journal as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getManualJournalAttachmentById
public ByteArrayInputStream getManualJournalAttachmentById(String accessToken, String xeroTenantId, UUID manualJournalID, UUID attachmentID, String contentType) throws IOException
Allows you to retrieve a specific attachment from a specific manual journal using a unique attachment Id200 - Success - return response of attachment for Manual Journal as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getManualJournalAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getManualJournalAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, UUID attachmentID, String contentType) throws IOException
Allows you to retrieve a specific attachment from a specific manual journal using a unique attachment Id200 - Success - return response of attachment for Manual Journal as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getManualJournalAttachments
public Attachments getManualJournalAttachments(String accessToken, String xeroTenantId, UUID manualJournalID) throws IOException
Retrieves attachment for a specific manual journal200 - Success - return response of type Attachments array with all Attachments for a ManualJournals
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getManualJournalAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getManualJournalAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID) throws IOException
Retrieves attachment for a specific manual journal200 - Success - return response of type Attachments array with all Attachments for a ManualJournals
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getManualJournals
public ManualJournals getManualJournals(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves manual journals200 - Success - return response of type ManualJournals array with a all ManualJournals
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpaymentaccessToken- Authorization token for user set in header of each request- Returns:
- ManualJournals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getManualJournalsForHttpResponse
public com.google.api.client.http.HttpResponse getManualJournalsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves manual journals200 - Success - return response of type ManualJournals array with a all ManualJournals
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getManualJournalsHistory
public HistoryRecords getManualJournalsHistory(String accessToken, String xeroTenantId, UUID manualJournalID) throws IOException
Retrieves history for a specific manual journal200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getManualJournalsHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getManualJournalsHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID) throws IOException
Retrieves history for a specific manual journal200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOnlineInvoice
public OnlineInvoices getOnlineInvoice(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves a URL to an online invoice200 - Success - return response of type OnlineInvoice array with one OnlineInvoice
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- OnlineInvoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOnlineInvoiceForHttpResponse
public com.google.api.client.http.HttpResponse getOnlineInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID) throws IOException
Retrieves a URL to an online invoice200 - Success - return response of type OnlineInvoice array with one OnlineInvoice
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOrganisationActions
public Actions getOrganisationActions(String accessToken, String xeroTenantId) throws IOException
Retrieves a list of the key actions your app has permission to perform in the connected Xero organisation.200 - Success - return response of type Actions array with all key actions
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- Actions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOrganisationActionsForHttpResponse
public com.google.api.client.http.HttpResponse getOrganisationActionsForHttpResponse(String accessToken, String xeroTenantId) throws IOException
Retrieves a list of the key actions your app has permission to perform in the connected Xero organisation.200 - Success - return response of type Actions array with all key actions
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOrganisationCISSettings
public CISOrgSettings getOrganisationCISSettings(String accessToken, String xeroTenantId, UUID organisationID) throws IOException
Retrieves the CIS settings for the Xero organistaion.200 - Success - return response of type Organisation array with specified Organisation
- Parameters:
xeroTenantId- Xero identifier for TenantorganisationID- The unique Xero identifier for an organisationaccessToken- Authorization token for user set in header of each request- Returns:
- CISOrgSettings
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOrganisationCISSettingsForHttpResponse
public com.google.api.client.http.HttpResponse getOrganisationCISSettingsForHttpResponse(String accessToken, String xeroTenantId, UUID organisationID) throws IOException
Retrieves the CIS settings for the Xero organistaion.200 - Success - return response of type Organisation array with specified Organisation
- Parameters:
xeroTenantId- Xero identifier for TenantorganisationID- The unique Xero identifier for an organisationaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOrganisations
public Organisations getOrganisations(String accessToken, String xeroTenantId) throws IOException
Retrieves Xero organisation details200 - Success - return response of type Organisation array with all Organisation
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- Organisations
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOrganisationsForHttpResponse
public com.google.api.client.http.HttpResponse getOrganisationsForHttpResponse(String accessToken, String xeroTenantId) throws IOException
Retrieves Xero organisation details200 - Success - return response of type Organisation array with all Organisation
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOverpayment
public Overpayments getOverpayment(String accessToken, String xeroTenantId, UUID overpaymentID) throws IOException
Retrieves a specific overpayment using a unique overpayment Id200 - Success - return response of type Overpayments array with specified Overpayments
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymentaccessToken- Authorization token for user set in header of each request- Returns:
- Overpayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOverpaymentForHttpResponse
public com.google.api.client.http.HttpResponse getOverpaymentForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID) throws IOException
Retrieves a specific overpayment using a unique overpayment Id200 - Success - return response of type Overpayments array with specified Overpayments
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOverpaymentHistory
public HistoryRecords getOverpaymentHistory(String accessToken, String xeroTenantId, UUID overpaymentID) throws IOException
Retrieves history records of a specific overpayment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOverpaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getOverpaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID) throws IOException
Retrieves history records of a specific overpayment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOverpayments
public Overpayments getOverpayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves overpayments200 - Success - return response of type Overpayments array with all Overpayments
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpaymentunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Overpayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getOverpaymentsForHttpResponse
public com.google.api.client.http.HttpResponse getOverpaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves overpayments200 - Success - return response of type Overpayments array with all Overpayments
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpaymentunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayment
public Payments getPayment(String accessToken, String xeroTenantId, UUID paymentID) throws IOException
Retrieves a specific payment for invoices and credit notes using a unique payment Id200 - Success - return response of type Payments array for specified Payment
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentaccessToken- Authorization token for user set in header of each request- Returns:
- Payments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPaymentForHttpResponse
public com.google.api.client.http.HttpResponse getPaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID) throws IOException
Retrieves a specific payment for invoices and credit notes using a unique payment Id200 - Success - return response of type Payments array for specified Payment
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPaymentHistory
public HistoryRecords getPaymentHistory(String accessToken, String xeroTenantId, UUID paymentID) throws IOException
Retrieves history records of a specific payment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getPaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID) throws IOException
Retrieves history records of a specific payment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPaymentServices
public PaymentServices getPaymentServices(String accessToken, String xeroTenantId) throws IOException
Retrieves payment services200 - Success - return response of type PaymentServices array for all PaymentService
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- PaymentServices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPaymentServicesForHttpResponse
public com.google.api.client.http.HttpResponse getPaymentServicesForHttpResponse(String accessToken, String xeroTenantId) throws IOException
Retrieves payment services200 - Success - return response of type PaymentServices array for all PaymentService
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayments
public Payments getPayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves payments for invoices and credit notes200 - Success - return response of type Payments array for all Payments
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- Up to 100 payments will be returned in a single API callaccessToken- Authorization token for user set in header of each request- Returns:
- Payments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPaymentsForHttpResponse
public com.google.api.client.http.HttpResponse getPaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves payments for invoices and credit notes200 - Success - return response of type Payments array for all Payments
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- Up to 100 payments will be returned in a single API callaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPrepayment
public Prepayments getPrepayment(String accessToken, String xeroTenantId, UUID prepaymentID) throws IOException
Allows you to retrieve a specified prepayments200 - Success - return response of type Prepayments array for a specified Prepayment
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentaccessToken- Authorization token for user set in header of each request- Returns:
- Prepayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPrepaymentForHttpResponse
public com.google.api.client.http.HttpResponse getPrepaymentForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID) throws IOException
Allows you to retrieve a specified prepayments200 - Success - return response of type Prepayments array for a specified Prepayment
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPrepaymentHistory
public HistoryRecords getPrepaymentHistory(String accessToken, String xeroTenantId, UUID prepaymentID) throws IOException
Retrieves history record for a specific prepayment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPrepaymentHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getPrepaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID) throws IOException
Retrieves history record for a specific prepayment200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPrepayments
public Prepayments getPrepayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves prepayments200 - Success - return response of type Prepayments array for all Prepayment
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpaymentunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Prepayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPrepaymentsForHttpResponse
public com.google.api.client.http.HttpResponse getPrepaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp) throws IOException
Retrieves prepayments200 - Success - return response of type Prepayments array for all Prepayment
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpaymentunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrder
public PurchaseOrders getPurchaseOrder(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves a specific purchase order using a unique purchase order Id200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- PurchaseOrders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves a specific purchase order using a unique purchase order Id200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrderAsPdf
public ByteArrayInputStream getPurchaseOrderAsPdf(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves specific purchase order as PDF files using a unique purchase order Id200 - Success - return response of byte array pdf version of specified Purchase Orders
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderAsPdfForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves specific purchase order as PDF files using a unique purchase order Id200 - Success - return response of byte array pdf version of specified Purchase Orders
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrderAttachmentByFileName
public ByteArrayInputStream getPurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, String contentType) throws IOException
Retrieves a specific attachment for a specific purchase order by filename200 - Success - return response of attachment for Purchase Order as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, String contentType) throws IOException
Retrieves a specific attachment for a specific purchase order by filename200 - Success - return response of attachment for Purchase Order as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrderAttachmentById
public ByteArrayInputStream getPurchaseOrderAttachmentById(String accessToken, String xeroTenantId, UUID purchaseOrderID, UUID attachmentID, String contentType) throws IOException
Retrieves specific attachment for a specific purchase order using a unique attachment Id200 - Success - return response of attachment for Account as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, UUID attachmentID, String contentType) throws IOException
Retrieves specific attachment for a specific purchase order using a unique attachment Id200 - Success - return response of attachment for Account as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrderAttachments
public Attachments getPurchaseOrderAttachments(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves attachments for a specific purchase order200 - Success - return response of type Attachments array of Purchase Orders
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves attachments for a specific purchase order200 - Success - return response of type Attachments array of Purchase Orders
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrderByNumber
public PurchaseOrders getPurchaseOrderByNumber(String accessToken, String xeroTenantId, String purchaseOrderNumber) throws IOException
Retrieves a specific purchase order using purchase order number200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderNumber- Unique identifier for a PurchaseOrderaccessToken- Authorization token for user set in header of each request- Returns:
- PurchaseOrders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderByNumberForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderByNumberForHttpResponse(String accessToken, String xeroTenantId, String purchaseOrderNumber) throws IOException
Retrieves a specific purchase order using purchase order number200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderNumber- Unique identifier for a PurchaseOrderaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrderHistory
public HistoryRecords getPurchaseOrderHistory(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves history for a specific purchase order200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrderHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrderHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID) throws IOException
Retrieves history for a specific purchase order200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPurchaseOrders
public PurchaseOrders getPurchaseOrders(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String status, String dateFrom, String dateTo, String order, Integer page) throws IOException
Retrieves purchase orders200 - Success - return response of type PurchaseOrder array of all PurchaseOrder
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedstatus- Filter by purchase order statusdateFrom- Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31dateTo- Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31order- Order by an any elementpage- To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.accessToken- Authorization token for user set in header of each request- Returns:
- PurchaseOrders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPurchaseOrdersForHttpResponse
public com.google.api.client.http.HttpResponse getPurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String status, String dateFrom, String dateTo, String order, Integer page) throws IOException
Retrieves purchase orders200 - Success - return response of type PurchaseOrder array of all PurchaseOrder
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedstatus- Filter by purchase order statusdateFrom- Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31dateTo- Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31order- Order by an any elementpage- To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuote
public Quotes getQuote(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves a specific quote using a unique quote Id200 - Success - return response of type Quotes array with specified Quote
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- Quotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuoteForHttpResponse
public com.google.api.client.http.HttpResponse getQuoteForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves a specific quote using a unique quote Id200 - Success - return response of type Quotes array with specified Quote
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuoteAsPdf
public ByteArrayInputStream getQuoteAsPdf(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves a specific quote as a PDF file using a unique quote Id200 - Success - return response of byte array pdf version of specified Quotes
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuoteAsPdfForHttpResponse
public com.google.api.client.http.HttpResponse getQuoteAsPdfForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves a specific quote as a PDF file using a unique quote Id200 - Success - return response of byte array pdf version of specified Quotes
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuoteAttachmentByFileName
public ByteArrayInputStream getQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific quote by filename200 - Success - return response of attachment for Quote as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific quote by filename200 - Success - return response of attachment for Quote as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuoteAttachmentById
public ByteArrayInputStream getQuoteAttachmentById(String accessToken, String xeroTenantId, UUID quoteID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific quote using a unique attachment Id200 - Success - return response of attachment for Quote as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuoteAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getQuoteAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific quote using a unique attachment Id200 - Success - return response of attachment for Quote as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuoteAttachments
public Attachments getQuoteAttachments(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves attachments for a specific quote200 - Success - return response of type Attachments array of Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuoteAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getQuoteAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves attachments for a specific quote200 - Success - return response of type Attachments array of Attachment
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuoteHistory
public HistoryRecords getQuoteHistory(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves history records of a specific quote200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuoteHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getQuoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID) throws IOException
Retrieves history records of a specific quote200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuoteaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuotes
public Quotes getQuotes(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, org.threeten.bp.LocalDate dateFrom, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate expiryDateFrom, org.threeten.bp.LocalDate expiryDateTo, UUID contactID, String status, Integer page, String order, String quoteNumber) throws IOException
Retrieves sales quotes200 - Success - return response of type quotes array with all quotes
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returneddateFrom- Filter for quotes after a particular datedateTo- Filter for quotes before a particular dateexpiryDateFrom- Filter for quotes expiring after a particular dateexpiryDateTo- Filter for quotes before a particular datecontactID- Filter for quotes belonging to a particular contactstatus- Filter for quotes of a particular Statuspage- e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quoteorder- Order by an any elementquoteNumber- Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)accessToken- Authorization token for user set in header of each request- Returns:
- Quotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getQuotesForHttpResponse
public com.google.api.client.http.HttpResponse getQuotesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, org.threeten.bp.LocalDate dateFrom, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate expiryDateFrom, org.threeten.bp.LocalDate expiryDateTo, UUID contactID, String status, Integer page, String order, String quoteNumber) throws IOException
Retrieves sales quotes200 - Success - return response of type quotes array with all quotes
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returneddateFrom- Filter for quotes after a particular datedateTo- Filter for quotes before a particular dateexpiryDateFrom- Filter for quotes expiring after a particular dateexpiryDateTo- Filter for quotes before a particular datecontactID- Filter for quotes belonging to a particular contactstatus- Filter for quotes of a particular Statuspage- e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quoteorder- Order by an any elementquoteNumber- Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReceipt
public Receipts getReceipt(String accessToken, String xeroTenantId, UUID receiptID, Integer unitdp) throws IOException
Retrieves a specific draft expense claim receipt by using a unique receipt Id200 - Success - return response of type Receipts array for a specified Receipt
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receiptunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Receipts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReceiptForHttpResponse
public com.google.api.client.http.HttpResponse getReceiptForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, Integer unitdp) throws IOException
Retrieves a specific draft expense claim receipt by using a unique receipt Id200 - Success - return response of type Receipts array for a specified Receipt
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receiptunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReceiptAttachmentByFileName
public ByteArrayInputStream getReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific expense claim receipts by file name200 - Success - return response of attachment for Receipt as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReceiptAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific expense claim receipts by file name200 - Success - return response of attachment for Receipt as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReceiptAttachmentById
public ByteArrayInputStream getReceiptAttachmentById(String accessToken, String xeroTenantId, UUID receiptID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachments from a specific expense claim receipts by using a unique attachment Id200 - Success - return response of attachment for Receipt as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReceiptAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getReceiptAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachments from a specific expense claim receipts by using a unique attachment Id200 - Success - return response of attachment for Receipt as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReceiptAttachments
public Attachments getReceiptAttachments(String accessToken, String xeroTenantId, UUID receiptID) throws IOException
Retrieves attachments for a specific expense claim receipt200 - Success - return response of type Attachments array of Attachments for a specified Receipt
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReceiptAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getReceiptAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID) throws IOException
Retrieves attachments for a specific expense claim receipt200 - Success - return response of type Attachments array of Attachments for a specified Receipt
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReceiptHistory
public HistoryRecords getReceiptHistory(String accessToken, String xeroTenantId, UUID receiptID) throws IOException
Retrieves a history record for a specific receipt200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReceiptHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getReceiptHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID) throws IOException
Retrieves a history record for a specific receipt200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReceipts
public Receipts getReceipts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp) throws IOException
Retrieves draft expense claim receipts for any user200 - Success - return response of type Receipts array for all Receipt
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Receipts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReceiptsForHttpResponse
public com.google.api.client.http.HttpResponse getReceiptsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer unitdp) throws IOException
Retrieves draft expense claim receipts for any user200 - Success - return response of type Receipts array for all Receipt
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getRepeatingInvoice
public RepeatingInvoices getRepeatingInvoice(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) throws IOException
Retrieves a specific repeating invoice by using a unique repeating invoice Id200 - Success - return response of type Repeating Invoices array with a specified Repeating Invoice
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- RepeatingInvoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getRepeatingInvoiceForHttpResponse
public com.google.api.client.http.HttpResponse getRepeatingInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) throws IOException
Retrieves a specific repeating invoice by using a unique repeating invoice Id200 - Success - return response of type Repeating Invoices array with a specified Repeating Invoice
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getRepeatingInvoiceAttachmentByFileName
public ByteArrayInputStream getRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific repeating invoices by file name200 - Success - return response of attachment for Repeating Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getRepeatingInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse getRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, String contentType) throws IOException
Retrieves a specific attachment from a specific repeating invoices by file name200 - Success - return response of attachment for Repeating Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getRepeatingInvoiceAttachmentById
public ByteArrayInputStream getRepeatingInvoiceAttachmentById(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific repeating invoice200 - Success - return response of attachment for Repeating Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- ByteArrayInputStream
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getRepeatingInvoiceAttachmentByIdForHttpResponse
public com.google.api.client.http.HttpResponse getRepeatingInvoiceAttachmentByIdForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, UUID attachmentID, String contentType) throws IOException
Retrieves a specific attachment from a specific repeating invoice200 - Success - return response of attachment for Repeating Invoice as binary data
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceattachmentID- Unique identifier for Attachment objectcontentType- The mime type of the attachment file you are retrieving i.e image/jpg, application/pdfaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getRepeatingInvoiceAttachments
public Attachments getRepeatingInvoiceAttachments(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) throws IOException
Retrieves attachments from a specific repeating invoice200 - Success - return response of type Attachments array with all Attachments for a specified Repeating Invoice
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getRepeatingInvoiceAttachmentsForHttpResponse
public com.google.api.client.http.HttpResponse getRepeatingInvoiceAttachmentsForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) throws IOException
Retrieves attachments from a specific repeating invoice200 - Success - return response of type Attachments array with all Attachments for a specified Repeating Invoice
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getRepeatingInvoiceHistory
public HistoryRecords getRepeatingInvoiceHistory(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) throws IOException
Retrieves history record for a specific repeating invoice200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HistoryRecords
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getRepeatingInvoiceHistoryForHttpResponse
public com.google.api.client.http.HttpResponse getRepeatingInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) throws IOException
Retrieves history record for a specific repeating invoice200 - Success - return response of HistoryRecords array of 0 to N HistoryRecord
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoiceaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getRepeatingInvoices
public RepeatingInvoices getRepeatingInvoices(String accessToken, String xeroTenantId, String where, String order) throws IOException
Retrieves repeating invoices200 - Success - return response of type Repeating Invoices array for all Repeating Invoice
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- RepeatingInvoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getRepeatingInvoicesForHttpResponse
public com.google.api.client.http.HttpResponse getRepeatingInvoicesForHttpResponse(String accessToken, String xeroTenantId, String where, String order) throws IOException
Retrieves repeating invoices200 - Success - return response of type Repeating Invoices array for all Repeating Invoice
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportAgedPayablesByContact
public ReportWithRows getReportAgedPayablesByContact(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate) throws IOException
Retrieves report for aged payables by contact200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantcontactId- Unique identifier for a Contactdate- The date of the Aged Payables By Contact reportfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28accessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportAgedPayablesByContactForHttpResponse
public com.google.api.client.http.HttpResponse getReportAgedPayablesByContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate) throws IOException
Retrieves report for aged payables by contact200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantcontactId- Unique identifier for a Contactdate- The date of the Aged Payables By Contact reportfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportAgedReceivablesByContact
public ReportWithRows getReportAgedReceivablesByContact(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate) throws IOException
Retrieves report for aged receivables by contact200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantcontactId- Unique identifier for a Contactdate- The date of the Aged Receivables By Contact reportfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28accessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportAgedReceivablesByContactForHttpResponse
public com.google.api.client.http.HttpResponse getReportAgedReceivablesByContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactId, org.threeten.bp.LocalDate date, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate) throws IOException
Retrieves report for aged receivables by contact200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantcontactId- Unique identifier for a Contactdate- The date of the Aged Receivables By Contact reportfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportBalanceSheet
public ReportWithRows getReportBalanceSheet(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, String timeframe, String trackingOptionID1, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly) throws IOException
Retrieves report for balancesheet200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date of the Balance Sheet reportperiods- The number of periods for the Balance Sheet reporttimeframe- The period size to compare to (MONTH, QUARTER, YEAR)trackingOptionID1- The tracking option 1 for the Balance Sheet reporttrackingOptionID2- The tracking option 2 for the Balance Sheet reportstandardLayout- The standard layout boolean for the Balance Sheet reportpaymentsOnly- return a cash basis for the Balance Sheet reportaccessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportBalanceSheetForHttpResponse
public com.google.api.client.http.HttpResponse getReportBalanceSheetForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, String timeframe, String trackingOptionID1, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly) throws IOException
Retrieves report for balancesheet200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date of the Balance Sheet reportperiods- The number of periods for the Balance Sheet reporttimeframe- The period size to compare to (MONTH, QUARTER, YEAR)trackingOptionID1- The tracking option 1 for the Balance Sheet reporttrackingOptionID2- The tracking option 2 for the Balance Sheet reportstandardLayout- The standard layout boolean for the Balance Sheet reportpaymentsOnly- return a cash basis for the Balance Sheet reportaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportBankSummary
public ReportWithRows getReportBankSummary(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate) throws IOException
Retrieves report for bank summary200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28accessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportBankSummaryForHttpResponse
public com.google.api.client.http.HttpResponse getReportBankSummaryForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate) throws IOException
Retrieves report for bank summary200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportBudgetSummary
public ReportWithRows getReportBudgetSummary(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, Integer timeframe) throws IOException
Retrieves report for budget summary200 - success- return a Report with Rows object
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date for the Bank Summary report e.g. 2018-03-31periods- The number of periods to compare (integer between 1 and 12)timeframe- The period size to compare to (1=month, 3=quarter, 12=year)accessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportBudgetSummaryForHttpResponse
public com.google.api.client.http.HttpResponse getReportBudgetSummaryForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Integer periods, Integer timeframe) throws IOException
Retrieves report for budget summary200 - success- return a Report with Rows object
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date for the Bank Summary report e.g. 2018-03-31periods- The number of periods to compare (integer between 1 and 12)timeframe- The period size to compare to (1=month, 3=quarter, 12=year)accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportExecutiveSummary
public ReportWithRows getReportExecutiveSummary(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date) throws IOException
Retrieves report for executive summary200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date for the Bank Summary report e.g. 2018-03-31accessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportExecutiveSummaryForHttpResponse
public com.google.api.client.http.HttpResponse getReportExecutiveSummaryForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date) throws IOException
Retrieves report for executive summary200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date for the Bank Summary report e.g. 2018-03-31accessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportFromId
public ReportWithRows getReportFromId(String accessToken, String xeroTenantId, String reportID) throws IOException
Retrieves a specific report using a unique ReportID200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantreportID- Unique identifier for a ReportaccessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportFromIdForHttpResponse
public com.google.api.client.http.HttpResponse getReportFromIdForHttpResponse(String accessToken, String xeroTenantId, String reportID) throws IOException
Retrieves a specific report using a unique ReportID200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantreportID- Unique identifier for a ReportaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportProfitAndLoss
public ReportWithRows getReportProfitAndLoss(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, Integer periods, String timeframe, String trackingCategoryID, String trackingCategoryID2, String trackingOptionID, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly) throws IOException
Retrieves report for profit and loss200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28periods- The number of periods to compare (integer between 1 and 12)timeframe- The period size to compare to (MONTH, QUARTER, YEAR)trackingCategoryID- The trackingCategory 1 for the ProfitAndLoss reporttrackingCategoryID2- The trackingCategory 2 for the ProfitAndLoss reporttrackingOptionID- The tracking option 1 for the ProfitAndLoss reporttrackingOptionID2- The tracking option 2 for the ProfitAndLoss reportstandardLayout- Return the standard layout for the ProfitAndLoss reportpaymentsOnly- Return cash only basis for the ProfitAndLoss reportaccessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportProfitAndLossForHttpResponse
public com.google.api.client.http.HttpResponse getReportProfitAndLossForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, Integer periods, String timeframe, String trackingCategoryID, String trackingCategoryID2, String trackingOptionID, String trackingOptionID2, Boolean standardLayout, Boolean paymentsOnly) throws IOException
Retrieves report for profit and loss200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantfromDate- filter by the from date of the report e.g. 2021-02-01toDate- filter by the to date of the report e.g. 2021-02-28periods- The number of periods to compare (integer between 1 and 12)timeframe- The period size to compare to (MONTH, QUARTER, YEAR)trackingCategoryID- The trackingCategory 1 for the ProfitAndLoss reporttrackingCategoryID2- The trackingCategory 2 for the ProfitAndLoss reporttrackingOptionID- The tracking option 1 for the ProfitAndLoss reporttrackingOptionID2- The tracking option 2 for the ProfitAndLoss reportstandardLayout- Return the standard layout for the ProfitAndLoss reportpaymentsOnly- Return cash only basis for the ProfitAndLoss reportaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportTenNinetyNine
public Reports getReportTenNinetyNine(String accessToken, String xeroTenantId, String reportYear) throws IOException
Retrieve reports for 1099200 - Success - return response of type Reports
- Parameters:
xeroTenantId- Xero identifier for TenantreportYear- The year of the 1099 reportaccessToken- Authorization token for user set in header of each request- Returns:
- Reports
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportTenNinetyNineForHttpResponse
public com.google.api.client.http.HttpResponse getReportTenNinetyNineForHttpResponse(String accessToken, String xeroTenantId, String reportYear) throws IOException
Retrieve reports for 1099200 - Success - return response of type Reports
- Parameters:
xeroTenantId- Xero identifier for TenantreportYear- The year of the 1099 reportaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportTrialBalance
public ReportWithRows getReportTrialBalance(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Boolean paymentsOnly) throws IOException
Retrieves report for trial balance200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date for the Trial Balance report e.g. 2018-03-31paymentsOnly- Return cash only basis for the Trial Balance reportaccessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportTrialBalanceForHttpResponse
public com.google.api.client.http.HttpResponse getReportTrialBalanceForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.LocalDate date, Boolean paymentsOnly) throws IOException
Retrieves report for trial balance200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for Tenantdate- The date for the Trial Balance report e.g. 2018-03-31paymentsOnly- Return cash only basis for the Trial Balance reportaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportsList
public ReportWithRows getReportsList(String accessToken, String xeroTenantId) throws IOException
Retrieves a list of the organistaions unique reports that require a uuid to fetch200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- ReportWithRows
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getReportsListForHttpResponse
public com.google.api.client.http.HttpResponse getReportsListForHttpResponse(String accessToken, String xeroTenantId) throws IOException
Retrieves a list of the organistaions unique reports that require a uuid to fetch200 - Success - return response of type ReportWithRows
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTaxRates
public TaxRates getTaxRates(String accessToken, String xeroTenantId, String where, String order, String taxType) throws IOException
Retrieves tax rates200 - Success - return response of type TaxRates array with TaxRates
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementtaxType- Filter by tax typeaccessToken- Authorization token for user set in header of each request- Returns:
- TaxRates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTaxRatesForHttpResponse
public com.google.api.client.http.HttpResponse getTaxRatesForHttpResponse(String accessToken, String xeroTenantId, String where, String order, String taxType) throws IOException
Retrieves tax rates200 - Success - return response of type TaxRates array with TaxRates
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementtaxType- Filter by tax typeaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTrackingCategories
public TrackingCategories getTrackingCategories(String accessToken, String xeroTenantId, String where, String order, Boolean includeArchived) throws IOException
Retrieves tracking categories and options200 - Success - return response of type TrackingCategories array of TrackingCategory
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementincludeArchived- e.g. includeArchived=true - Categories and options with a status of ARCHIVED will be included in the responseaccessToken- Authorization token for user set in header of each request- Returns:
- TrackingCategories
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTrackingCategoriesForHttpResponse
public com.google.api.client.http.HttpResponse getTrackingCategoriesForHttpResponse(String accessToken, String xeroTenantId, String where, String order, Boolean includeArchived) throws IOException
Retrieves tracking categories and options200 - Success - return response of type TrackingCategories array of TrackingCategory
- Parameters:
xeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any elementincludeArchived- e.g. includeArchived=true - Categories and options with a status of ARCHIVED will be included in the responseaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTrackingCategory
public TrackingCategories getTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID) throws IOException
Retrieves specific tracking categories and options using a unique tracking category Id200 - Success - return response of type TrackingCategories array of specified TrackingCategory
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategoryaccessToken- Authorization token for user set in header of each request- Returns:
- TrackingCategories
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTrackingCategoryForHttpResponse
public com.google.api.client.http.HttpResponse getTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID) throws IOException
Retrieves specific tracking categories and options using a unique tracking category Id200 - Success - return response of type TrackingCategories array of specified TrackingCategory
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategoryaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getUser
public Users getUser(String accessToken, String xeroTenantId, UUID userID) throws IOException
Retrieves a specific user200 - Success - return response of type Users array of specified User
- Parameters:
xeroTenantId- Xero identifier for TenantuserID- Unique identifier for a UseraccessToken- Authorization token for user set in header of each request- Returns:
- Users
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getUserForHttpResponse
public com.google.api.client.http.HttpResponse getUserForHttpResponse(String accessToken, String xeroTenantId, UUID userID) throws IOException
Retrieves a specific user200 - Success - return response of type Users array of specified User
- Parameters:
xeroTenantId- Xero identifier for TenantuserID- Unique identifier for a UseraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getUsers
public Users getUsers(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves users200 - Success - return response of type Users array of all User
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- Users
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getUsersForHttpResponse
public com.google.api.client.http.HttpResponse getUsersForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order) throws IOException
Retrieves users200 - Success - return response of type Users array of all User
- Parameters:
xeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
postSetup
public ImportSummaryObject postSetup(String accessToken, String xeroTenantId, Setup setup) throws IOException
Sets the chart of accounts, the conversion date and conversion balances200 - Success - returns a summary of the chart of accounts updates
- Parameters:
xeroTenantId- Xero identifier for Tenantsetup- Object including an accounts array, a conversion balances array and a conversion date object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- ImportSummaryObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
postSetupForHttpResponse
public com.google.api.client.http.HttpResponse postSetupForHttpResponse(String accessToken, String xeroTenantId, Setup setup) throws IOException
Sets the chart of accounts, the conversion date and conversion balances200 - Success - returns a summary of the chart of accounts updates
- Parameters:
xeroTenantId- Xero identifier for Tenantsetup- Object including an accounts array, a conversion balances array and a conversion date object in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateAccount
public Accounts updateAccount(String accessToken, String xeroTenantId, UUID accountID, Accounts accounts) throws IOException
Updates a chart of accounts200 - Success - update existing Account and return response of type Accounts array with updated Account
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccounts- Request of type Accounts array with one AccountaccessToken- Authorization token for user set in header of each request- Returns:
- Accounts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateAccountForHttpResponse
public com.google.api.client.http.HttpResponse updateAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, Accounts accounts) throws IOException
Updates a chart of accounts200 - Success - update existing Account and return response of type Accounts array with updated Account
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccounts- Request of type Accounts array with one AccountaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateAccountAttachmentByFileName
public Attachments updateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType) throws IOException
Updates attachment on a specific account by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateAccountAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String mimeType) throws IOException
Updates attachment on a specific account by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateAccountAttachmentByFileName
public Attachments updateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body) throws IOException
Updates attachment on a specific account by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateAccountAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body) throws IOException
Updates attachment on a specific account by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateBankTransaction
public BankTransactions updateBankTransaction(String accessToken, String xeroTenantId, UUID bankTransactionID, BankTransactions bankTransactions, Integer unitdp) throws IOException
Updates a single spent or received money transaction200 - Success - return response of type BankTransactions array with updated BankTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionbankTransactions- The bankTransactions parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateBankTransactionForHttpResponse
public com.google.api.client.http.HttpResponse updateBankTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, BankTransactions bankTransactions, Integer unitdp) throws IOException
Updates a single spent or received money transaction200 - Success - return response of type BankTransactions array with updated BankTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionbankTransactions- The bankTransactions parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateBankTransactionAttachmentByFileName
public Attachments updateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateBankTransactionAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateBankTransactionAttachmentByFileName
public Attachments updateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body) throws IOException
Updates a specific attachment from a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateBankTransactionAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateBankTransactionAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body) throws IOException
Updates a specific attachment from a specific bank transaction by filename200 - Success - return response of Attachments array of Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateBankTransferAttachmentByFileName
public Attachments updateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateBankTransferAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateBankTransferAttachmentByFileName
public Attachments updateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateBankTransferAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateBankTransferAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body) throws IOException
200 - Success - return response of Attachments array of 0 to N Attachment for a Bank Transfer400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateContact
public Contacts updateContact(String accessToken, String xeroTenantId, UUID contactID, Contacts contacts) throws IOException
Updates a specific contact in a Xero organisation200 - Success - return response of type Contacts array with an updated Contact
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contactcontacts- an array of Contacts containing single Contact object with properties to updateaccessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateContactForHttpResponse
public com.google.api.client.http.HttpResponse updateContactForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, Contacts contacts) throws IOException
Updates a specific contact in a Xero organisation200 - Success - return response of type Contacts array with an updated Contact
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contactcontacts- an array of Contacts containing single Contact object with properties to updateaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateContactAttachmentByFileName
public Attachments updateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateContactAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String mimeType) throws IOException
200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateContactAttachmentByFileName
public Attachments updateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body) throws IOException
200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateContactAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateContactAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body) throws IOException
200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateContactGroup
public ContactGroups updateContactGroup(String accessToken, String xeroTenantId, UUID contactGroupID, ContactGroups contactGroups) throws IOException
Updates a specific contact group200 - Success - return response of type Contact Groups array of updated Contact Group
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactGroups- an array of Contact groups with Name of specific group to updateaccessToken- Authorization token for user set in header of each request- Returns:
- ContactGroups
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateContactGroupForHttpResponse
public com.google.api.client.http.HttpResponse updateContactGroupForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, ContactGroups contactGroups) throws IOException
Updates a specific contact group200 - Success - return response of type Contact Groups array of updated Contact Group
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactGroups- an array of Contact groups with Name of specific group to updateaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateCreditNote
public CreditNotes updateCreditNote(String accessToken, String xeroTenantId, UUID creditNoteID, CreditNotes creditNotes, Integer unitdp) throws IOException
Updates a specific credit note200 - Success - return response of type Credit Notes array with updated CreditNote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotecreditNotes- an array of Credit Notes containing credit note details to updateunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- CreditNotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateCreditNoteForHttpResponse
public com.google.api.client.http.HttpResponse updateCreditNoteForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, CreditNotes creditNotes, Integer unitdp) throws IOException
Updates a specific credit note200 - Success - return response of type Credit Notes array with updated CreditNote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotecreditNotes- an array of Credit Notes containing credit note details to updateunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateCreditNoteAttachmentByFileName
public Attachments updateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, String mimeType) throws IOException
Updates attachments on a specific credit note by file name200 - Success - return response of type Attachments array with updated Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateCreditNoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, String mimeType) throws IOException
Updates attachments on a specific credit note by file name200 - Success - return response of type Attachments array with updated Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateCreditNoteAttachmentByFileName
public Attachments updateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body) throws IOException
Updates attachments on a specific credit note by file name200 - Success - return response of type Attachments array with updated Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateCreditNoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateCreditNoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body) throws IOException
Updates attachments on a specific credit note by file name200 - Success - return response of type Attachments array with updated Attachment for specific Credit Note
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateExpenseClaim
public ExpenseClaims updateExpenseClaim(String accessToken, String xeroTenantId, UUID expenseClaimID, ExpenseClaims expenseClaims) throws IOException
Updates a specific expense claims200 - Success - return response of type ExpenseClaims array with updated ExpenseClaim
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimexpenseClaims- The expenseClaims parameteraccessToken- Authorization token for user set in header of each request- Returns:
- ExpenseClaims
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateExpenseClaimForHttpResponse
public com.google.api.client.http.HttpResponse updateExpenseClaimForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID, ExpenseClaims expenseClaims) throws IOException
Updates a specific expense claims200 - Success - return response of type ExpenseClaims array with updated ExpenseClaim
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimexpenseClaims- The expenseClaims parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateInvoice
public Invoices updateInvoice(String accessToken, String xeroTenantId, UUID invoiceID, Invoices invoices, Integer unitdp) throws IOException
Updates a specific sales invoices or purchase bills200 - Success - return response of type Invoices array with updated Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoiceinvoices- The invoices parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Invoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateInvoiceForHttpResponse
public com.google.api.client.http.HttpResponse updateInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, Invoices invoices, Integer unitdp) throws IOException
Updates a specific sales invoices or purchase bills200 - Success - return response of type Invoices array with updated Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoiceinvoices- The invoices parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateInvoiceAttachmentByFileName
public Attachments updateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, String mimeType) throws IOException
Updates an attachment from a specific invoices or purchase bill by filename200 - Success - return response of type Attachments array with updated Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, String mimeType) throws IOException
Updates an attachment from a specific invoices or purchase bill by filename200 - Success - return response of type Attachments array with updated Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateInvoiceAttachmentByFileName
public Attachments updateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body) throws IOException
Updates an attachment from a specific invoices or purchase bill by filename200 - Success - return response of type Attachments array with updated Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body) throws IOException
Updates an attachment from a specific invoices or purchase bill by filename200 - Success - return response of type Attachments array with updated Attachment
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateItem
public Items updateItem(String accessToken, String xeroTenantId, UUID itemID, Items items, Integer unitdp) throws IOException
Updates a specific item200 - Success - return response of type Items array with updated Item
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Itemitems- The items parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Items
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateItemForHttpResponse
public com.google.api.client.http.HttpResponse updateItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, Items items, Integer unitdp) throws IOException
Updates a specific item200 - Success - return response of type Items array with updated Item
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Itemitems- The items parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateLinkedTransaction
public LinkedTransactions updateLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID, LinkedTransactions linkedTransactions) throws IOException
Updates a specific linked transactions (billable expenses)200 - Success - return response of type LinkedTransactions array with updated LinkedTransaction
400 - Success - return response of type LinkedTransactions array with updated LinkedTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionlinkedTransactions- The linkedTransactions parameteraccessToken- Authorization token for user set in header of each request- Returns:
- LinkedTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateLinkedTransactionForHttpResponse
public com.google.api.client.http.HttpResponse updateLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID, LinkedTransactions linkedTransactions) throws IOException
Updates a specific linked transactions (billable expenses)200 - Success - return response of type LinkedTransactions array with updated LinkedTransaction
400 - Success - return response of type LinkedTransactions array with updated LinkedTransaction
- Parameters:
xeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionlinkedTransactions- The linkedTransactions parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateManualJournal
public ManualJournals updateManualJournal(String accessToken, String xeroTenantId, UUID manualJournalID, ManualJournals manualJournals) throws IOException
Updates a specific manual journal200 - Success - return response of type ManualJournals array with an updated ManualJournal
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalmanualJournals- The manualJournals parameteraccessToken- Authorization token for user set in header of each request- Returns:
- ManualJournals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateManualJournalForHttpResponse
public com.google.api.client.http.HttpResponse updateManualJournalForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, ManualJournals manualJournals) throws IOException
Updates a specific manual journal200 - Success - return response of type ManualJournals array with an updated ManualJournal
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalmanualJournals- The manualJournals parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateManualJournalAttachmentByFileName
public Attachments updateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific manual journal by file name200 - Success - return response of type Attachments array with an update Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateManualJournalAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific manual journal by file name200 - Success - return response of type Attachments array with an update Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateManualJournalAttachmentByFileName
public Attachments updateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body) throws IOException
Updates a specific attachment from a specific manual journal by file name200 - Success - return response of type Attachments array with an update Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateManualJournalAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateManualJournalAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body) throws IOException
Updates a specific attachment from a specific manual journal by file name200 - Success - return response of type Attachments array with an update Attachment for a ManualJournals
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateBankTransactions
public BankTransactions updateOrCreateBankTransactions(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more spent or received money transaction200 - Success - return response of type BankTransactions array with new BankTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactions- The bankTransactions parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- BankTransactions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateBankTransactionsForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more spent or received money transaction200 - Success - return response of type BankTransactions array with new BankTransaction
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantbankTransactions- The bankTransactions parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateContacts
public Contacts updateOrCreateContacts(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors) throws IOException
Updates or creates one or more contacts in a Xero organisation200 - Success - return response of type Contacts array with newly created Contact
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for Tenantcontacts- The contacts parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Contacts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateContactsForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateContactsForHttpResponse(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors) throws IOException
Updates or creates one or more contacts in a Xero organisation200 - Success - return response of type Contacts array with newly created Contact
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for Tenantcontacts- The contacts parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateCreditNotes
public CreditNotes updateOrCreateCreditNotes(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more credit notes200 - Success - return response of type Credit Notes array of newly created CreditNote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNotes- an array of Credit Notes with a single CreditNote object.summarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- CreditNotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateCreditNotesForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateCreditNotesForHttpResponse(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more credit notes200 - Success - return response of type Credit Notes array of newly created CreditNote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantcreditNotes- an array of Credit Notes with a single CreditNote object.summarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateEmployees
public Employees updateOrCreateEmployees(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors) throws IOException
Creates a single new employees used in Xero payrun200 - Success - return response of type Employees array with new Employee
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantemployees- Employees with array of Employee object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateEmployeesForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateEmployeesForHttpResponse(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors) throws IOException
Creates a single new employees used in Xero payrun200 - Success - return response of type Employees array with new Employee
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantemployees- Employees with array of Employee object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateInvoices
public Invoices updateOrCreateInvoices(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more sales invoices or purchase bills200 - Success - return response of type Invoices array with newly created Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantinvoices- The invoices parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Invoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateInvoicesForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateInvoicesForHttpResponse(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more sales invoices or purchase bills200 - Success - return response of type Invoices array with newly created Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantinvoices- The invoices parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateItems
public Items updateOrCreateItems(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more items200 - Success - return response of type Items array with newly created Item
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantitems- The items parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Items
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateItemsForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateItemsForHttpResponse(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp) throws IOException
Updates or creates one or more items200 - Success - return response of type Items array with newly created Item
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantitems- The items parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateManualJournals
public ManualJournals updateOrCreateManualJournals(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors) throws IOException
Updates or creates a single manual journal200 - Success - return response of type ManualJournals array with newly created ManualJournal
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournals- ManualJournals array with ManualJournal object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- ManualJournals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateManualJournalsForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateManualJournalsForHttpResponse(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors) throws IOException
Updates or creates a single manual journal200 - Success - return response of type ManualJournals array with newly created ManualJournal
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantmanualJournals- ManualJournals array with ManualJournal object in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreatePurchaseOrders
public PurchaseOrders updateOrCreatePurchaseOrders(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors) throws IOException
Updates or creates one or more purchase orders200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrders- The purchaseOrders parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- PurchaseOrders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreatePurchaseOrdersForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreatePurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors) throws IOException
Updates or creates one or more purchase orders200 - Success - return response of type PurchaseOrder array for specified PurchaseOrder
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrders- The purchaseOrders parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateQuotes
public Quotes updateOrCreateQuotes(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors) throws IOException
Updates or creates one or more quotes200 - Success - return response of type Quotes array with updated or created Quote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantquotes- The quotes parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- Quotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateQuotesForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateQuotesForHttpResponse(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors) throws IOException
Updates or creates one or more quotes200 - Success - return response of type Quotes array with updated or created Quote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for Tenantquotes- The quotes parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePurchaseOrder
public PurchaseOrders updatePurchaseOrder(String accessToken, String xeroTenantId, UUID purchaseOrderID, PurchaseOrders purchaseOrders) throws IOException
Updates a specific purchase order200 - Success - return response of type PurchaseOrder array for updated PurchaseOrder
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderpurchaseOrders- The purchaseOrders parameteraccessToken- Authorization token for user set in header of each request- Returns:
- PurchaseOrders
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePurchaseOrderForHttpResponse
public com.google.api.client.http.HttpResponse updatePurchaseOrderForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, PurchaseOrders purchaseOrders) throws IOException
Updates a specific purchase order200 - Success - return response of type PurchaseOrder array for updated PurchaseOrder
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderpurchaseOrders- The purchaseOrders parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePurchaseOrderAttachmentByFileName
public Attachments updatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment for a specific purchase order by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePurchaseOrderAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment for a specific purchase order by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePurchaseOrderAttachmentByFileName
public Attachments updatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body) throws IOException
Updates a specific attachment for a specific purchase order by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePurchaseOrderAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body) throws IOException
Updates a specific attachment for a specific purchase order by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateQuote
public Quotes updateQuote(String accessToken, String xeroTenantId, UUID quoteID, Quotes quotes) throws IOException
Updates a specific quote200 - Success - return response of type Quotes array with updated Quote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quotequotes- The quotes parameteraccessToken- Authorization token for user set in header of each request- Returns:
- Quotes
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateQuoteForHttpResponse
public com.google.api.client.http.HttpResponse updateQuoteForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, Quotes quotes) throws IOException
Updates a specific quote200 - Success - return response of type Quotes array with updated Quote
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quotequotes- The quotes parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateQuoteAttachmentByFileName
public Attachments updateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific quote by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateQuoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific quote by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateQuoteAttachmentByFileName
public Attachments updateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body) throws IOException
Updates a specific attachment from a specific quote by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateQuoteAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body) throws IOException
Updates a specific attachment from a specific quote by filename200 - Success - return response of type Attachments array of Attachment
400 - Validation Error - some data was incorrect returns response of type Error
- Parameters:
xeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateReceipt
public Receipts updateReceipt(String accessToken, String xeroTenantId, UUID receiptID, Receipts receipts, Integer unitdp) throws IOException
Updates a specific draft expense claim receipts200 - Success - return response of type Receipts array for updated Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receiptreceipts- The receipts parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- Receipts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateReceiptForHttpResponse
public com.google.api.client.http.HttpResponse updateReceiptForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, Receipts receipts, Integer unitdp) throws IOException
Updates a specific draft expense claim receipts200 - Success - return response of type Receipts array for updated Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receiptreceipts- The receipts parameterunitdp- e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amountsaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateReceiptAttachmentByFileName
public Attachments updateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateReceiptAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateReceiptAttachmentByFileName
public Attachments updateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body) throws IOException
Updates a specific attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateReceiptAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateReceiptAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body) throws IOException
Updates a specific attachment on a specific expense claim receipts by file name200 - Success - return response of type Attachments array with updated Attachment for a specified Receipt
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateRepeatingInvoiceAttachmentByFileName
public Attachments updateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with specified Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateRepeatingInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String mimeType) throws IOException
Updates a specific attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with specified Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestmimeType- The type of file being attachedaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateRepeatingInvoiceAttachmentByFileName
public Attachments updateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body) throws IOException
Updates a specific attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with specified Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- Attachments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateRepeatingInvoiceAttachmentByFileNameForHttpResponse
public com.google.api.client.http.HttpResponse updateRepeatingInvoiceAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body) throws IOException
Updates a specific attachment from a specific repeating invoices by file name200 - Success - return response of type Attachments array with specified Attachment for a specified Repeating Invoice
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateTaxRate
public TaxRates updateTaxRate(String accessToken, String xeroTenantId, TaxRates taxRates) throws IOException
Updates tax rates200 - Success - return response of type TaxRates array updated TaxRate
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttaxRates- The taxRates parameteraccessToken- Authorization token for user set in header of each request- Returns:
- TaxRates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateTaxRateForHttpResponse
public com.google.api.client.http.HttpResponse updateTaxRateForHttpResponse(String accessToken, String xeroTenantId, TaxRates taxRates) throws IOException
Updates tax rates200 - Success - return response of type TaxRates array updated TaxRate
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttaxRates- The taxRates parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateTrackingCategory
public TrackingCategories updateTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingCategory trackingCategory) throws IOException
Updates a specific tracking category200 - Success - return response of type TrackingCategories array of updated TrackingCategory
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingCategory- The trackingCategory parameteraccessToken- Authorization token for user set in header of each request- Returns:
- TrackingCategories
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateTrackingCategoryForHttpResponse
public com.google.api.client.http.HttpResponse updateTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingCategory trackingCategory) throws IOException
Updates a specific tracking category200 - Success - return response of type TrackingCategories array of updated TrackingCategory
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingCategory- The trackingCategory parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateTrackingOptions
public TrackingOptions updateTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID, TrackingOption trackingOption) throws IOException
Updates a specific option for a specific tracking category200 - Success - return response of type TrackingOptions array of options for a specified category
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking OptiontrackingOption- The trackingOption parameteraccessToken- Authorization token for user set in header of each request- Returns:
- TrackingOptions
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateTrackingOptionsForHttpResponse
public com.google.api.client.http.HttpResponse updateTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID, TrackingOption trackingOption) throws IOException
Updates a specific option for a specific tracking category200 - Success - return response of type TrackingOptions array of options for a specified category
400 - A failed request due to validation error
- Parameters:
xeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking OptiontrackingOption- The trackingOption parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
public ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
convert intput to byte array- Parameters:
is- InputStream the server status code returned- Returns:
- byteArrayInputStream a ByteArrayInputStream
- Throws:
IOException- for failed or interrupted I/O operations
-
-