Class AccountingApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert intput to byte arraycreateAccount(String accessToken, String xeroTenantId, Account account, String idempotencyKey) Creates a new chart of accountscreateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates an attachment on a specific accountcreateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body, String idempotencyKey) Creates an attachment on a specific accountcom.google.api.client.http.HttpResponsecreateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates an attachment on a specific accountcom.google.api.client.http.HttpResponsecreateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body, String idempotencyKey) Creates an attachment on a specific accountcom.google.api.client.http.HttpResponsecreateAccountForHttpResponse(String accessToken, String xeroTenantId, Account account, String idempotencyKey) Creates a new chart of accountscreateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates an attachment for a specific bank transaction by filenamecreateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Creates an attachment for a specific bank transaction by filenamecreateBankTransactionHistoryRecord(String accessToken, String xeroTenantId, UUID bankTransactionID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific bank transactionscom.google.api.client.http.HttpResponsecreateBankTransactionHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransactionID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific bank transactionscreateBankTransactions(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates one or more spent or received money transactioncom.google.api.client.http.HttpResponsecreateBankTransactionsForHttpResponse(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates one or more spent or received money transactioncreateBankTransfer(String accessToken, String xeroTenantId, BankTransfers bankTransfers, String idempotencyKey) Creates a bank transfercreateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String idempotencyKey, String mimeType) 200 - Success - return response of Attachments array of 0 to N Attachment for a Bank TransfercreateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Creates a bank transfercreateBankTransferHistoryRecord(String accessToken, String xeroTenantId, UUID bankTransferID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific bank transfercom.google.api.client.http.HttpResponsecreateBankTransferHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID bankTransferID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific bank transfercreateBatchPayment(String accessToken, String xeroTenantId, BatchPayments batchPayments, Boolean summarizeErrors, String idempotencyKey) Creates one or many batch payments for invoicescom.google.api.client.http.HttpResponsecreateBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, BatchPayments batchPayments, Boolean summarizeErrors, String idempotencyKey) Creates one or many batch payments for invoicescreateBatchPaymentHistoryRecord(String accessToken, String xeroTenantId, UUID batchPaymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific batch paymentcom.google.api.client.http.HttpResponsecreateBatchPaymentHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific batch paymentcreateBrandingThemePaymentServices(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentServices paymentServices, String idempotencyKey) Creates a new custom payment service for a specific branding themecom.google.api.client.http.HttpResponsecreateBrandingThemePaymentServicesForHttpResponse(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentServices paymentServices, String idempotencyKey) Creates a new custom payment service for a specific branding themecreateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String idempotencyKey, String mimeType) 200 - Success - return response of type Attachments array with an newly created AttachmentcreateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 200 - Success - return response of type Attachments array with an newly created AttachmentcreateContactGroup(String accessToken, String xeroTenantId, ContactGroups contactGroups, String idempotencyKey) Creates a contact groupcreateContactGroupContacts(String accessToken, String xeroTenantId, UUID contactGroupID, Contacts contacts, String idempotencyKey) Creates contacts to a specific contact groupcom.google.api.client.http.HttpResponsecreateContactGroupContactsForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, Contacts contacts, String idempotencyKey) Creates contacts to a specific contact groupcom.google.api.client.http.HttpResponsecreateContactGroupForHttpResponse(String accessToken, String xeroTenantId, ContactGroups contactGroups, String idempotencyKey) Creates a contact groupcreateContactHistory(String accessToken, String xeroTenantId, UUID contactID, HistoryRecords historyRecords, String idempotencyKey) Creates a new history record for a specific contactcom.google.api.client.http.HttpResponsecreateContactHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID contactID, HistoryRecords historyRecords, String idempotencyKey) Creates a new history record for a specific contactcreateContacts(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors, String idempotencyKey) Creates multiple contacts (bulk) in a Xero organisationcom.google.api.client.http.HttpResponsecreateContactsForHttpResponse(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors, String idempotencyKey) Creates multiple contacts (bulk) in a Xero organisationcreateCreditNoteAllocation(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors, String idempotencyKey) Creates allocation for a specific credit notecom.google.api.client.http.HttpResponsecreateCreditNoteAllocationForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors, String idempotencyKey) Creates allocation for a specific credit notecreateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, Boolean includeOnline, String idempotencyKey, String mimeType) Creates an attachment for a specific credit notecreateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body, Boolean includeOnline, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Creates an attachment for a specific credit notecreateCreditNoteHistory(String accessToken, String xeroTenantId, UUID creditNoteID, HistoryRecords historyRecords, String idempotencyKey) Retrieves history records of a specific credit notecom.google.api.client.http.HttpResponsecreateCreditNoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, HistoryRecords historyRecords, String idempotencyKey) Retrieves history records of a specific credit notecreateCreditNotes(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates a new credit notecom.google.api.client.http.HttpResponsecreateCreditNotesForHttpResponse(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates a new credit notecreateCurrency(String accessToken, String xeroTenantId, Currency currency, String idempotencyKey) Create a new currency for a Xero organisationcom.google.api.client.http.HttpResponsecreateCurrencyForHttpResponse(String accessToken, String xeroTenantId, Currency currency, String idempotencyKey) Create a new currency for a Xero organisationcreateEmployees(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors, String idempotencyKey) Creates new employees used in Xero payruncom.google.api.client.http.HttpResponsecreateEmployeesForHttpResponse(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors, String idempotencyKey) Creates new employees used in Xero payruncreateExpenseClaimHistory(String accessToken, String xeroTenantId, UUID expenseClaimID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific expense claimcom.google.api.client.http.HttpResponsecreateExpenseClaimHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific expense claimcreateExpenseClaims(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims, String idempotencyKey) Creates expense claimscom.google.api.client.http.HttpResponsecreateExpenseClaimsForHttpResponse(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims, String idempotencyKey) Creates expense claimscreateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, Boolean includeOnline, String idempotencyKey, String mimeType) Creates an attachment for a specific invoice or purchase bill by filenamecreateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body, Boolean includeOnline, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Creates an attachment for a specific invoice or purchase bill by filenamecreateInvoiceHistory(String accessToken, String xeroTenantId, UUID invoiceID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific invoicecom.google.api.client.http.HttpResponsecreateInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID invoiceID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific invoicecreateInvoices(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates one or more sales invoices or purchase billscom.google.api.client.http.HttpResponsecreateInvoicesForHttpResponse(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates one or more sales invoices or purchase billscreateItemHistory(String accessToken, String xeroTenantId, UUID itemID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific itemcom.google.api.client.http.HttpResponsecreateItemHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific itemcreateItems(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates one or more itemscom.google.api.client.http.HttpResponsecreateItemsForHttpResponse(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Creates one or more itemscreateLinkedTransaction(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction, String idempotencyKey) Creates linked transactions (billable expenses)com.google.api.client.http.HttpResponsecreateLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction, String idempotencyKey) Creates linked transactions (billable expenses)createManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates a specific attachment for a specific manual journal by file namecreateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Creates a specific attachment for a specific manual journal by file namecreateManualJournalHistoryRecord(String accessToken, String xeroTenantId, UUID manualJournalID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific manual journalcom.google.api.client.http.HttpResponsecreateManualJournalHistoryRecordForHttpResponse(String accessToken, String xeroTenantId, UUID manualJournalID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific manual journalcreateManualJournals(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors, String idempotencyKey) Creates one or more manual journalscom.google.api.client.http.HttpResponsecreateManualJournalsForHttpResponse(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors, String idempotencyKey) Creates one or more manual journalscreateOverpaymentAllocations(String accessToken, String xeroTenantId, UUID overpaymentID, Allocations allocations, Boolean summarizeErrors, String idempotencyKey) Creates a single allocation for a specific overpaymentcom.google.api.client.http.HttpResponsecreateOverpaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, Allocations allocations, Boolean summarizeErrors, String idempotencyKey) Creates a single allocation for a specific overpaymentcreateOverpaymentHistory(String accessToken, String xeroTenantId, UUID overpaymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific overpaymentcom.google.api.client.http.HttpResponsecreateOverpaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific overpaymentcreatePayment(String accessToken, String xeroTenantId, Payment payment, String idempotencyKey) Creates a single payment for invoice or credit notescom.google.api.client.http.HttpResponsecreatePaymentForHttpResponse(String accessToken, String xeroTenantId, Payment payment, String idempotencyKey) Creates a single payment for invoice or credit notescreatePaymentHistory(String accessToken, String xeroTenantId, UUID paymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific paymentcom.google.api.client.http.HttpResponsecreatePaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific paymentcreatePayments(String accessToken, String xeroTenantId, Payments payments, Boolean summarizeErrors, String idempotencyKey) Creates multiple payments for invoices or credit notescreatePaymentService(String accessToken, String xeroTenantId, PaymentServices paymentServices, String idempotencyKey) Creates a payment servicecom.google.api.client.http.HttpResponsecreatePaymentServiceForHttpResponse(String accessToken, String xeroTenantId, PaymentServices paymentServices, String idempotencyKey) Creates a payment servicecom.google.api.client.http.HttpResponsecreatePaymentsForHttpResponse(String accessToken, String xeroTenantId, Payments payments, Boolean summarizeErrors, String idempotencyKey) Creates multiple payments for invoices or credit notescreatePrepaymentAllocations(String accessToken, String xeroTenantId, UUID prepaymentID, Allocations allocations, Boolean summarizeErrors, String idempotencyKey) Allows you to create an Allocation for prepaymentscom.google.api.client.http.HttpResponsecreatePrepaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, Allocations allocations, Boolean summarizeErrors, String idempotencyKey) Allows you to create an Allocation for prepaymentscreatePrepaymentHistory(String accessToken, String xeroTenantId, UUID prepaymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific prepaymentcom.google.api.client.http.HttpResponsecreatePrepaymentHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific prepaymentcreatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates attachment for a specific purchase ordercreatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body, String idempotencyKey) Creates attachment for a specific purchase ordercom.google.api.client.http.HttpResponsecreatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates attachment for a specific purchase ordercom.google.api.client.http.HttpResponsecreatePurchaseOrderAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body, String idempotencyKey) Creates attachment for a specific purchase ordercreatePurchaseOrderHistory(String accessToken, String xeroTenantId, UUID purchaseOrderID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific purchase orderscom.google.api.client.http.HttpResponsecreatePurchaseOrderHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific purchase orderscreatePurchaseOrders(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors, String idempotencyKey) Creates one or more purchase orderscom.google.api.client.http.HttpResponsecreatePurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors, String idempotencyKey) Creates one or more purchase orderscreateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates attachment for a specific quotecreateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body, String idempotencyKey) Creates attachment for a specific quotecom.google.api.client.http.HttpResponsecreateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates attachment for a specific quotecom.google.api.client.http.HttpResponsecreateQuoteAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body, String idempotencyKey) Creates attachment for a specific quotecreateQuoteHistory(String accessToken, String xeroTenantId, UUID quoteID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific quotecom.google.api.client.http.HttpResponsecreateQuoteHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific quotecreateQuotes(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors, String idempotencyKey) Create one or more quotescom.google.api.client.http.HttpResponsecreateQuotesForHttpResponse(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors, String idempotencyKey) Create one or more quotescreateReceipt(String accessToken, String xeroTenantId, Receipts receipts, Integer unitdp, String idempotencyKey) Creates draft expense claim receipts for any usercreateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates an attachment on a specific expense claim receipts by file namecreateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Creates draft expense claim receipts for any usercreateReceiptHistory(String accessToken, String xeroTenantId, UUID receiptID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific receiptcom.google.api.client.http.HttpResponsecreateReceiptHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID receiptID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific receiptcreateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String idempotencyKey, String mimeType) Creates an attachment from a specific repeating invoices by file namecreateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Creates an attachment from a specific repeating invoices by file namecreateRepeatingInvoiceHistory(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific repeating invoicecom.google.api.client.http.HttpResponsecreateRepeatingInvoiceHistoryForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, HistoryRecords historyRecords, String idempotencyKey) Creates a history record for a specific repeating invoicecreateRepeatingInvoices(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) Creates one or more repeating invoice templatescom.google.api.client.http.HttpResponsecreateRepeatingInvoicesForHttpResponse(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) Creates one or more repeating invoice templatescreateTaxRates(String accessToken, String xeroTenantId, TaxRates taxRates, String idempotencyKey) Creates one or more tax ratescom.google.api.client.http.HttpResponsecreateTaxRatesForHttpResponse(String accessToken, String xeroTenantId, TaxRates taxRates, String idempotencyKey) Creates one or more tax ratescreateTrackingCategory(String accessToken, String xeroTenantId, TrackingCategory trackingCategory, String idempotencyKey) Create tracking categoriescom.google.api.client.http.HttpResponsecreateTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, TrackingCategory trackingCategory, String idempotencyKey) Create tracking categoriescreateTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingOption trackingOption, String idempotencyKey) Creates options for a specific tracking categorycom.google.api.client.http.HttpResponsecreateTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingOption trackingOption, String idempotencyKey) Creates options for a specific tracking categorydeleteAccount(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 accountsdeleteBatchPayment(String accessToken, String xeroTenantId, BatchPaymentDelete batchPaymentDelete, String idempotencyKey) Updates a specific batch payment for invoices and credit notesdeleteBatchPaymentByUrlParam(String accessToken, String xeroTenantId, UUID batchPaymentID, BatchPaymentDeleteByUrlParam batchPaymentDeleteByUrlParam, String idempotencyKey) Updates a specific batch payment for invoices and credit notescom.google.api.client.http.HttpResponsedeleteBatchPaymentByUrlParamForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID, BatchPaymentDeleteByUrlParam batchPaymentDeleteByUrlParam, String idempotencyKey) Updates a specific batch payment for invoices and credit notescom.google.api.client.http.HttpResponsedeleteBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, BatchPaymentDelete batchPaymentDelete, String idempotencyKey) Updates a specific batch payment for invoices and credit notesvoiddeleteContactGroupContact(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 groupdeleteCreditNoteAllocations(String accessToken, String xeroTenantId, UUID creditNoteID, UUID allocationID) Deletes an Allocation from a Credit Notecom.google.api.client.http.HttpResponsedeleteCreditNoteAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, UUID allocationID) Deletes an Allocation from a Credit NotevoiddeleteItem(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)deleteOverpaymentAllocations(String accessToken, String xeroTenantId, UUID overpaymentID, UUID allocationID) Deletes an Allocation from an overpaymentcom.google.api.client.http.HttpResponsedeleteOverpaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, UUID allocationID) Deletes an Allocation from an overpaymentdeletePayment(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete, String idempotencyKey) Updates a specific payment for invoices and credit notescom.google.api.client.http.HttpResponsedeletePaymentForHttpResponse(String accessToken, String xeroTenantId, UUID paymentID, PaymentDelete paymentDelete, String idempotencyKey) Updates a specific payment for invoices and credit notesdeletePrepaymentAllocations(String accessToken, String xeroTenantId, UUID prepaymentID, UUID allocationID) Deletes an Allocation from a Prepaymentcom.google.api.client.http.HttpResponsedeletePrepaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, UUID allocationID) Deletes an Allocation from a PrepaymentdeleteTrackingCategory(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 categorydeleteTrackingOptions(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, String idempotencyKey) 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, String idempotencyKey) Sends a copy of a specific invoice to related contact via emailgetAccount(String accessToken, String xeroTenantId, UUID accountID) Retrieves a single chart of accounts by using a unique account IdgetAccountAttachmentByFileName(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 filenamegetAccountAttachmentById(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 IdgetAccountAttachments(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 IdgetAccounts(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 accountsget ApiClientgetBankTransaction(String accessToken, String xeroTenantId, UUID bankTransactionID, Integer unitdp) Retrieves a single spent or received money transaction by using a unique bank transaction IdgetBankTransactionAttachmentByFileName(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 filenamegetBankTransactionAttachmentById(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 IdgetBankTransactionAttachments(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 IdgetBankTransactions(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp, Integer pageSize) 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, Integer pageSize) Retrieves any spent or received money transactionsgetBankTransactionsHistory(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 IdgetBankTransfer(String accessToken, String xeroTenantId, UUID bankTransferID) Retrieves specific bank transfers by using a unique bank transfer IdgetBankTransferAttachmentByFileName(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 namegetBankTransferAttachmentById(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 IDgetBankTransferAttachments(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 IdgetBankTransferHistory(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 IdgetBankTransfers(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 transfersgetBatchPayment(String accessToken, String xeroTenantId, UUID batchPaymentID) Retrieves a specific batch payment using a unique batch payment Idcom.google.api.client.http.HttpResponsegetBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID) Retrieves a specific batch payment using a unique batch payment IdgetBatchPaymentHistory(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 paymentgetBatchPayments(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 invoicesgetBrandingTheme(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 IdgetBrandingThemePaymentServices(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 themegetBrandingThemes(String accessToken, String xeroTenantId) Retrieves all the branding themescom.google.api.client.http.HttpResponsegetBrandingThemesForHttpResponse(String accessToken, String xeroTenantId) Retrieves all the branding themesgetBudget(String accessToken, String xeroTenantId, UUID budgetID, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom) Retrieves a specific budget, which includes budget linescom.google.api.client.http.HttpResponsegetBudgetForHttpResponse(String accessToken, String xeroTenantId, UUID budgetID, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom) Retrieves a specific budget, which includes budget linesgetBudgets(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 budgetsgetContact(String accessToken, String xeroTenantId, UUID contactID) Retrieves a specific contacts in a Xero organisation using a unique contact IdgetContactAttachmentByFileName(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 namegetContactAttachmentById(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 IdgetContactAttachments(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 organisationgetContactByContactNumber(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 organisationgetContactCISSettings(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 IdgetContactGroup(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 IdgetContactGroups(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 groupgetContactHistory(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 contactgetContacts(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, List<UUID> ids, Integer page, Boolean includeArchived, Boolean summaryOnly, String searchTerm, Integer pageSize) 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, String searchTerm, Integer pageSize) Retrieves all contacts in a Xero organisationgetCreditNote(String accessToken, String xeroTenantId, UUID creditNoteID, Integer unitdp) Retrieves a specific credit note using a unique credit note IdgetCreditNoteAsPdf(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 filesgetCreditNoteAttachmentByFileName(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 namegetCreditNoteAttachmentById(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 IdgetCreditNoteAttachments(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 IdgetCreditNoteHistory(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 notegetCreditNotes(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp, Integer pageSize) 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, Integer pageSize) Retrieves any credit notesgetCurrencies(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 organisationgetEmployee(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 IdgetEmployees(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 payrungetExpenseClaim(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 IdgetExpenseClaimHistory(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 claimgetExpenseClaims(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 getInstancegetInvoice(String accessToken, String xeroTenantId, UUID invoiceID, Integer unitdp) Retrieves a specific sales invoice or purchase bill using a unique invoice IdgetInvoiceAsPdf(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 filesgetInvoiceAttachmentByFileName(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 filenamegetInvoiceAttachmentById(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 IdgetInvoiceAttachments(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 IdgetInvoiceHistory(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 invoicegetInvoiceReminders(String accessToken, String xeroTenantId) Retrieves invoice reminder settingscom.google.api.client.http.HttpResponsegetInvoiceRemindersForHttpResponse(String accessToken, String xeroTenantId) Retrieves invoice reminder settingsgetInvoices(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, Integer pageSize, String searchTerm) 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, Integer pageSize, String searchTerm) Retrieves sales invoices or purchase billsRetrieves 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 IdgetItemHistory(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 itemgetItems(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 itemsgetJournal(String accessToken, String xeroTenantId, UUID journalID) Retrieves a specific journal using a unique journal Id.getJournalByNumber(String accessToken, String xeroTenantId, Integer journalNumber) Retrieves a specific journal using a unique journal number.com.google.api.client.http.HttpResponsegetJournalByNumberForHttpResponse(String accessToken, String xeroTenantId, Integer journalNumber) Retrieves a specific journal using a unique journal number.com.google.api.client.http.HttpResponsegetJournalForHttpResponse(String accessToken, String xeroTenantId, UUID journalID) Retrieves a specific journal using a unique journal Id.getJournals(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 journalsgetLinkedTransaction(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 IdgetLinkedTransactions(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)getManualJournal(String accessToken, String xeroTenantId, UUID manualJournalID) Retrieves a specific manual journalgetManualJournalAttachmentByFileName(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 namegetManualJournalAttachmentById(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 IdgetManualJournalAttachments(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 journalgetManualJournals(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer pageSize) Retrieves manual journalscom.google.api.client.http.HttpResponsegetManualJournalsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer pageSize) Retrieves manual journalsgetManualJournalsHistory(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 journalgetOnlineInvoice(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 invoicegetOrganisationActions(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.getOrganisationCISSettings(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.getOrganisations(String accessToken, String xeroTenantId) Retrieves Xero organisation detailscom.google.api.client.http.HttpResponsegetOrganisationsForHttpResponse(String accessToken, String xeroTenantId) Retrieves Xero organisation detailsgetOverpayment(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 IdgetOverpaymentHistory(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 overpaymentgetOverpayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp, Integer pageSize) Retrieves overpaymentscom.google.api.client.http.HttpResponsegetOverpaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp, Integer pageSize) Retrieves overpaymentsgetPayment(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 IdgetPaymentHistory(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 paymentgetPayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer pageSize) Retrieves payments for invoices and credit notesgetPaymentServices(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, Integer pageSize) Retrieves payments for invoices and credit notesgetPrepayment(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 prepaymentsgetPrepaymentHistory(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 prepaymentgetPrepayments(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp, Integer pageSize) Retrieves prepaymentscom.google.api.client.http.HttpResponsegetPrepaymentsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page, Integer unitdp, Integer pageSize) Retrieves prepaymentsgetPurchaseOrder(String accessToken, String xeroTenantId, UUID purchaseOrderID) Retrieves a specific purchase order using a unique purchase order IdgetPurchaseOrderAsPdf(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 IdgetPurchaseOrderAttachmentByFileName(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 filenamegetPurchaseOrderAttachmentById(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 IdgetPurchaseOrderAttachments(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 ordergetPurchaseOrderByNumber(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 IdgetPurchaseOrderHistory(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 ordergetPurchaseOrders(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String status, String dateFrom, String dateTo, String order, Integer page, Integer pageSize) 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, Integer pageSize) Retrieves purchase ordersRetrieves a specific quote using a unique quote IdgetQuoteAsPdf(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 IdgetQuoteAttachmentByFileName(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 filenamegetQuoteAttachmentById(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 IdgetQuoteAttachments(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 IdgetQuoteHistory(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 quotegetQuotes(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 quotesgetReceipt(String accessToken, String xeroTenantId, UUID receiptID, Integer unitdp) Retrieves a specific draft expense claim receipt by using a unique receipt IdgetReceiptAttachmentByFileName(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 namegetReceiptAttachmentById(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 IdgetReceiptAttachments(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 IdgetReceiptHistory(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 receiptgetReceipts(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 usergetRepeatingInvoice(String accessToken, String xeroTenantId, UUID repeatingInvoiceID) Retrieves a specific repeating invoice by using a unique repeating invoice IdgetRepeatingInvoiceAttachmentByFileName(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 namegetRepeatingInvoiceAttachmentById(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 invoicegetRepeatingInvoiceAttachments(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 IdgetRepeatingInvoiceHistory(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 invoicegetRepeatingInvoices(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 invoicesgetReportAgedPayablesByContact(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 contactgetReportAgedReceivablesByContact(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 contactgetReportBalanceSheet(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 balancesheetgetReportBankSummary(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 summarygetReportBudgetSummary(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 summarygetReportExecutiveSummary(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 summarygetReportFromId(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 ReportIDgetReportProfitAndLoss(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 lossgetReportsList(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 fetchgetReportTenNinetyNine(String accessToken, String xeroTenantId, String reportYear) Retrieve reports for 1099com.google.api.client.http.HttpResponsegetReportTenNinetyNineForHttpResponse(String accessToken, String xeroTenantId, String reportYear) Retrieve reports for 1099getReportTrialBalance(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 balancegetTaxRateByTaxType(String accessToken, String xeroTenantId, String taxType) Retrieves a specific tax rate according to given TaxType codecom.google.api.client.http.HttpResponsegetTaxRateByTaxTypeForHttpResponse(String accessToken, String xeroTenantId, String taxType) Retrieves a specific tax rate according to given TaxType codegetTaxRates(String accessToken, String xeroTenantId, String where, String order) Retrieves tax ratescom.google.api.client.http.HttpResponsegetTaxRatesForHttpResponse(String accessToken, String xeroTenantId, String where, String order) Retrieves tax ratesgetTrackingCategories(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 optionsgetTrackingCategory(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 IdRetrieves a specific userget user agentcom.google.api.client.http.HttpResponsegetUserForHttpResponse(String accessToken, String xeroTenantId, UUID userID) Retrieves a specific usergetUsers(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 usersSets the chart of accounts, the conversion date and conversion balancescom.google.api.client.http.HttpResponsepostSetupForHttpResponse(String accessToken, String xeroTenantId, Setup setup, String idempotencyKey) Sets the chart of accounts, the conversion date and conversion balancesvoidsetApiClient(ApiClient apiClient) set ApiClientvoidsetUserAgent(String userAgent) set user agentupdateAccount(String accessToken, String xeroTenantId, UUID accountID, Accounts accounts, String idempotencyKey) Updates a chart of accountsupdateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates attachment on a specific account by filenameupdateAccountAttachmentByFileName(String accessToken, String xeroTenantId, UUID accountID, String fileName, File body, String idempotencyKey) Updates attachment on a specific account by filenamecom.google.api.client.http.HttpResponseupdateAccountAttachmentByFileNameForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, String fileName, byte[] body, String idempotencyKey, 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, String idempotencyKey) Updates attachment on a specific account by filenamecom.google.api.client.http.HttpResponseupdateAccountForHttpResponse(String accessToken, String xeroTenantId, UUID accountID, Accounts accounts, String idempotencyKey) Updates a chart of accountsupdateBankTransaction(String accessToken, String xeroTenantId, UUID bankTransactionID, BankTransactions bankTransactions, Integer unitdp, String idempotencyKey) Updates a single spent or received money transactionupdateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates a specific attachment from a specific bank transaction by filenameupdateBankTransactionAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransactionID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Updates a single spent or received money transactionupdateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, byte[] body, String idempotencyKey, String mimeType) 200 - Success - return response of Attachments array of 0 to N Attachment for a Bank TransferupdateBankTransferAttachmentByFileName(String accessToken, String xeroTenantId, UUID bankTransferID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 200 - Success - return response of Attachments array of 0 to N Attachment for a Bank TransferupdateContact(String accessToken, String xeroTenantId, UUID contactID, Contacts contacts, String idempotencyKey) Updates a specific contact in a Xero organisationupdateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, byte[] body, String idempotencyKey, String mimeType) 200 - Success - return response of type Attachments array with an updated AttachmentupdateContactAttachmentByFileName(String accessToken, String xeroTenantId, UUID contactID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Updates a specific contact in a Xero organisationupdateContactGroup(String accessToken, String xeroTenantId, UUID contactGroupID, ContactGroups contactGroups, String idempotencyKey) Updates a specific contact groupcom.google.api.client.http.HttpResponseupdateContactGroupForHttpResponse(String accessToken, String xeroTenantId, UUID contactGroupID, ContactGroups contactGroups, String idempotencyKey) Updates a specific contact groupupdateCreditNote(String accessToken, String xeroTenantId, UUID creditNoteID, CreditNotes creditNotes, Integer unitdp, String idempotencyKey) Updates a specific credit noteupdateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates attachments on a specific credit note by file nameupdateCreditNoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID creditNoteID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Updates a specific credit noteupdateExpenseClaim(String accessToken, String xeroTenantId, UUID expenseClaimID, ExpenseClaims expenseClaims, String idempotencyKey) Updates a specific expense claimscom.google.api.client.http.HttpResponseupdateExpenseClaimForHttpResponse(String accessToken, String xeroTenantId, UUID expenseClaimID, ExpenseClaims expenseClaims, String idempotencyKey) Updates a specific expense claimsupdateInvoice(String accessToken, String xeroTenantId, UUID invoiceID, Invoices invoices, Integer unitdp, String idempotencyKey) Updates a specific sales invoices or purchase billsupdateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates an attachment from a specific invoices or purchase bill by filenameupdateInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID invoiceID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Updates a specific sales invoices or purchase billsupdateItem(String accessToken, String xeroTenantId, UUID itemID, Items items, Integer unitdp, String idempotencyKey) Updates a specific itemcom.google.api.client.http.HttpResponseupdateItemForHttpResponse(String accessToken, String xeroTenantId, UUID itemID, Items items, Integer unitdp, String idempotencyKey) Updates a specific itemupdateLinkedTransaction(String accessToken, String xeroTenantId, UUID linkedTransactionID, LinkedTransactions linkedTransactions, String idempotencyKey) Updates a specific linked transactions (billable expenses)com.google.api.client.http.HttpResponseupdateLinkedTransactionForHttpResponse(String accessToken, String xeroTenantId, UUID linkedTransactionID, LinkedTransactions linkedTransactions, String idempotencyKey) Updates a specific linked transactions (billable expenses)updateManualJournal(String accessToken, String xeroTenantId, UUID manualJournalID, ManualJournals manualJournals, String idempotencyKey) Updates a specific manual journalupdateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates a specific attachment from a specific manual journal by file nameupdateManualJournalAttachmentByFileName(String accessToken, String xeroTenantId, UUID manualJournalID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Updates a specific manual journalupdateOrCreateBankTransactions(String accessToken, String xeroTenantId, BankTransactions bankTransactions, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) 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, String idempotencyKey) Updates or creates one or more spent or received money transactionupdateOrCreateContacts(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors, String idempotencyKey) Updates or creates one or more contacts in a Xero organisationcom.google.api.client.http.HttpResponseupdateOrCreateContactsForHttpResponse(String accessToken, String xeroTenantId, Contacts contacts, Boolean summarizeErrors, String idempotencyKey) Updates or creates one or more contacts in a Xero organisationupdateOrCreateCreditNotes(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Updates or creates one or more credit notescom.google.api.client.http.HttpResponseupdateOrCreateCreditNotesForHttpResponse(String accessToken, String xeroTenantId, CreditNotes creditNotes, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Updates or creates one or more credit notesupdateOrCreateEmployees(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors, String idempotencyKey) Creates a single new employees used in Xero payruncom.google.api.client.http.HttpResponseupdateOrCreateEmployeesForHttpResponse(String accessToken, String xeroTenantId, Employees employees, Boolean summarizeErrors, String idempotencyKey) Creates a single new employees used in Xero payrunupdateOrCreateInvoices(String accessToken, String xeroTenantId, Invoices invoices, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) 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, String idempotencyKey) Updates or creates one or more sales invoices or purchase billsupdateOrCreateItems(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Updates or creates one or more itemscom.google.api.client.http.HttpResponseupdateOrCreateItemsForHttpResponse(String accessToken, String xeroTenantId, Items items, Boolean summarizeErrors, Integer unitdp, String idempotencyKey) Updates or creates one or more itemsupdateOrCreateManualJournals(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors, String idempotencyKey) Updates or creates a single manual journalcom.google.api.client.http.HttpResponseupdateOrCreateManualJournalsForHttpResponse(String accessToken, String xeroTenantId, ManualJournals manualJournals, Boolean summarizeErrors, String idempotencyKey) Updates or creates a single manual journalupdateOrCreatePurchaseOrders(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors, String idempotencyKey) Updates or creates one or more purchase orderscom.google.api.client.http.HttpResponseupdateOrCreatePurchaseOrdersForHttpResponse(String accessToken, String xeroTenantId, PurchaseOrders purchaseOrders, Boolean summarizeErrors, String idempotencyKey) Updates or creates one or more purchase ordersupdateOrCreateQuotes(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors, String idempotencyKey) Updates or creates one or more quotescom.google.api.client.http.HttpResponseupdateOrCreateQuotesForHttpResponse(String accessToken, String xeroTenantId, Quotes quotes, Boolean summarizeErrors, String idempotencyKey) Updates or creates one or more quotesupdateOrCreateRepeatingInvoices(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) Creates or deletes one or more repeating invoice templatescom.google.api.client.http.HttpResponseupdateOrCreateRepeatingInvoicesForHttpResponse(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) Creates or deletes one or more repeating invoice templatesupdatePurchaseOrder(String accessToken, String xeroTenantId, UUID purchaseOrderID, PurchaseOrders purchaseOrders, String idempotencyKey) Updates a specific purchase orderupdatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates a specific attachment for a specific purchase order by filenameupdatePurchaseOrderAttachmentByFileName(String accessToken, String xeroTenantId, UUID purchaseOrderID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Updates a specific attachment for a specific purchase order by filenamecom.google.api.client.http.HttpResponseupdatePurchaseOrderForHttpResponse(String accessToken, String xeroTenantId, UUID purchaseOrderID, PurchaseOrders purchaseOrders, String idempotencyKey) Updates a specific purchase orderupdateQuote(String accessToken, String xeroTenantId, UUID quoteID, Quotes quotes, String idempotencyKey) Updates a specific quoteupdateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates a specific attachment from a specific quote by filenameupdateQuoteAttachmentByFileName(String accessToken, String xeroTenantId, UUID quoteID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Updates a specific attachment from a specific quote by filenamecom.google.api.client.http.HttpResponseupdateQuoteForHttpResponse(String accessToken, String xeroTenantId, UUID quoteID, Quotes quotes, String idempotencyKey) Updates a specific quoteupdateReceipt(String accessToken, String xeroTenantId, UUID receiptID, Receipts receipts, Integer unitdp, String idempotencyKey) Updates a specific draft expense claim receiptsupdateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates a specific attachment on a specific expense claim receipts by file nameupdateReceiptAttachmentByFileName(String accessToken, String xeroTenantId, UUID receiptID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) 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, String idempotencyKey) Updates a specific draft expense claim receiptsupdateRepeatingInvoice(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, RepeatingInvoices repeatingInvoices, String idempotencyKey) Deletes a specific repeating invoice templateupdateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, byte[] body, String idempotencyKey, String mimeType) Updates a specific attachment from a specific repeating invoices by file nameupdateRepeatingInvoiceAttachmentByFileName(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, String fileName, File body, String idempotencyKey) 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 idempotencyKey, 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, String idempotencyKey) Updates a specific attachment from a specific repeating invoices by file namecom.google.api.client.http.HttpResponseupdateRepeatingInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, RepeatingInvoices repeatingInvoices, String idempotencyKey) Deletes a specific repeating invoice templateupdateTaxRate(String accessToken, String xeroTenantId, TaxRates taxRates, String idempotencyKey) Updates tax ratescom.google.api.client.http.HttpResponseupdateTaxRateForHttpResponse(String accessToken, String xeroTenantId, TaxRates taxRates, String idempotencyKey) Updates tax ratesupdateTrackingCategory(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingCategory trackingCategory, String idempotencyKey) Updates a specific tracking categorycom.google.api.client.http.HttpResponseupdateTrackingCategoryForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, TrackingCategory trackingCategory, String idempotencyKey) Updates a specific tracking categoryupdateTrackingOptions(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID, TrackingOption trackingOption, String idempotencyKey) Updates a specific option for a specific tracking categorycom.google.api.client.http.HttpResponseupdateTrackingOptionsForHttpResponse(String accessToken, String xeroTenantId, UUID trackingCategoryID, UUID trackingOptionID, TrackingOption trackingOption, String idempotencyKey) Updates a specific option for a specific tracking category
-
Constructor Details
-
AccountingApi
public AccountingApi()AccountingApi -
AccountingApi
AccountingApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Details
-
getInstance
AccountingApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
-
setApiClient
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
-
createAccount
public Accounts createAccount(String accessToken, String xeroTenantId, Account account, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantaccount- Account object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantaccount- Account object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBankTransfer
public BankTransfers createBankTransfer(String accessToken, String xeroTenantId, BankTransfers bankTransfers, String idempotencyKey) throws IOException Creates a bank transfer200 - Success - return response of BankTransfers array of one BankTransfer
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransfers- BankTransfers with array of BankTransfer objects in request bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Creates a bank transfer200 - Success - return response of BankTransfers array of one BankTransfer
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransfers- BankTransfers with array of BankTransfer objects in request bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createBrandingThemePaymentServices
public PaymentServices createBrandingThemePaymentServices(String accessToken, String xeroTenantId, UUID brandingThemeID, PaymentServices paymentServices, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemepaymentServices- PaymentServices array with PaymentService object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, PaymentServices paymentServices, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding ThemepaymentServices- PaymentServices array with PaymentService object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) throws IOException 200 - Success - return response of type Attachments array with an newly created Attachment400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException 200 - Success - return response of type Attachments array with an newly created Attachment400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createContactGroup
public ContactGroups createContactGroup(String accessToken, String xeroTenantId, ContactGroups contactGroups, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroups- ContactGroups with an array of names in request bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroups- ContactGroups with an array of names in request bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContacthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContacthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createCurrency
public Currencies createCurrency(String accessToken, String xeroTenantId, Currency currency, String idempotencyKey) throws IOException Create a new currency for a Xero organisation200 - Unsupported - return response incorrect exception, API is not able to create new Currency
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantcurrency- Currency object in the body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Create a new currency for a Xero organisation200 - Unsupported - return response incorrect exception, API is not able to create new Currency
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantcurrency- Currency object in the body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Creates a history record for a specific expense claim200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Creates a history record for a specific expense claim200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createExpenseClaims
public ExpenseClaims createExpenseClaims(String accessToken, String xeroTenantId, ExpenseClaims expenseClaims, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaims- ExpenseClaims with array of ExpenseClaim object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaims- ExpenseClaims with array of ExpenseClaim object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoiceidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Creates a history record for a specific item200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Creates a history record for a specific item200 - Success - return response of type HistoryRecords array of HistoryRecord objects
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantitemID- Unique identifier for an ItemhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createLinkedTransaction
public LinkedTransactions createLinkedTransaction(String accessToken, String xeroTenantId, LinkedTransaction linkedTransaction, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransaction- LinkedTransaction object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransaction- LinkedTransaction object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayment
public Payments createPayment(String accessToken, String xeroTenantId, Payment payment, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpayment- Request body with a single Payment objectidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantpayment- Request body with a single Payment objectidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPaymentService
public PaymentServices createPaymentService(String accessToken, String xeroTenantId, PaymentServices paymentServices, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentServices- PaymentServices array with PaymentService object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentServices- PaymentServices array with PaymentService object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymenthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderhistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceipthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceipthistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicehistoryRecords- HistoryRecords containing an array of HistoryRecord objects in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createRepeatingInvoices
public RepeatingInvoices createRepeatingInvoices(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) throws IOException Creates one or more repeating invoice templates200 - Success - return response of type RepeatingInvoices array with newly created RepeatingInvoice
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoices- RepeatingInvoices with an array of repeating invoice objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- RepeatingInvoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createRepeatingInvoicesForHttpResponse
public com.google.api.client.http.HttpResponse createRepeatingInvoicesForHttpResponse(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) throws IOException Creates one or more repeating invoice templates200 - Success - return response of type RepeatingInvoices array with newly created RepeatingInvoice
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoices- RepeatingInvoices with an array of repeating invoice objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTaxRates
public TaxRates createTaxRates(String accessToken, String xeroTenantId, TaxRates taxRates, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttaxRates- TaxRates array with TaxRate object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttaxRates- TaxRates array with TaxRate object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTrackingCategory
public TrackingCategories createTrackingCategory(String accessToken, String xeroTenantId, TrackingCategory trackingCategory, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategory- TrackingCategory object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategory- TrackingCategory object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOption- TrackingOption object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOption- TrackingOption object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account object- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteBatchPayment
public BatchPayments deleteBatchPayment(String accessToken, String xeroTenantId, BatchPaymentDelete batchPaymentDelete, String idempotencyKey) throws IOException Updates a specific batch payment for invoices and credit notes200 - Success - return response of type BatchPayments array for updated BatchPayment
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentDelete- The batchPaymentDelete parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- BatchPayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteBatchPaymentForHttpResponse
public com.google.api.client.http.HttpResponse deleteBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, BatchPaymentDelete batchPaymentDelete, String idempotencyKey) throws IOException Updates a specific batch payment for invoices and credit notes200 - Success - return response of type BatchPayments array for updated BatchPayment
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentDelete- The batchPaymentDelete parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteBatchPaymentByUrlParam
public BatchPayments deleteBatchPaymentByUrlParam(String accessToken, String xeroTenantId, UUID batchPaymentID, BatchPaymentDeleteByUrlParam batchPaymentDeleteByUrlParam, String idempotencyKey) throws IOException Updates a specific batch payment for invoices and credit notes200 - Success - return response of type BatchPayments array for updated BatchPayment
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymentbatchPaymentDeleteByUrlParam- The batchPaymentDeleteByUrlParam parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- BatchPayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteBatchPaymentByUrlParamForHttpResponse
public com.google.api.client.http.HttpResponse deleteBatchPaymentByUrlParamForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID, BatchPaymentDeleteByUrlParam batchPaymentDeleteByUrlParam, String idempotencyKey) throws IOException Updates a specific batch payment for invoices and credit notes200 - Success - return response of type BatchPayments array for updated BatchPayment
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPaymentbatchPaymentDeleteByUrlParam- The batchPaymentDeleteByUrlParam parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact Group- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact Group- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteCreditNoteAllocations
public Allocation deleteCreditNoteAllocations(String accessToken, String xeroTenantId, UUID creditNoteID, UUID allocationID) throws IOException Deletes an Allocation from a Credit Note200 - Success - return response of type Allocation with the isDeleted flag as true
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteallocationID- Unique identifier for Allocation object- Returns:
- Allocation
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteCreditNoteAllocationsForHttpResponse
public com.google.api.client.http.HttpResponse deleteCreditNoteAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, UUID allocationID) throws IOException Deletes an Allocation from a Credit Note200 - Success - return response of type Allocation with the isDeleted flag as true
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NoteallocationID- Unique identifier for Allocation object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteItem
Deletes a specific item204 - Success - return response 204 no content
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Item- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Item- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransaction- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransaction- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteOverpaymentAllocations
public Allocation deleteOverpaymentAllocations(String accessToken, String xeroTenantId, UUID overpaymentID, UUID allocationID) throws IOException Deletes an Allocation from an overpayment200 - Success - return response of type Allocation with the isDeleted flag as true
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymentallocationID- Unique identifier for Allocation object- Returns:
- Allocation
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deleteOverpaymentAllocationsForHttpResponse
public com.google.api.client.http.HttpResponse deleteOverpaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID overpaymentID, UUID allocationID) throws IOException Deletes an Allocation from an overpayment200 - Success - return response of type Allocation with the isDeleted flag as true
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a OverpaymentallocationID- Unique identifier for Allocation object- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentpaymentDelete- The paymentDelete parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a PaymentpaymentDelete- The paymentDelete parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deletePrepaymentAllocations
public Allocation deletePrepaymentAllocations(String accessToken, String xeroTenantId, UUID prepaymentID, UUID allocationID) throws IOException Deletes an Allocation from a Prepayment200 - Success - return response of type Allocation with the isDeleted flag as true
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentallocationID- Unique identifier for Allocation object- Returns:
- Allocation
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
deletePrepaymentAllocationsForHttpResponse
public com.google.api.client.http.HttpResponse deletePrepaymentAllocationsForHttpResponse(String accessToken, String xeroTenantId, UUID prepaymentID, UUID allocationID) throws IOException Deletes an Allocation from a Prepayment200 - Success - return response of type Allocation with the isDeleted flag as true
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePaymentallocationID- Unique identifier for Allocation object- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategory- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategory- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking Option- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking Option- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicerequestEmpty- The requestEmpty parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicerequestEmpty- The requestEmpty parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account object- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account object- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account object- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account object- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transaction- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transaction- 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, Integer pageSize) throws IOException Retrieves any spent or received money transactions200 - Success - return response of type BankTransactions array with 0 to n BankTransaction
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves any spent or received money transactions200 - Success - return response of type BankTransactions array with 0 to n BankTransaction
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transaction- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transaction- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transfer- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transfer- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transfer- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transfer- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transfer- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transfer- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBatchPayment
public BatchPayments getBatchPayment(String accessToken, String xeroTenantId, UUID batchPaymentID) throws IOException Retrieves a specific batch payment using a unique batch payment Id200 - Success - return response of type BatchPayments array with matching batch payment Id
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPayment- Returns:
- BatchPayments
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getBatchPaymentForHttpResponse
public com.google.api.client.http.HttpResponse getBatchPaymentForHttpResponse(String accessToken, String xeroTenantId, UUID batchPaymentID) throws IOException Retrieves a specific batch payment using a unique batch payment Id200 - Success - return response of type BatchPayments array with matching batch payment Id
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbatchPaymentID- Unique identifier for BatchPayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding Theme- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding Theme- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding Theme- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbrandingThemeID- Unique identifier for a Branding Theme- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBrandingThemes
Retrieves all the branding themes200 - Success - return response of type BrandingThemes
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getBudget
public Budgets getBudget(String accessToken, String xeroTenantId, UUID budgetID, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom) throws IOException Retrieves a specific budget, which includes budget lines200 - Success - return response of type Invoices array with specified Invoices
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbudgetID- Unique identifier for BudgetsdateTo- Filter by start datedateFrom- Filter by end date- 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, org.threeten.bp.LocalDate dateTo, org.threeten.bp.LocalDate dateFrom) throws IOException Retrieves a specific budget, which includes budget lines200 - Success - return response of type Invoices array with specified Invoices
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbudgetID- Unique identifier for BudgetsdateTo- Filter by start datedateFrom- Filter by end date- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantids- Filter by BudgetID. Allows you to retrieve a specific individual budget.dateTo- Filter by start datedateFrom- Filter by end date- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantids- Filter by BudgetID. Allows you to retrieve a specific individual budget.dateTo- Filter by start datedateFrom- Filter by end date- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactNumber- This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactNumber- This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact Group- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact Group- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contact- 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, String searchTerm, Integer pageSize) throws IOException Retrieves all contacts in a Xero organisation200 - Success - return response of type Contacts array with 0 to N Contact
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.searchTerm- Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.pageSize- Number of records to retrieve per page- 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, String searchTerm, Integer pageSize) throws IOException Retrieves all contacts in a Xero organisation200 - Success - return response of type Contacts array with 0 to N Contact
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.searchTerm- Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.pageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Note- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Note- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Note- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Note- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Note- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit Note- 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, Integer pageSize) throws IOException Retrieves any credit notes200 - Success - return response of type Credit Notes array of CreditNote
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves any credit notes200 - Success - return response of type Credit Notes array of CreditNote
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Unique identifier for a Employee- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Unique identifier for a Employee- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaim- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaim- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaim- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaim- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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, Integer pageSize, String searchTerm) throws IOException Retrieves sales invoices or purchase bills200 - Success - return response of type Invoices array with all Invoices
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.pageSize- Number of records to retrieve per pagesearchTerm- Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.- 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, Integer pageSize, String searchTerm) throws IOException Retrieves sales invoices or purchase bills200 - Success - return response of type Invoices array with all Invoices
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.pageSize- Number of records to retrieve per pagesearchTerm- Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Item- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantitemID- Unique identifier for an Item- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantjournalID- Unique identifier for a Journal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantjournalID- Unique identifier for a Journal- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getJournalByNumber
public Journals getJournalByNumber(String accessToken, String xeroTenantId, Integer journalNumber) throws IOException Retrieves a specific journal using a unique journal number.200 - Success - return response of type Journals array with specified Journal
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantjournalNumber- Number of a Journal- Returns:
- Journals
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getJournalByNumberForHttpResponse
public com.google.api.client.http.HttpResponse getJournalByNumberForHttpResponse(String accessToken, String xeroTenantId, Integer journalNumber) throws IOException Retrieves a specific journal using a unique journal number.200 - Success - return response of type Journals array with specified Journal
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantjournalNumber- Number of a Journal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransaction- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransaction- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournal- 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, Integer pageSize) throws IOException Retrieves manual journals200 - Success - return response of type ManualJournals array with a all ManualJournals
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 overpaymentpageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves manual journals200 - Success - return response of type ManualJournals array with a all ManualJournals
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 overpaymentpageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournal- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an Invoice- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOrganisationActions
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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantorganisationID- The unique Xero identifier for an organisation- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantorganisationID- The unique Xero identifier for an organisation- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getOrganisations
Retrieves Xero organisation details200 - Success - return response of type Organisation array with all Organisation
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a Overpayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a Overpayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a Overpayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantoverpaymentID- Unique identifier for a Overpayment- 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, Integer pageSize) throws IOException Retrieves overpayments200 - Success - return response of type Overpayments array with all Overpayments
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves overpayments200 - Success - return response of type Overpayments array with all Overpayments
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a Payment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a Payment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a Payment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpaymentID- Unique identifier for a Payment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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, Integer pageSize) throws IOException Retrieves payments for invoices and credit notes200 - Success - return response of type Payments array for all Payments
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 callpageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves payments for invoices and credit notes200 - Success - return response of type Payments array for all Payments
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 callpageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePayment- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantprepaymentID- Unique identifier for a PrePayment- 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, Integer pageSize) throws IOException Retrieves prepayments200 - Success - return response of type Prepayments array for all Prepayment
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves prepayments200 - Success - return response of type Prepayments array for all Prepayment
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountspageSize- Number of records to retrieve per page- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderNumber- Unique identifier for a PurchaseOrder- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderNumber- Unique identifier for a PurchaseOrder- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase Order- 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, Integer pageSize) throws IOException Retrieves purchase orders200 - Success - return response of type PurchaseOrder array of all PurchaseOrder
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.pageSize- Number of records to retrieve per page- 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, Integer pageSize) throws IOException Retrieves purchase orders200 - Success - return response of type PurchaseOrder array of all PurchaseOrder
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.pageSize- Number of records to retrieve per page- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getQuote
Retrieves a specific quote using a unique quote Id200 - Success - return response of type Quotes array with specified Quote
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quote- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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)- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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)- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receipt- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receipt- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receipt- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a Receipt- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amounts- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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/pdf- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating Invoice- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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-28- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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-28- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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-28- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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-28- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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-28- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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-28- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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)- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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)- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantdate- The date for the Bank Summary report e.g. 2018-03-31- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantdate- The date for the Bank Summary report e.g. 2018-03-31- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreportID- Unique identifier for a Report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreportID- Unique identifier for a Report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreportYear- The year of the 1099 report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreportYear- The year of the 1099 report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantdate- The date for the Trial Balance report e.g. 2018-03-31paymentsOnly- Return cash only basis for the Trial Balance report- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantdate- The date for the Trial Balance report e.g. 2018-03-31paymentsOnly- Return cash only basis for the Trial Balance report- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getReportsList
Retrieves a list of the organistaions unique reports that require a uuid to fetch200 - Success - return response of type ReportWithRows
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTaxRateByTaxType
public TaxRates getTaxRateByTaxType(String accessToken, String xeroTenantId, String taxType) throws IOException Retrieves a specific tax rate according to given TaxType code200 - Success - return response of type TaxRates array with one TaxRate
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttaxType- A valid TaxType code- Returns:
- TaxRates
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTaxRateByTaxTypeForHttpResponse
public com.google.api.client.http.HttpResponse getTaxRateByTaxTypeForHttpResponse(String accessToken, String xeroTenantId, String taxType) throws IOException Retrieves a specific tax rate according to given TaxType code200 - Success - return response of type TaxRates array with one TaxRate
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttaxType- A valid TaxType code- 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) throws IOException Retrieves tax rates200 - Success - return response of type TaxRates array with TaxRates
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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) throws IOException Retrieves tax rates200 - Success - return response of type TaxRates array with TaxRates
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 response- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 response- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategory- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategory- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getUser
Retrieves a specific user200 - Success - return response of type Users array of specified User
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantuserID- Unique identifier for a User- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantuserID- Unique identifier for a User- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any element- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
postSetup
public ImportSummaryObject postSetup(String accessToken, String xeroTenantId, Setup setup, String idempotencyKey) throws IOException Sets the chart of accounts, the conversion date and conversion balances200 - Success - returns a summary of the chart of accounts updates
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantsetup- Object including an accounts array, a conversion balances array and a conversion date object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Sets the chart of accounts, the conversion date and conversion balances200 - Success - returns a summary of the chart of accounts updates
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantsetup- Object including an accounts array, a conversion balances array and a conversion date object in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccounts- Request of type Accounts array with one AccountidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectaccounts- Request of type Accounts array with one AccountidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantaccountID- Unique identifier for Account objectfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransactionID- Xero generated unique identifier for a bank transactionfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantbankTransferID- Xero generated unique identifier for a bank transferfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contactcontacts- an array of Contacts containing single Contact object with properties to updateidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a Contactcontacts- an array of Contacts containing single Contact object with properties to updateidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, String mimeType) throws IOException 200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, String mimeType) throws IOException 200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) throws IOException 200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException 200 - Success - return response of type Attachments array with an updated Attachment400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactID- Unique identifier for a ContactfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactGroups- an array of Contact groups with Name of specific group to updateidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcontactGroupID- Unique identifier for a Contact GroupcontactGroups- an array of Contact groups with Name of specific group to updateidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantcreditNoteID- Unique identifier for a Credit NotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimexpenseClaims- The expenseClaims parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantexpenseClaimID- Unique identifier for a ExpenseClaimexpenseClaims- The expenseClaims parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantinvoiceID- Unique identifier for an InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionlinkedTransactions- The linkedTransactions parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantlinkedTransactionID- Unique identifier for a LinkedTransactionlinkedTransactions- The linkedTransactions parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalmanualJournals- The manualJournals parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalmanualJournals- The manualJournals parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantmanualJournalID- Unique identifier for a ManualJournalfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantcontacts- The contacts parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantcontacts- The contacts parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrders- The purchaseOrders parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrders- The purchaseOrders parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantquotes- The quotes parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantquotes- The quotes parametersummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateOrCreateRepeatingInvoices
public RepeatingInvoices updateOrCreateRepeatingInvoices(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) throws IOException Creates or deletes one or more repeating invoice templates200 - Success - return response of type RepeatingInvoices array with newly created RepeatingInvoice
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoices- RepeatingInvoices with an array of repeating invoice objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- RepeatingInvoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateOrCreateRepeatingInvoicesForHttpResponse
public com.google.api.client.http.HttpResponse updateOrCreateRepeatingInvoicesForHttpResponse(String accessToken, String xeroTenantId, RepeatingInvoices repeatingInvoices, Boolean summarizeErrors, String idempotencyKey) throws IOException Creates or deletes one or more repeating invoice templates200 - Success - return response of type RepeatingInvoices array with newly created RepeatingInvoice
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoices- RepeatingInvoices with an array of repeating invoice objects in body of requestsummarizeErrors- If false return 200 OK and mix of successfully created objects and any with validation errorsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderpurchaseOrders- The purchaseOrders parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderpurchaseOrders- The purchaseOrders parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpurchaseOrderID- Unique identifier for an Purchase OrderfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quotequotes- The quotes parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an Quotequotes- The quotes parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantquoteID- Unique identifier for an QuotefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 amountsidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantreceiptID- Unique identifier for a ReceiptfileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateRepeatingInvoice
public RepeatingInvoices updateRepeatingInvoice(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, RepeatingInvoices repeatingInvoices, String idempotencyKey) throws IOException Deletes a specific repeating invoice template200 - Success - return response of type RepeatingInvoices array with deleted Invoice
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicerepeatingInvoices- The repeatingInvoices parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- RepeatingInvoices
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateRepeatingInvoiceForHttpResponse
public com.google.api.client.http.HttpResponse updateRepeatingInvoiceForHttpResponse(String accessToken, String xeroTenantId, UUID repeatingInvoiceID, RepeatingInvoices repeatingInvoices, String idempotencyKey) throws IOException Deletes a specific repeating invoice template200 - Success - return response of type RepeatingInvoices array with deleted Invoice
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicerepeatingInvoices- The repeatingInvoices parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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 idempotencyKey, 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.mimeType- The type of file being attached- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantrepeatingInvoiceID- Unique identifier for a Repeating InvoicefileName- Name of the attachmentbody- Byte array of file in body of requestidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateTaxRate
public TaxRates updateTaxRate(String accessToken, String xeroTenantId, TaxRates taxRates, String idempotencyKey) throws IOException Updates tax rates200 - Success - return response of type TaxRates array updated TaxRate
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttaxRates- The taxRates parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Updates tax rates200 - Success - return response of type TaxRates array updated TaxRate
400 - A failed request due to validation error
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttaxRates- The taxRates parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingCategory- The trackingCategory parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingCategory- The trackingCategory parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking OptiontrackingOption- The trackingOption parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttrackingCategoryID- Unique identifier for a TrackingCategorytrackingOptionID- Unique identifier for a Tracking OptiontrackingOption- The trackingOption parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
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
-