/*
* Xero Accounting API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* Contact: api@xero.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
// The version of the OpenAPI document: 10.1.0
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Mime;
using Xero.NetStandard.OAuth2.Client;
using Xero.NetStandard.OAuth2.Model.Accounting;
using System.Threading;
namespace Xero.NetStandard.OAuth2.Api
{
///
/// Represents a collection of functions to interact with the API endpoints
///
public interface IAccountingApiAsync : IApiAccessor
{
#region Asynchronous Operations
///
/// Creates a new chart of accounts
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Account object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Accounts
System.Threading.Tasks.Task CreateAccountAsync (string accessToken, string xeroTenantId, Account account, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new chart of accounts
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Account object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Accounts)
System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (string accessToken, string xeroTenantId, Account account, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment on a specific account
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment on a specific account
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment for a specific bank transaction by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment for a specific bank transaction by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific bank transactions
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateBankTransactionHistoryRecordAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific bank transactions
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateBankTransactionHistoryRecordAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more spent or received money transaction
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// BankTransactions with an array of BankTransaction objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BankTransactions
System.Threading.Tasks.Task CreateBankTransactionsAsync (string accessToken, string xeroTenantId, BankTransactions bankTransactions, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more spent or received money transaction
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// BankTransactions with an array of BankTransaction objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BankTransactions)
System.Threading.Tasks.Task> CreateBankTransactionsAsyncWithHttpInfo (string accessToken, string xeroTenantId, BankTransactions bankTransactions, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a bank transfer
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// BankTransfers with array of BankTransfer objects in request body
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BankTransfers
System.Threading.Tasks.Task CreateBankTransferAsync (string accessToken, string xeroTenantId, BankTransfers bankTransfers, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a bank transfer
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// BankTransfers with array of BankTransfer objects in request body
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BankTransfers)
System.Threading.Tasks.Task> CreateBankTransferAsyncWithHttpInfo (string accessToken, string xeroTenantId, BankTransfers bankTransfers, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific bank transfer
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateBankTransferHistoryRecordAsync (string accessToken, string xeroTenantId, Guid bankTransferID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific bank transfer
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateBankTransferHistoryRecordAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or many batch payments for invoices
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// BatchPayments with an array of Payments in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BatchPayments
System.Threading.Tasks.Task CreateBatchPaymentAsync (string accessToken, string xeroTenantId, BatchPayments batchPayments, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or many batch payments for invoices
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// BatchPayments with an array of Payments in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BatchPayments)
System.Threading.Tasks.Task> CreateBatchPaymentAsyncWithHttpInfo (string accessToken, string xeroTenantId, BatchPayments batchPayments, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific batch payment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateBatchPaymentHistoryRecordAsync (string accessToken, string xeroTenantId, Guid batchPaymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific batch payment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateBatchPaymentHistoryRecordAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid batchPaymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new custom payment service for a specific branding theme
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Branding Theme
/// PaymentServices array with PaymentService object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of PaymentServices
System.Threading.Tasks.Task CreateBrandingThemePaymentServicesAsync (string accessToken, string xeroTenantId, Guid brandingThemeID, PaymentServices paymentServices, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new custom payment service for a specific branding theme
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Branding Theme
/// PaymentServices array with PaymentService object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (PaymentServices)
System.Threading.Tasks.Task> CreateBrandingThemePaymentServicesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid brandingThemeID, PaymentServices paymentServices, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// ContactGroups with an array of names in request body
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ContactGroups
System.Threading.Tasks.Task CreateContactGroupAsync (string accessToken, string xeroTenantId, ContactGroups contactGroups, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// ContactGroups with an array of names in request body
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ContactGroups)
System.Threading.Tasks.Task> CreateContactGroupAsyncWithHttpInfo (string accessToken, string xeroTenantId, ContactGroups contactGroups, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates contacts to a specific contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Contacts
System.Threading.Tasks.Task CreateContactGroupContactsAsync (string accessToken, string xeroTenantId, Guid contactGroupID, Contacts contacts, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates contacts to a specific contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Contacts)
System.Threading.Tasks.Task> CreateContactGroupContactsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactGroupID, Contacts contacts, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new history record for a specific contact
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateContactHistoryAsync (string accessToken, string xeroTenantId, Guid contactID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new history record for a specific contact
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateContactHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates multiple contacts (bulk) in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Contacts with an array of Contact objects to create in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Contacts
System.Threading.Tasks.Task CreateContactsAsync (string accessToken, string xeroTenantId, Contacts contacts, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates multiple contacts (bulk) in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Contacts with an array of Contact objects to create in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Contacts)
System.Threading.Tasks.Task> CreateContactsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Contacts contacts, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates allocation for a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Allocations with array of Allocation object in body of request.
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Allocations
System.Threading.Tasks.Task CreateCreditNoteAllocationAsync (string accessToken, string xeroTenantId, Guid creditNoteID, Allocations allocations, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates allocation for a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Allocations with array of Allocation object in body of request.
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Allocations)
System.Threading.Tasks.Task> CreateCreditNoteAllocationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, Allocations allocations, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment for a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Name of the attachment
/// Byte array of file in body of request
/// Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment for a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Name of the attachment
/// Byte array of file in body of request
/// Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Retrieves history records of a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateCreditNoteHistoryAsync (string accessToken, string xeroTenantId, Guid creditNoteID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Retrieves history records of a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateCreditNoteHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Credit Notes with array of CreditNote object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of CreditNotes
System.Threading.Tasks.Task CreateCreditNotesAsync (string accessToken, string xeroTenantId, CreditNotes creditNotes, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a new credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Credit Notes with array of CreditNote object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (CreditNotes)
System.Threading.Tasks.Task> CreateCreditNotesAsyncWithHttpInfo (string accessToken, string xeroTenantId, CreditNotes creditNotes, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Create a new currency for a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Currency object in the body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Currencies
System.Threading.Tasks.Task CreateCurrencyAsync (string accessToken, string xeroTenantId, Currency currency, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Create a new currency for a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Currency object in the body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Currencies)
System.Threading.Tasks.Task> CreateCurrencyAsyncWithHttpInfo (string accessToken, string xeroTenantId, Currency currency, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates new employees used in Xero payrun
///
///
/// This endpoint is deprecated and will be removed April 28, 2026
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Employees with array of Employee object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Employees
[Obsolete]
System.Threading.Tasks.Task CreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates new employees used in Xero payrun
///
///
/// This endpoint is deprecated and will be removed April 28, 2026
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Employees with array of Employee object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Employees)
[Obsolete]
System.Threading.Tasks.Task> CreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific expense claim
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ExpenseClaim
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateExpenseClaimHistoryAsync (string accessToken, string xeroTenantId, Guid expenseClaimID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific expense claim
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ExpenseClaim
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateExpenseClaimHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid expenseClaimID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates expense claims
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// ExpenseClaims with array of ExpenseClaim object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ExpenseClaims
System.Threading.Tasks.Task CreateExpenseClaimsAsync (string accessToken, string xeroTenantId, ExpenseClaims expenseClaims, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates expense claims
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// ExpenseClaims with array of ExpenseClaim object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ExpenseClaims)
System.Threading.Tasks.Task> CreateExpenseClaimsAsyncWithHttpInfo (string accessToken, string xeroTenantId, ExpenseClaims expenseClaims, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment for a specific invoice or purchase bill by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Name of the attachment
/// Byte array of file in body of request
/// Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment for a specific invoice or purchase bill by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Name of the attachment
/// Byte array of file in body of request
/// Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific invoice
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateInvoiceHistoryAsync (string accessToken, string xeroTenantId, Guid invoiceID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific invoice
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateInvoiceHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more sales invoices or purchase bills
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Invoices with an array of invoice objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Invoices
System.Threading.Tasks.Task CreateInvoicesAsync (string accessToken, string xeroTenantId, Invoices invoices, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more sales invoices or purchase bills
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Invoices with an array of invoice objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Invoices)
System.Threading.Tasks.Task> CreateInvoicesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Invoices invoices, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific item
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Item
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateItemHistoryAsync (string accessToken, string xeroTenantId, Guid itemID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific item
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Item
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateItemHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid itemID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more items
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Items with an array of Item objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Items
System.Threading.Tasks.Task CreateItemsAsync (string accessToken, string xeroTenantId, Items items, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more items
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Items with an array of Item objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Items)
System.Threading.Tasks.Task> CreateItemsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Items items, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates linked transactions (billable expenses)
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// LinkedTransaction object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of LinkedTransactions
System.Threading.Tasks.Task CreateLinkedTransactionAsync (string accessToken, string xeroTenantId, LinkedTransaction linkedTransaction, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates linked transactions (billable expenses)
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// LinkedTransaction object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (LinkedTransactions)
System.Threading.Tasks.Task> CreateLinkedTransactionAsyncWithHttpInfo (string accessToken, string xeroTenantId, LinkedTransaction linkedTransaction, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a specific attachment for a specific manual journal by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ManualJournal
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a specific attachment for a specific manual journal by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ManualJournal
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific manual journal
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ManualJournal
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateManualJournalHistoryRecordAsync (string accessToken, string xeroTenantId, Guid manualJournalID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific manual journal
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ManualJournal
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateManualJournalHistoryRecordAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more manual journals
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// ManualJournals array with ManualJournal object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ManualJournals
System.Threading.Tasks.Task CreateManualJournalsAsync (string accessToken, string xeroTenantId, ManualJournals manualJournals, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more manual journals
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// ManualJournals array with ManualJournal object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ManualJournals)
System.Threading.Tasks.Task> CreateManualJournalsAsyncWithHttpInfo (string accessToken, string xeroTenantId, ManualJournals manualJournals, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a single allocation for a specific overpayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Overpayment
/// Allocations array with Allocation object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Allocations
System.Threading.Tasks.Task CreateOverpaymentAllocationsAsync (string accessToken, string xeroTenantId, Guid overpaymentID, Allocations allocations, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a single allocation for a specific overpayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Overpayment
/// Allocations array with Allocation object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Allocations)
System.Threading.Tasks.Task> CreateOverpaymentAllocationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid overpaymentID, Allocations allocations, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific overpayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Overpayment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateOverpaymentHistoryAsync (string accessToken, string xeroTenantId, Guid overpaymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific overpayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Overpayment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateOverpaymentHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid overpaymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a single payment for invoice or credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Request body with a single Payment object
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Payments
System.Threading.Tasks.Task CreatePaymentAsync (string accessToken, string xeroTenantId, Payment payment, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a single payment for invoice or credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Request body with a single Payment object
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Payments)
System.Threading.Tasks.Task> CreatePaymentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Payment payment, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific payment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Payment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreatePaymentHistoryAsync (string accessToken, string xeroTenantId, Guid paymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific payment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Payment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreatePaymentHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid paymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a payment service
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// PaymentServices array with PaymentService object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of PaymentServices
System.Threading.Tasks.Task CreatePaymentServiceAsync (string accessToken, string xeroTenantId, PaymentServices paymentServices, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a payment service
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// PaymentServices array with PaymentService object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (PaymentServices)
System.Threading.Tasks.Task> CreatePaymentServiceAsyncWithHttpInfo (string accessToken, string xeroTenantId, PaymentServices paymentServices, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates multiple payments for invoices or credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Payments array with Payment object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Payments
System.Threading.Tasks.Task CreatePaymentsAsync (string accessToken, string xeroTenantId, Payments payments, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates multiple payments for invoices or credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Payments array with Payment object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Payments)
System.Threading.Tasks.Task> CreatePaymentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Payments payments, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Allows you to create an Allocation for prepayments
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a PrePayment
/// Allocations with an array of Allocation object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Allocations
System.Threading.Tasks.Task CreatePrepaymentAllocationsAsync (string accessToken, string xeroTenantId, Guid prepaymentID, Allocations allocations, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Allows you to create an Allocation for prepayments
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a PrePayment
/// Allocations with an array of Allocation object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Allocations)
System.Threading.Tasks.Task> CreatePrepaymentAllocationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid prepaymentID, Allocations allocations, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific prepayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a PrePayment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreatePrepaymentHistoryAsync (string accessToken, string xeroTenantId, Guid prepaymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific prepayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a PrePayment
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreatePrepaymentHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid prepaymentID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates attachment for a specific purchase order
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Purchase Order
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates attachment for a specific purchase order
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Purchase Order
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific purchase orders
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Purchase Order
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreatePurchaseOrderHistoryAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific purchase orders
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Purchase Order
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreatePurchaseOrderHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more purchase orders
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// PurchaseOrders with an array of PurchaseOrder object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of PurchaseOrders
System.Threading.Tasks.Task CreatePurchaseOrdersAsync (string accessToken, string xeroTenantId, PurchaseOrders purchaseOrders, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more purchase orders
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// PurchaseOrders with an array of PurchaseOrder object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (PurchaseOrders)
System.Threading.Tasks.Task> CreatePurchaseOrdersAsyncWithHttpInfo (string accessToken, string xeroTenantId, PurchaseOrders purchaseOrders, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates attachment for a specific quote
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Quote
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates attachment for a specific quote
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Quote
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific quote
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Quote
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateQuoteHistoryAsync (string accessToken, string xeroTenantId, Guid quoteID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific quote
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Quote
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateQuoteHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Create one or more quotes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Quotes with an array of Quote object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Quotes
System.Threading.Tasks.Task CreateQuotesAsync (string accessToken, string xeroTenantId, Quotes quotes, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Create one or more quotes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Quotes with an array of Quote object in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Quotes)
System.Threading.Tasks.Task> CreateQuotesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Quotes quotes, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates draft expense claim receipts for any user
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Receipts with an array of Receipt object in body of request
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Receipts
System.Threading.Tasks.Task CreateReceiptAsync (string accessToken, string xeroTenantId, Receipts receipts, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates draft expense claim receipts for any user
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Receipts with an array of Receipt object in body of request
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Receipts)
System.Threading.Tasks.Task> CreateReceiptAsyncWithHttpInfo (string accessToken, string xeroTenantId, Receipts receipts, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment on a specific expense claim receipts by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Receipt
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment on a specific expense claim receipts by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Receipt
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific receipt
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Receipt
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateReceiptHistoryAsync (string accessToken, string xeroTenantId, Guid receiptID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific receipt
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Receipt
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateReceiptHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment from a specific repeating invoices by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Repeating Invoice
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task CreateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates an attachment from a specific repeating invoices by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Repeating Invoice
/// Name of the attachment
/// Byte array of file in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> CreateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific repeating invoice
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Repeating Invoice
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task CreateRepeatingInvoiceHistoryAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates a history record for a specific repeating invoice
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Repeating Invoice
/// HistoryRecords containing an array of HistoryRecord objects in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> CreateRepeatingInvoiceHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, HistoryRecords historyRecords, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more repeating invoice templates
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// RepeatingInvoices with an array of repeating invoice objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of RepeatingInvoices
System.Threading.Tasks.Task CreateRepeatingInvoicesAsync (string accessToken, string xeroTenantId, RepeatingInvoices repeatingInvoices, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more repeating invoice templates
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// RepeatingInvoices with an array of repeating invoice objects in body of request
/// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false)
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (RepeatingInvoices)
System.Threading.Tasks.Task> CreateRepeatingInvoicesAsyncWithHttpInfo (string accessToken, string xeroTenantId, RepeatingInvoices repeatingInvoices, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more tax rates
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// TaxRates array with TaxRate object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of TaxRates
System.Threading.Tasks.Task CreateTaxRatesAsync (string accessToken, string xeroTenantId, TaxRates taxRates, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates one or more tax rates
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// TaxRates array with TaxRate object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (TaxRates)
System.Threading.Tasks.Task> CreateTaxRatesAsyncWithHttpInfo (string accessToken, string xeroTenantId, TaxRates taxRates, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Create tracking categories
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// TrackingCategory object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of TrackingCategories
System.Threading.Tasks.Task CreateTrackingCategoryAsync (string accessToken, string xeroTenantId, TrackingCategory trackingCategory, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Create tracking categories
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// TrackingCategory object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (TrackingCategories)
System.Threading.Tasks.Task> CreateTrackingCategoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, TrackingCategory trackingCategory, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates options for a specific tracking category
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a TrackingCategory
/// TrackingOption object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of TrackingOptions
System.Threading.Tasks.Task CreateTrackingOptionsAsync (string accessToken, string xeroTenantId, Guid trackingCategoryID, TrackingOption trackingOption, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Creates options for a specific tracking category
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a TrackingCategory
/// TrackingOption object in body of request
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (TrackingOptions)
System.Threading.Tasks.Task> CreateTrackingOptionsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid trackingCategoryID, TrackingOption trackingOption, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Deletes a chart of accounts
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Accounts
System.Threading.Tasks.Task DeleteAccountAsync (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default);
///
/// Deletes a chart of accounts
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Accounts)
System.Threading.Tasks.Task> DeleteAccountAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default);
///
/// Updates a specific batch payment for invoices and credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BatchPayments
System.Threading.Tasks.Task DeleteBatchPaymentAsync (string accessToken, string xeroTenantId, BatchPaymentDelete batchPaymentDelete, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Updates a specific batch payment for invoices and credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BatchPayments)
System.Threading.Tasks.Task> DeleteBatchPaymentAsyncWithHttpInfo (string accessToken, string xeroTenantId, BatchPaymentDelete batchPaymentDelete, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Updates a specific batch payment for invoices and credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BatchPayments
System.Threading.Tasks.Task DeleteBatchPaymentByUrlParamAsync (string accessToken, string xeroTenantId, Guid batchPaymentID, BatchPaymentDeleteByUrlParam batchPaymentDeleteByUrlParam, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Updates a specific batch payment for invoices and credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BatchPayments)
System.Threading.Tasks.Task> DeleteBatchPaymentByUrlParamAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid batchPaymentID, BatchPaymentDeleteByUrlParam batchPaymentDeleteByUrlParam, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Deletes a specific contact from a contact group using a unique contact Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of void
System.Threading.Tasks.Task DeleteContactGroupContactAsync (string accessToken, string xeroTenantId, Guid contactGroupID, Guid contactID, CancellationToken cancellationToken = default);
///
/// Deletes a specific contact from a contact group using a unique contact Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse
System.Threading.Tasks.Task> DeleteContactGroupContactAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactGroupID, Guid contactID, CancellationToken cancellationToken = default);
///
/// Deletes all contacts from a specific contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of void
System.Threading.Tasks.Task DeleteContactGroupContactsAsync (string accessToken, string xeroTenantId, Guid contactGroupID, CancellationToken cancellationToken = default);
///
/// Deletes all contacts from a specific contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse
System.Threading.Tasks.Task> DeleteContactGroupContactsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactGroupID, CancellationToken cancellationToken = default);
///
/// Deletes an Allocation from a Credit Note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Unique identifier for Allocation object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Allocation
System.Threading.Tasks.Task DeleteCreditNoteAllocationsAsync (string accessToken, string xeroTenantId, Guid creditNoteID, Guid allocationID, CancellationToken cancellationToken = default);
///
/// Deletes an Allocation from a Credit Note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Unique identifier for Allocation object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Allocation)
System.Threading.Tasks.Task> DeleteCreditNoteAllocationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, Guid allocationID, CancellationToken cancellationToken = default);
///
/// Deletes a specific item
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Item
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of void
System.Threading.Tasks.Task DeleteItemAsync (string accessToken, string xeroTenantId, Guid itemID, CancellationToken cancellationToken = default);
///
/// Deletes a specific item
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Item
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse
System.Threading.Tasks.Task> DeleteItemAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid itemID, CancellationToken cancellationToken = default);
///
/// Deletes a specific linked transactions (billable expenses)
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a LinkedTransaction
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of void
System.Threading.Tasks.Task DeleteLinkedTransactionAsync (string accessToken, string xeroTenantId, Guid linkedTransactionID, CancellationToken cancellationToken = default);
///
/// Deletes a specific linked transactions (billable expenses)
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a LinkedTransaction
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse
System.Threading.Tasks.Task> DeleteLinkedTransactionAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid linkedTransactionID, CancellationToken cancellationToken = default);
///
/// Deletes an Allocation from an overpayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Overpayment
/// Unique identifier for Allocation object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Allocation
System.Threading.Tasks.Task DeleteOverpaymentAllocationsAsync (string accessToken, string xeroTenantId, Guid overpaymentID, Guid allocationID, CancellationToken cancellationToken = default);
///
/// Deletes an Allocation from an overpayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Overpayment
/// Unique identifier for Allocation object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Allocation)
System.Threading.Tasks.Task> DeleteOverpaymentAllocationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid overpaymentID, Guid allocationID, CancellationToken cancellationToken = default);
///
/// Updates a specific payment for invoices and credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Payment
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Payments
System.Threading.Tasks.Task DeletePaymentAsync (string accessToken, string xeroTenantId, Guid paymentID, PaymentDelete paymentDelete, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Updates a specific payment for invoices and credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Payment
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Payments)
System.Threading.Tasks.Task> DeletePaymentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid paymentID, PaymentDelete paymentDelete, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Deletes an Allocation from a Prepayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a PrePayment
/// Unique identifier for Allocation object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Allocation
System.Threading.Tasks.Task DeletePrepaymentAllocationsAsync (string accessToken, string xeroTenantId, Guid prepaymentID, Guid allocationID, CancellationToken cancellationToken = default);
///
/// Deletes an Allocation from a Prepayment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a PrePayment
/// Unique identifier for Allocation object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Allocation)
System.Threading.Tasks.Task> DeletePrepaymentAllocationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid prepaymentID, Guid allocationID, CancellationToken cancellationToken = default);
///
/// Deletes a specific tracking category
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a TrackingCategory
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of TrackingCategories
System.Threading.Tasks.Task DeleteTrackingCategoryAsync (string accessToken, string xeroTenantId, Guid trackingCategoryID, CancellationToken cancellationToken = default);
///
/// Deletes a specific tracking category
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a TrackingCategory
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (TrackingCategories)
System.Threading.Tasks.Task> DeleteTrackingCategoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid trackingCategoryID, CancellationToken cancellationToken = default);
///
/// Deletes a specific option for a specific tracking category
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a TrackingCategory
/// Unique identifier for a Tracking Option
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of TrackingOptions
System.Threading.Tasks.Task DeleteTrackingOptionsAsync (string accessToken, string xeroTenantId, Guid trackingCategoryID, Guid trackingOptionID, CancellationToken cancellationToken = default);
///
/// Deletes a specific option for a specific tracking category
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a TrackingCategory
/// Unique identifier for a Tracking Option
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (TrackingOptions)
System.Threading.Tasks.Task> DeleteTrackingOptionsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid trackingCategoryID, Guid trackingOptionID, CancellationToken cancellationToken = default);
///
/// Sends a copy of a specific invoice to related contact via email
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of void
System.Threading.Tasks.Task EmailInvoiceAsync (string accessToken, string xeroTenantId, Guid invoiceID, RequestEmpty requestEmpty, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Sends a copy of a specific invoice to related contact via email
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
///
/// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse
System.Threading.Tasks.Task> EmailInvoiceAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, RequestEmpty requestEmpty, string idempotencyKey = null, CancellationToken cancellationToken = default);
///
/// Retrieves a single chart of accounts by using a unique account Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Accounts
System.Threading.Tasks.Task GetAccountAsync (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default);
///
/// Retrieves a single chart of accounts by using a unique account Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Accounts)
System.Threading.Tasks.Task> GetAccountAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default);
///
/// Retrieves an attachment for a specific account by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves an attachment for a specific account by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific account using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetAccountAttachmentByIdAsync (string accessToken, string xeroTenantId, Guid accountID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific account using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetAccountAttachmentByIdAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific accounts by using a unique account Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task GetAccountAttachmentsAsync (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific accounts by using a unique account Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Account object
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> GetAccountAttachmentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default);
///
/// Retrieves the full chart of accounts
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Accounts
System.Threading.Tasks.Task GetAccountsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves the full chart of accounts
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Accounts)
System.Threading.Tasks.Task> GetAccountsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves a single spent or received money transaction by using a unique bank transaction Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BankTransactions
System.Threading.Tasks.Task GetBankTransactionAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, int? unitdp = null, CancellationToken cancellationToken = default);
///
/// Retrieves a single spent or received money transaction by using a unique bank transaction Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BankTransactions)
System.Threading.Tasks.Task> GetBankTransactionAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, int? unitdp = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific bank transaction by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific bank transaction by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves specific attachments from a specific BankTransaction using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetBankTransactionAttachmentByIdAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves specific attachments from a specific BankTransaction using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetBankTransactionAttachmentByIdAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves any attachments from a specific bank transactions
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task GetBankTransactionAttachmentsAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, CancellationToken cancellationToken = default);
///
/// Retrieves any attachments from a specific bank transactions
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> GetBankTransactionAttachmentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, CancellationToken cancellationToken = default);
///
/// Retrieves any spent or received money transactions
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Up to 100 bank transactions will be returned in a single API call with line items details (optional)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Number of records to retrieve per page (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BankTransactions
System.Threading.Tasks.Task GetBankTransactionsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default);
///
/// Retrieves any spent or received money transactions
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Up to 100 bank transactions will be returned in a single API call with line items details (optional)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Number of records to retrieve per page (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BankTransactions)
System.Threading.Tasks.Task> GetBankTransactionsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default);
///
/// Retrieves history from a specific bank transaction using a unique bank transaction Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetBankTransactionsHistoryAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, CancellationToken cancellationToken = default);
///
/// Retrieves history from a specific bank transaction using a unique bank transaction Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transaction
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetBankTransactionsHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, CancellationToken cancellationToken = default);
///
/// Retrieves specific bank transfers by using a unique bank transfer Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BankTransfers
System.Threading.Tasks.Task GetBankTransferAsync (string accessToken, string xeroTenantId, Guid bankTransferID, CancellationToken cancellationToken = default);
///
/// Retrieves specific bank transfers by using a unique bank transfer Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BankTransfers)
System.Threading.Tasks.Task> GetBankTransferAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment on a specific bank transfer by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment on a specific bank transfer by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific bank transfer using a unique attachment ID
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetBankTransferAttachmentByIdAsync (string accessToken, string xeroTenantId, Guid bankTransferID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific bank transfer using a unique attachment ID
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetBankTransferAttachmentByIdAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves attachments from a specific bank transfer
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task GetBankTransferAttachmentsAsync (string accessToken, string xeroTenantId, Guid bankTransferID, CancellationToken cancellationToken = default);
///
/// Retrieves attachments from a specific bank transfer
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> GetBankTransferAttachmentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, CancellationToken cancellationToken = default);
///
/// Retrieves history from a specific bank transfer using a unique bank transfer Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetBankTransferHistoryAsync (string accessToken, string xeroTenantId, Guid bankTransferID, CancellationToken cancellationToken = default);
///
/// Retrieves history from a specific bank transfer using a unique bank transfer Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Xero generated unique identifier for a bank transfer
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetBankTransferHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, CancellationToken cancellationToken = default);
///
/// Retrieves all bank transfers
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BankTransfers
System.Threading.Tasks.Task GetBankTransfersAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves all bank transfers
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BankTransfers)
System.Threading.Tasks.Task> GetBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific batch payment using a unique batch payment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BatchPayments
System.Threading.Tasks.Task GetBatchPaymentAsync (string accessToken, string xeroTenantId, Guid batchPaymentID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific batch payment using a unique batch payment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BatchPayments)
System.Threading.Tasks.Task> GetBatchPaymentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid batchPaymentID, CancellationToken cancellationToken = default);
///
/// Retrieves history from a specific batch payment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetBatchPaymentHistoryAsync (string accessToken, string xeroTenantId, Guid batchPaymentID, CancellationToken cancellationToken = default);
///
/// Retrieves history from a specific batch payment
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for BatchPayment
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetBatchPaymentHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid batchPaymentID, CancellationToken cancellationToken = default);
///
/// Retrieves either one or many batch payments for invoices
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BatchPayments
System.Threading.Tasks.Task GetBatchPaymentsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves either one or many batch payments for invoices
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BatchPayments)
System.Threading.Tasks.Task> GetBatchPaymentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific branding theme using a unique branding theme Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Branding Theme
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BrandingThemes
System.Threading.Tasks.Task GetBrandingThemeAsync (string accessToken, string xeroTenantId, Guid brandingThemeID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific branding theme using a unique branding theme Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Branding Theme
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BrandingThemes)
System.Threading.Tasks.Task> GetBrandingThemeAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid brandingThemeID, CancellationToken cancellationToken = default);
///
/// Retrieves the payment services for a specific branding theme
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Branding Theme
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of PaymentServices
System.Threading.Tasks.Task GetBrandingThemePaymentServicesAsync (string accessToken, string xeroTenantId, Guid brandingThemeID, CancellationToken cancellationToken = default);
///
/// Retrieves the payment services for a specific branding theme
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Branding Theme
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (PaymentServices)
System.Threading.Tasks.Task> GetBrandingThemePaymentServicesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid brandingThemeID, CancellationToken cancellationToken = default);
///
/// Retrieves all the branding themes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of BrandingThemes
System.Threading.Tasks.Task GetBrandingThemesAsync (string accessToken, string xeroTenantId, CancellationToken cancellationToken = default);
///
/// Retrieves all the branding themes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (BrandingThemes)
System.Threading.Tasks.Task> GetBrandingThemesAsyncWithHttpInfo (string accessToken, string xeroTenantId, CancellationToken cancellationToken = default);
///
/// Retrieves a specific budget, which includes budget lines
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Budgets
/// Filter by start date (optional)
/// Filter by end date (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Budgets
System.Threading.Tasks.Task GetBudgetAsync (string accessToken, string xeroTenantId, Guid budgetID, DateTime? dateTo = null, DateTime? dateFrom = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific budget, which includes budget lines
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for Budgets
/// Filter by start date (optional)
/// Filter by end date (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Budgets)
System.Threading.Tasks.Task> GetBudgetAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid budgetID, DateTime? dateTo = null, DateTime? dateFrom = null, CancellationToken cancellationToken = default);
///
/// Retrieve a list of budgets
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Filter by BudgetID. Allows you to retrieve a specific individual budget. (optional)
/// Filter by start date (optional)
/// Filter by end date (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Budgets
System.Threading.Tasks.Task GetBudgetsAsync (string accessToken, string xeroTenantId, List iDs = null, DateTime? dateTo = null, DateTime? dateFrom = null, CancellationToken cancellationToken = default);
///
/// Retrieve a list of budgets
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Filter by BudgetID. Allows you to retrieve a specific individual budget. (optional)
/// Filter by start date (optional)
/// Filter by end date (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Budgets)
System.Threading.Tasks.Task> GetBudgetsAsyncWithHttpInfo (string accessToken, string xeroTenantId, List iDs = null, DateTime? dateTo = null, DateTime? dateFrom = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific contacts in a Xero organisation using a unique contact Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Contacts
System.Threading.Tasks.Task GetContactAsync (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific contacts in a Xero organisation using a unique contact Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Contacts)
System.Threading.Tasks.Task> GetContactAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific contact by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific contact by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific contact using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetContactAttachmentByIdAsync (string accessToken, string xeroTenantId, Guid contactID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific contact using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetContactAttachmentByIdAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific contact in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task GetContactAttachmentsAsync (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific contact in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> GetContactAttachmentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific contact by contact number in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Contacts
System.Threading.Tasks.Task GetContactByContactNumberAsync (string accessToken, string xeroTenantId, string contactNumber, CancellationToken cancellationToken = default);
///
/// Retrieves a specific contact by contact number in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Contacts)
System.Threading.Tasks.Task> GetContactByContactNumberAsyncWithHttpInfo (string accessToken, string xeroTenantId, string contactNumber, CancellationToken cancellationToken = default);
///
/// Retrieves CIS settings for a specific contact in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of CISSettings
System.Threading.Tasks.Task GetContactCISSettingsAsync (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves CIS settings for a specific contact in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (CISSettings)
System.Threading.Tasks.Task> GetContactCISSettingsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific contact group by using a unique contact group Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ContactGroups
System.Threading.Tasks.Task GetContactGroupAsync (string accessToken, string xeroTenantId, Guid contactGroupID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific contact group by using a unique contact group Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact Group
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ContactGroups)
System.Threading.Tasks.Task> GetContactGroupAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactGroupID, CancellationToken cancellationToken = default);
///
/// Retrieves the contact Id and name of each contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ContactGroups
System.Threading.Tasks.Task GetContactGroupsAsync (string accessToken, string xeroTenantId, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves the contact Id and name of each contact group
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ContactGroups)
System.Threading.Tasks.Task> GetContactGroupsAsyncWithHttpInfo (string accessToken, string xeroTenantId, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves history records for a specific contact
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetContactHistoryAsync (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves history records for a specific contact
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Contact
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetContactHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, CancellationToken cancellationToken = default);
///
/// Retrieves all contacts in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. (optional)
/// e.g. page=1 - Up to 100 contacts will be returned in a single API call. (optional)
/// e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional)
/// 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. (optional, default to false)
/// Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional)
/// Number of records to retrieve per page (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Contacts
System.Threading.Tasks.Task GetContactsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, List iDs = null, int? page = null, bool? includeArchived = null, bool? summaryOnly = null, string searchTerm = null, int? pageSize = null, CancellationToken cancellationToken = default);
///
/// Retrieves all contacts in a Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. (optional)
/// e.g. page=1 - Up to 100 contacts will be returned in a single API call. (optional)
/// e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional)
/// 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. (optional, default to false)
/// Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional)
/// Number of records to retrieve per page (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Contacts)
System.Threading.Tasks.Task> GetContactsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, List iDs = null, int? page = null, bool? includeArchived = null, bool? summaryOnly = null, string searchTerm = null, int? pageSize = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific credit note using a unique credit note Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of CreditNotes
System.Threading.Tasks.Task GetCreditNoteAsync (string accessToken, string xeroTenantId, Guid creditNoteID, int? unitdp = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific credit note using a unique credit note Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (CreditNotes)
System.Threading.Tasks.Task> GetCreditNoteAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, int? unitdp = null, CancellationToken cancellationToken = default);
///
/// Retrieves credit notes as PDF files
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetCreditNoteAsPdfAsync (string accessToken, string xeroTenantId, Guid creditNoteID, CancellationToken cancellationToken = default);
///
/// Retrieves credit notes as PDF files
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetCreditNoteAsPdfAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment on a specific credit note by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment on a specific credit note by file name
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific credit note using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetCreditNoteAttachmentByIdAsync (string accessToken, string xeroTenantId, Guid creditNoteID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific credit note using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetCreditNoteAttachmentByIdAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task GetCreditNoteAttachmentsAsync (string accessToken, string xeroTenantId, Guid creditNoteID, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> GetCreditNoteAttachmentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, CancellationToken cancellationToken = default);
///
/// Retrieves history records of a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetCreditNoteHistoryAsync (string accessToken, string xeroTenantId, Guid creditNoteID, CancellationToken cancellationToken = default);
///
/// Retrieves history records of a specific credit note
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Credit Note
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetCreditNoteHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, CancellationToken cancellationToken = default);
///
/// Retrieves any credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Number of records to retrieve per page (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of CreditNotes
System.Threading.Tasks.Task GetCreditNotesAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default);
///
/// Retrieves any credit notes
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Number of records to retrieve per page (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (CreditNotes)
System.Threading.Tasks.Task> GetCreditNotesAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default);
///
/// Retrieves currencies for your Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Currencies
System.Threading.Tasks.Task GetCurrenciesAsync (string accessToken, string xeroTenantId, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves currencies for your Xero organisation
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Currencies)
System.Threading.Tasks.Task> GetCurrenciesAsyncWithHttpInfo (string accessToken, string xeroTenantId, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific employee used in Xero payrun using a unique employee Id
///
///
/// This endpoint is deprecated and will be removed April 28, 2026
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Employee
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Employees
[Obsolete]
System.Threading.Tasks.Task GetEmployeeAsync (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific employee used in Xero payrun using a unique employee Id
///
///
/// This endpoint is deprecated and will be removed April 28, 2026
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a Employee
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Employees)
[Obsolete]
System.Threading.Tasks.Task> GetEmployeeAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default);
///
/// Retrieves employees used in Xero payrun
///
///
/// This endpoint is deprecated and will be removed April 28, 2026
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Employees
[Obsolete]
System.Threading.Tasks.Task GetEmployeesAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves employees used in Xero payrun
///
///
/// This endpoint is deprecated and will be removed April 28, 2026
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Employees)
[Obsolete]
System.Threading.Tasks.Task> GetEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific expense claim using a unique expense claim Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ExpenseClaim
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ExpenseClaims
System.Threading.Tasks.Task GetExpenseClaimAsync (string accessToken, string xeroTenantId, Guid expenseClaimID, CancellationToken cancellationToken = default);
///
/// Retrieves a specific expense claim using a unique expense claim Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ExpenseClaim
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ExpenseClaims)
System.Threading.Tasks.Task> GetExpenseClaimAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid expenseClaimID, CancellationToken cancellationToken = default);
///
/// Retrieves history records of a specific expense claim
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ExpenseClaim
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetExpenseClaimHistoryAsync (string accessToken, string xeroTenantId, Guid expenseClaimID, CancellationToken cancellationToken = default);
///
/// Retrieves history records of a specific expense claim
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for a ExpenseClaim
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetExpenseClaimHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid expenseClaimID, CancellationToken cancellationToken = default);
///
/// Retrieves expense claims
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ExpenseClaims
System.Threading.Tasks.Task GetExpenseClaimsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves expense claims
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (ExpenseClaims)
System.Threading.Tasks.Task> GetExpenseClaimsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific sales invoice or purchase bill using a unique invoice Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Invoices
System.Threading.Tasks.Task GetInvoiceAsync (string accessToken, string xeroTenantId, Guid invoiceID, int? unitdp = null, CancellationToken cancellationToken = default);
///
/// Retrieves a specific sales invoice or purchase bill using a unique invoice Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Invoices)
System.Threading.Tasks.Task> GetInvoiceAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, int? unitdp = null, CancellationToken cancellationToken = default);
///
/// Retrieves invoices or purchase bills as PDF files
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetInvoiceAsPdfAsync (string accessToken, string xeroTenantId, Guid invoiceID, CancellationToken cancellationToken = default);
///
/// Retrieves invoices or purchase bills as PDF files
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetInvoiceAsPdfAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, CancellationToken cancellationToken = default);
///
/// Retrieves an attachment from a specific invoice or purchase bill by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves an attachment from a specific invoice or purchase bill by filename
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Name of the attachment
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of System.IO.Stream
System.Threading.Tasks.Task GetInvoiceAttachmentByIdAsync (string accessToken, string xeroTenantId, Guid invoiceID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Unique identifier for Attachment object
/// The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (System.IO.Stream)
System.Threading.Tasks.Task> GetInvoiceAttachmentByIdAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, Guid attachmentID, string contentType, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific invoice or purchase bill
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Attachments
System.Threading.Tasks.Task GetInvoiceAttachmentsAsync (string accessToken, string xeroTenantId, Guid invoiceID, CancellationToken cancellationToken = default);
///
/// Retrieves attachments for a specific invoice or purchase bill
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (Attachments)
System.Threading.Tasks.Task> GetInvoiceAttachmentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, CancellationToken cancellationToken = default);
///
/// Retrieves history records for a specific invoice
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of HistoryRecords
System.Threading.Tasks.Task GetInvoiceHistoryAsync (string accessToken, string xeroTenantId, Guid invoiceID, CancellationToken cancellationToken = default);
///
/// Retrieves history records for a specific invoice
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Unique identifier for an Invoice
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (HistoryRecords)
System.Threading.Tasks.Task> GetInvoiceHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, CancellationToken cancellationToken = default);
///
/// Retrieves invoice reminder settings
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of InvoiceReminders
System.Threading.Tasks.Task GetInvoiceRemindersAsync (string accessToken, string xeroTenantId, CancellationToken cancellationToken = default);
///
/// Retrieves invoice reminder settings
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (InvoiceReminders)
System.Threading.Tasks.Task> GetInvoiceRemindersAsyncWithHttpInfo (string accessToken, string xeroTenantId, CancellationToken cancellationToken = default);
///
/// Retrieves sales invoices or purchase bills
///
///
///
///
/// Thrown when fails to make API call
/// Xero API OAuth 2.0 accessToken
/// Xero identifier for Tenant
/// Only records created or modified since this timestamp will be returned (optional)
/// Filter by an any element (optional)
/// Order by an any element (optional)
/// Filter by a comma-separated list of InvoicesIDs. (optional)
/// Filter by a comma-separated list of InvoiceNumbers. (optional)
/// Filter by a comma-separated list of ContactIDs. (optional)
/// 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. (optional)
/// e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice (optional)
/// e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response (optional)
/// When set to true you'll only retrieve Invoices created by your app (optional)
/// e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
/// 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. (optional, default to false)
/// Number of records to retrieve per page (optional)
/// Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference. (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of Invoices
System.Threading.Tasks.Task GetInvoicesAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, List iDs = null, List invoiceNumbers = null, List contactIDs = null, List statuses = null, int? page = null, bool? includeArchived = null, bool? createdByMyApp = null, int? unitdp = null, bool? summaryOnly = null, int? pageSize = null, string searchTerm = null, CancellationToken cancellationToken = default);
///