From f88b1de348b6ba671a29ac4aa344bf0952c8434e Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 6 May 2026 23:42:09 +0000 Subject: [PATCH] Releasing 14.0.1 (OAS: 13.0.0) --- Xero.NetStandard.OAuth2/Api/AccountingApi.cs | 500 +---- Xero.NetStandard.OAuth2/Api/AppStoreApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/AssetApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/FilesApi.cs | 10 +- Xero.NetStandard.OAuth2/Api/FinanceApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/IdentityApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/ProjectApi.cs | 2 +- .../Client/Configuration.cs | 2 +- .../Model/Accounting/Prepayment.cs | 15 + .../Model/Files/Association.cs | 30 + docs/accounting/index.html | 1961 ++++++----------- docs/files/index.html | 10 + 17 files changed, 698 insertions(+), 1850 deletions(-) diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index bf9f73f8..35c36870 100644 --- a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; @@ -692,39 +692,6 @@ public interface IAccountingApiAsync : IApiAccessor /// 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 /// /// @@ -3454,68 +3421,6 @@ public interface IAccountingApiAsync : IApiAccessor /// 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 /// /// @@ -6664,39 +6569,6 @@ public interface IAccountingApiAsync : IApiAccessor /// Task of ApiResponse (CreditNotes) System.Threading.Tasks.Task> UpdateOrCreateCreditNotesAsyncWithHttpInfo (string accessToken, string xeroTenantId, CreditNotes creditNotes, bool? summarizeErrors = null, int? unitdp = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// - /// Creates a single 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 UpdateOrCreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); - - /// - /// Creates a single 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> UpdateOrCreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); - /// /// Updates or creates one or more sales invoices or purchase bills /// /// @@ -9318,99 +9190,6 @@ public async System.Threading.Tasks.Task CreateCurrencyAsync (string } - /// - /// 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] - public async System.Threading.Tasks.Task CreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateEmployeesAsyncWithHttpInfo(accessToken, xeroTenantId, employees, summarizeErrors, idempotencyKey, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// 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] - public async System.Threading.Tasks.Task> CreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - // verify the required parameter 'xeroTenantId' is set - if (xeroTenantId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->CreateEmployees"); - - // verify the required parameter 'employees' is set - if (employees == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'employees' when calling AccountingApi->CreateEmployees"); - - - Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); - - String[] @contentTypes = new String[] { - "application/json" - }; - - // to determine the Accept header - String[] @accepts = new String[] { - "application/json" - }; - - foreach (var cType in @contentTypes) - requestOptions.HeaderParameters.Add("Content-Type", cType); - - foreach (var accept in @accepts) - requestOptions.HeaderParameters.Add("Accept", accept); - - - if (summarizeErrors != null) - { - requestOptions.QueryParameters.Add("summarizeErrors", summarizeErrors.ToString().ToLower()); - } - - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (idempotencyKey != null) - requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - requestOptions.Data = employees; - - // authentication (OAuth2) required - // oauth required - if (!String.IsNullOrEmpty(accessToken)) - { - requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); - } - // make the HTTP request - - - - var response = await this.AsynchronousClient.PutAsync("/Employees", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("CreateEmployees", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Creates a history record for a specific expense claim /// @@ -17686,190 +17465,6 @@ public async System.Threading.Tasks.Task GetCurrenciesAsync (string } - /// - /// 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] - public async System.Threading.Tasks.Task GetEmployeeAsync (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetEmployeeAsyncWithHttpInfo(accessToken, xeroTenantId, employeeID, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// 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] - public async System.Threading.Tasks.Task> GetEmployeeAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default) - { - // verify the required parameter 'xeroTenantId' is set - if (xeroTenantId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->GetEmployee"); - - // verify the required parameter 'employeeID' is set - if (employeeID == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'employeeID' when calling AccountingApi->GetEmployee"); - - - Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); - - String[] @contentTypes = new String[] { - }; - - // to determine the Accept header - String[] @accepts = new String[] { - "application/json" - }; - - foreach (var cType in @contentTypes) - requestOptions.HeaderParameters.Add("Content-Type", cType); - - foreach (var accept in @accepts) - requestOptions.HeaderParameters.Add("Accept", accept); - - if (employeeID != null) - requestOptions.PathParameters.Add("EmployeeID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(employeeID)); // path parameter - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - - // authentication (OAuth2) required - // oauth required - if (!String.IsNullOrEmpty(accessToken)) - { - requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); - } - // make the HTTP request - - - - var response = await this.AsynchronousClient.GetAsync("/Employees/{EmployeeID}", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("GetEmployee", response); - if (exception != null) throw exception; - } - - return response; - } - - - /// - /// 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] - public async System.Threading.Tasks.Task GetEmployeesAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetEmployeesAsyncWithHttpInfo(accessToken, xeroTenantId, ifModifiedSince, where, order, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// 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] - public async System.Threading.Tasks.Task> GetEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default) - { - // verify the required parameter 'xeroTenantId' is set - if (xeroTenantId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->GetEmployees"); - - - Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); - - String[] @contentTypes = new String[] { - }; - - // to determine the Accept header - String[] @accepts = new String[] { - "application/json" - }; - - foreach (var cType in @contentTypes) - requestOptions.HeaderParameters.Add("Content-Type", cType); - - foreach (var accept in @accepts) - requestOptions.HeaderParameters.Add("Accept", accept); - - - if (where != null) - { - foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "where", where)) - { - foreach (var value in kvp.Value) - { - requestOptions.QueryParameters.Add(kvp.Key, value); - } - } - } - - if (order != null) - { - foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "order", order)) - { - foreach (var value in kvp.Value) - { - requestOptions.QueryParameters.Add(kvp.Key, value); - } - } - } - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (ifModifiedSince != null) - requestOptions.HeaderParameters.Add("If-Modified-Since", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(ifModifiedSince)); // header parameter - - // authentication (OAuth2) required - // oauth required - if (!String.IsNullOrEmpty(accessToken)) - { - requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); - } - // make the HTTP request - - - - var response = await this.AsynchronousClient.GetAsync("/Employees", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("GetEmployees", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Retrieves a specific expense claim using a unique expense claim Id /// @@ -27852,99 +27447,6 @@ public async System.Threading.Tasks.Task UpdateOrCreateCreditNotesA } - /// - /// Creates a single 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] - public async System.Threading.Tasks.Task UpdateOrCreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateOrCreateEmployeesAsyncWithHttpInfo(accessToken, xeroTenantId, employees, summarizeErrors, idempotencyKey, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// Creates a single 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] - public async System.Threading.Tasks.Task> UpdateOrCreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - // verify the required parameter 'xeroTenantId' is set - if (xeroTenantId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->UpdateOrCreateEmployees"); - - // verify the required parameter 'employees' is set - if (employees == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'employees' when calling AccountingApi->UpdateOrCreateEmployees"); - - - Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); - - String[] @contentTypes = new String[] { - "application/json" - }; - - // to determine the Accept header - String[] @accepts = new String[] { - "application/json" - }; - - foreach (var cType in @contentTypes) - requestOptions.HeaderParameters.Add("Content-Type", cType); - - foreach (var accept in @accepts) - requestOptions.HeaderParameters.Add("Accept", accept); - - - if (summarizeErrors != null) - { - requestOptions.QueryParameters.Add("summarizeErrors", summarizeErrors.ToString().ToLower()); - } - - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (idempotencyKey != null) - requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - requestOptions.Data = employees; - - // authentication (OAuth2) required - // oauth required - if (!String.IsNullOrEmpty(accessToken)) - { - requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); - } - // make the HTTP request - - - - var response = await this.AsynchronousClient.PostAsync("/Employees", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("UpdateOrCreateEmployees", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Updates or creates one or more sales invoices or purchase bills /// diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs index e7108659..1248d17c 100644 --- a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs index 0c77757d..1324fd3d 100644 --- a/Xero.NetStandard.OAuth2/Api/AssetApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AssetApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs index 04fa5834..f1ae5923 100644 --- a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs +++ b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs index eaac61fa..6026cf8a 100644 --- a/Xero.NetStandard.OAuth2/Api/FilesApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FilesApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; @@ -185,7 +185,7 @@ public interface IFilesApiAsync : IApiAccessor /// Object id for single object /// pass an optional page size value (optional) /// number of records to skip for pagination (optional) - /// values to sort by (optional) + /// values to sort by (optional, default to CreatedDateUtc) /// direction to sort by (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of List<Association> @@ -203,7 +203,7 @@ public interface IFilesApiAsync : IApiAccessor /// Object id for single object /// pass an optional page size value (optional) /// number of records to skip for pagination (optional) - /// values to sort by (optional) + /// values to sort by (optional, default to CreatedDateUtc) /// direction to sort by (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (List<Association>) @@ -1104,7 +1104,7 @@ public async System.Threading.Tasks.Task DeleteFolderAsync (string accessToken, /// Object id for single object /// pass an optional page size value (optional) /// number of records to skip for pagination (optional) - /// values to sort by (optional) + /// values to sort by (optional, default to CreatedDateUtc) /// direction to sort by (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of List<Association> @@ -1124,7 +1124,7 @@ public async System.Threading.Tasks.Task> GetAssociationsByObj /// Object id for single object /// pass an optional page size value (optional) /// number of records to skip for pagination (optional) - /// values to sort by (optional) + /// values to sort by (optional, default to CreatedDateUtc) /// direction to sort by (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (List<Association>) diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs index bdd2dbf5..99a18c67 100644 --- a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs index 28e2f371..43603b16 100644 --- a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs +++ b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs index c2389b5b..31ff423b 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs index bdfe6e80..f59be32c 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs index 82229a1a..be3cf9e7 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs index 9ecf9efa..cbe07e1a 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs index e47fbca2..fd0d2609 100644 --- a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs +++ b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 12.0.2 +// The version of the OpenAPI document: 13.0.0 using System; diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs index 999cb352..6cc123b9 100644 --- a/Xero.NetStandard.OAuth2/Client/Configuration.cs +++ b/Xero.NetStandard.OAuth2/Client/Configuration.cs @@ -341,7 +341,7 @@ public static String ToDebugReport() { String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n"; report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n"; - report += " Version of the API: 12.0.2\n"; + report += " Version of the API: 13.0.0\n"; report += " SDK Package Version: 14.0.1\n"; return report; diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs index 53950b1c..f5e72cf1 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs @@ -182,6 +182,13 @@ public enum StatusEnum [DataMember(Name="PrepaymentID", EmitDefaultValue=false)] public Guid? PrepaymentID { get; set; } + /// + /// The unique identifier of the branding template applied to a receive prepayment + /// + /// The unique identifier of the branding template applied to a receive prepayment + [DataMember(Name="BrandingThemeID", EmitDefaultValue=false)] + public Guid? BrandingThemeID { get; private set; } + /// /// The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used /// @@ -253,6 +260,7 @@ public override string ToString() sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); sb.Append(" PrepaymentID: ").Append(PrepaymentID).Append("\n"); + sb.Append(" BrandingThemeID: ").Append(BrandingThemeID).Append("\n"); sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); sb.Append(" RemainingCredit: ").Append(RemainingCredit).Append("\n"); sb.Append(" Allocations: ").Append(Allocations).Append("\n"); @@ -361,6 +369,11 @@ public bool Equals(Prepayment input) (this.PrepaymentID != null && this.PrepaymentID.Equals(input.PrepaymentID)) ) && + ( + this.BrandingThemeID == input.BrandingThemeID || + (this.BrandingThemeID != null && + this.BrandingThemeID.Equals(input.BrandingThemeID)) + ) && ( this.CurrencyRate == input.CurrencyRate || (this.CurrencyRate != null && @@ -434,6 +447,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); if (this.PrepaymentID != null) hashCode = hashCode * 59 + this.PrepaymentID.GetHashCode(); + if (this.BrandingThemeID != null) + hashCode = hashCode * 59 + this.BrandingThemeID.GetHashCode(); if (this.CurrencyRate != null) hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode(); if (this.RemainingCredit != null) diff --git a/Xero.NetStandard.OAuth2/Model/Files/Association.cs b/Xero.NetStandard.OAuth2/Model/Files/Association.cs index 6e51400e..f32e136a 100644 --- a/Xero.NetStandard.OAuth2/Model/Files/Association.cs +++ b/Xero.NetStandard.OAuth2/Model/Files/Association.cs @@ -62,6 +62,20 @@ public partial class Association : IEquatable, IValidatableObject [DataMember(Name="Size", EmitDefaultValue=false)] public int? Size { get; set; } + /// + /// The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + /// + /// The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + [DataMember(Name="CreatedDateUtc", EmitDefaultValue=false)] + public DateTime? CreatedDateUtc { get; set; } + + /// + /// The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + /// + /// The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + [DataMember(Name="AssociationDateUtc", EmitDefaultValue=false)] + public DateTime? AssociationDateUtc { get; set; } + /// /// The unique identifier of the file /// @@ -87,6 +101,8 @@ public override string ToString() sb.Append(" SendWithObject: ").Append(SendWithObject).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" CreatedDateUtc: ").Append(CreatedDateUtc).Append("\n"); + sb.Append(" AssociationDateUtc: ").Append(AssociationDateUtc).Append("\n"); sb.Append(" FileId: ").Append(FileId).Append("\n"); sb.Append(" ObjectId: ").Append(ObjectId).Append("\n"); sb.Append(" ObjectGroup: ").Append(ObjectGroup).Append("\n"); @@ -140,6 +156,16 @@ public bool Equals(Association input) (this.Size != null && this.Size.Equals(input.Size)) ) && + ( + this.CreatedDateUtc == input.CreatedDateUtc || + (this.CreatedDateUtc != null && + this.CreatedDateUtc.Equals(input.CreatedDateUtc)) + ) && + ( + this.AssociationDateUtc == input.AssociationDateUtc || + (this.AssociationDateUtc != null && + this.AssociationDateUtc.Equals(input.AssociationDateUtc)) + ) && ( this.FileId == input.FileId || (this.FileId != null && @@ -175,6 +201,10 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.Size != null) hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.CreatedDateUtc != null) + hashCode = hashCode * 59 + this.CreatedDateUtc.GetHashCode(); + if (this.AssociationDateUtc != null) + hashCode = hashCode * 59 + this.AssociationDateUtc.GetHashCode(); if (this.FileId != null) hashCode = hashCode * 59 + this.FileId.GetHashCode(); if (this.ObjectId != null) diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 4cd6664f..58056bd9 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -4778,6 +4778,12 @@ "description" : "Xero generated unique identifier", "format" : "uuid" }, + "BrandingThemeID" : { + "type" : "string", + "description" : "The unique identifier of the branding template applied to a receive prepayment", + "format" : "uuid", + "readOnly" : true + }, "CurrencyRate" : { "type" : "number", "description" : "The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used", @@ -6421,9 +6427,6 @@
  • createCurrency
  • -
  • - createEmployees -
  • createExpenseClaimHistory
  • @@ -6697,12 +6700,6 @@
  • getCurrencies
  • -
  • - getEmployee -
  • -
  • - getEmployees -
  • getExpenseClaim
  • @@ -7015,9 +7012,6 @@
  • updateOrCreateCreditNotes
  • -
  • - updateOrCreateEmployees -
  • updateOrCreateInvoices
  • @@ -11485,29 +11479,29 @@

    Parameters


    -
    -
    +
    +
    -

    createEmployees

    -

    Creates new employees used in Xero payrun

    +

    createExpenseClaimHistory

    +

    Creates a history record for a specific expense claim

    -

    This endpoint is deprecated and will be removed April 28, 2026

    +


    -
    /Employees
    +
    /ExpenseClaims/{ExpenseClaimID}/History

    Usage and SDK Samples

    -
    +
    using System;
     using System.Diagnostics;
     using Xero.NetStandard.OAuth2.Api;
    @@ -11516,32 +11510,31 @@ 

    Usage and SDK Samples

    namespace Example { - public class CreateEmployeesExample + public class CreateExpenseClaimHistoryExample { public async Task Main() { var accessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountingApi(); var xeroTenantId = "YOUR_XERO_TENANT_ID"; - var summarizeErrors = true; + var expenseClaimID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var idempotencyKey = "KEY_VALUE"; - var employee = new Employee(); - employee.FirstName = "Nick"; - employee.LastName = "Fury"; + var historyRecord = new HistoryRecord(); + historyRecord.Details = "Hello World"; - var employees = new Employees(); - var employeesList = new List<Employee>(); - employeesList.Add(employee); - employees._Employees = employeesList; + var historyRecords = new HistoryRecords(); + var historyRecordsList = new List<HistoryRecord>(); + historyRecordsList.Add(historyRecord); + historyRecords._HistoryRecords = historyRecordsList; try { - var result = await apiInstance.CreateEmployeesAsync(accessToken, xeroTenantId, employees, summarizeErrors, idempotencyKey); + var result = await apiInstance.CreateExpenseClaimHistoryAsync(accessToken, xeroTenantId, expenseClaimID, historyRecords, idempotencyKey); Console.WriteLine(result); } catch (Exception e) { - Console.WriteLine("Exception when calling apiInstance.CreateEmployees: " + e.Message ); + Console.WriteLine("Exception when calling apiInstance.CreateExpenseClaimHistory: " + e.Message ); } } } @@ -11552,12 +11545,45 @@

    Scopes

    - - + +
    accounting.settingsGrant read-write access to organisation and account settingsaccounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    ExpenseClaimID* + + +
    +
    +
    + + UUID + + + (uuid) + + +
    +Unique identifier for a ExpenseClaim +
    +
    +
    + Required +
    +
    +
    +
    Header parameters
    @@ -11568,7 +11594,7 @@

    Parameters

    - +
    -
    +
    @@ -11591,7 +11617,7 @@

    Parameters

    -
    +
    @@ -11615,15 +11641,15 @@

    Parameters

    Description
    employees *historyRecords *
    - Employees + HistoryRecords
    - Employees with array of Employee object in body of request + HistoryRecords containing an array of HistoryRecord objects in body of request
    @@ -11632,19 +11658,15 @@

    Parameters

    -
    Query parameters
    +
    +
    +
    +
    +
    +
    +

    createExpenseClaims

    +

    Creates expense claims

    +
    +
    +
    +

    +

    +

    +
    +
    /ExpenseClaims
    +

    +

    Usage and SDK Samples

    +

    + +
    + +
    +
    using System;
    +using System.Diagnostics;
    +using Xero.NetStandard.OAuth2.Api;
    +using Xero.NetStandard.OAuth2.Client;
    +using Xero.NetStandard.OAuth2.Model;
    +
    +namespace Example
    +{
    +    public class CreateExpenseClaimsExample
    +    {
    +        public async Task Main()
    +        {            
    +            var accessToken = "YOUR_ACCESS_TOKEN";          
    +            var apiInstance = new AccountingApi();
    +            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    +            var idempotencyKey = "KEY_VALUE";
    +            var currDate = DateTime.Now;
    +
    +            var user = new User();
    +            user.UserID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    +
    +            var receipt = new Receipt();
    +            receipt.ReceiptID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    +            receipt.Date = currDate;
    +            var receipts = new List<Receipt>();
    +            receipts.Add(receipt);
    +
    +            var expenseClaim = new ExpenseClaim();
    +            expenseClaim.Status = ExpenseClaim.StatusEnum.SUBMITTED;
    +            expenseClaim.User = user;
    +            expenseClaim.Receipts = receipts;
    +
    +            var expenseClaims = new ExpenseClaims();
    +            var expenseClaimsList = new List<ExpenseClaim>();
    +            expenseClaimsList.Add(expenseClaim); 
    +            expenseClaims._ExpenseClaims = expenseClaimsList;
    +            
    +            try {
    +                var result = await apiInstance.CreateExpenseClaimsAsync(accessToken, xeroTenantId, expenseClaims, idempotencyKey);
    +                Console.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Console.WriteLine("Exception when calling apiInstance.CreateExpenseClaims: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    +

    Scopes

    + + + + + + + +
    accounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices
    +

    Parameters

    +
    Header parameters
    - + + + + + +
    Name Description
    summarizeErrors
    xero-tenant-id* -
    +
    - Boolean + String
    -If false return 200 OK and mix of successfully created objects and any with validation errors +Xero identifier for Tenant
    +
    + Required +
    Idempotency-Key + + +
    +
    +
    + + String + + +
    +This allows you to safely retry requests without the risk of duplicate processing. 128 character max. +
    +
    +
    +
    +
    +
    Body parameters
    + + + + + + + +
    NameDescription
    expenseClaims * +
    +
    + + ExpenseClaims + +
    + ExpenseClaims with array of ExpenseClaim object in body of request +
    +
    +
    + Required +
    +
    +

    -
    -
    +
    +
    -

    createExpenseClaimHistory

    -

    Creates a history record for a specific expense claim

    +

    createInvoiceAttachmentByFileName

    +

    Creates an attachment for a specific invoice or purchase bill by filename

    @@ -11695,17 +11874,17 @@

    createExpenseClaimHistory


    -
    /ExpenseClaims/{ExpenseClaimID}/History
    +
    /Invoices/{InvoiceID}/Attachments/{FileName}

    Usage and SDK Samples

    -
    +
    using System;
     using System.Diagnostics;
     using Xero.NetStandard.OAuth2.Api;
    @@ -11714,31 +11893,26 @@ 

    Usage and SDK Samples

    namespace Example { - public class CreateExpenseClaimHistoryExample + public class CreateInvoiceAttachmentByFileNameExample { public async Task Main() { var accessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountingApi(); var xeroTenantId = "YOUR_XERO_TENANT_ID"; - var expenseClaimID = Guid.Parse("00000000-0000-0000-0000-000000000000"); + var invoiceID = Guid.Parse("00000000-0000-0000-0000-000000000000"); + var fileName = "xero-dev.jpg"; + var includeOnline = true; var idempotencyKey = "KEY_VALUE"; - - var historyRecord = new HistoryRecord(); - historyRecord.Details = "Hello World"; - - var historyRecords = new HistoryRecords(); - var historyRecordsList = new List<HistoryRecord>(); - historyRecordsList.Add(historyRecord); - historyRecords._HistoryRecords = historyRecordsList; + byte[] body = System.IO.File.ReadAllBytes(fileName); try { - var result = await apiInstance.CreateExpenseClaimHistoryAsync(accessToken, xeroTenantId, expenseClaimID, historyRecords, idempotencyKey); + var result = await apiInstance.CreateInvoiceAttachmentByFileNameAsync(accessToken, xeroTenantId, invoiceID, fileName, body, includeOnline, idempotencyKey); Console.WriteLine(result); } catch (Exception e) { - Console.WriteLine("Exception when calling apiInstance.CreateExpenseClaimHistory: " + e.Message ); + Console.WriteLine("Exception when calling apiInstance.CreateInvoiceAttachmentByFileName: " + e.Message ); } } } @@ -11749,8 +11923,8 @@

    Scopes

    - - + +
    accounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoicesaccounting.attachmentsGrant read-write access to attachments
    @@ -11761,11 +11935,11 @@

    Parameters

    Name Description - ExpenseClaimID* + InvoiceID* -
    +
    @@ -11776,7 +11950,30 @@

    Parameters

    -Unique identifier for a ExpenseClaim +Unique identifier for an Invoice +
    +
    +
    + Required +
    +
    +
    + + + + FileName* + + + +
    +
    +
    + + String + + +
    +Name of the attachment
    @@ -11798,408 +11995,7 @@

    Parameters

    -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    - - - - Idempotency-Key - - - -
    -
    -
    - - String - - -
    -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. -
    -
    -
    -
    - - - - -
    Body parameters
    - - - - - - - -
    NameDescription
    historyRecords * -
    -
    - - HistoryRecords - -
    - HistoryRecords containing an array of HistoryRecord objects in body of request -
    -
    -
    - Required -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    createExpenseClaims

    -

    Creates expense claims

    -
    -
    -
    -

    -

    -

    -
    -
    /ExpenseClaims
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class CreateExpenseClaimsExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new AccountingApi();
    -            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    -            var idempotencyKey = "KEY_VALUE";
    -            var currDate = DateTime.Now;
    -
    -            var user = new User();
    -            user.UserID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -
    -            var receipt = new Receipt();
    -            receipt.ReceiptID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -            receipt.Date = currDate;
    -            var receipts = new List<Receipt>();
    -            receipts.Add(receipt);
    -
    -            var expenseClaim = new ExpenseClaim();
    -            expenseClaim.Status = ExpenseClaim.StatusEnum.SUBMITTED;
    -            expenseClaim.User = user;
    -            expenseClaim.Receipts = receipts;
    -
    -            var expenseClaims = new ExpenseClaims();
    -            var expenseClaimsList = new List<ExpenseClaim>();
    -            expenseClaimsList.Add(expenseClaim); 
    -            expenseClaims._ExpenseClaims = expenseClaimsList;
    -            
    -            try {
    -                var result = await apiInstance.CreateExpenseClaimsAsync(accessToken, xeroTenantId, expenseClaims, idempotencyKey);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.CreateExpenseClaims: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    accounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices
    -

    Parameters

    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    Idempotency-Key - - -
    -
    -
    - - String - - -
    -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. -
    -
    -
    -
    -
    -
    Body parameters
    - - - - - - - -
    NameDescription
    expenseClaims * -
    -
    - - ExpenseClaims - -
    - ExpenseClaims with array of ExpenseClaim object in body of request -
    -
    -
    - Required -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    createInvoiceAttachmentByFileName

    -

    Creates an attachment for a specific invoice or purchase bill by filename

    -
    -
    -
    -

    -

    -

    -
    -
    /Invoices/{InvoiceID}/Attachments/{FileName}
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class CreateInvoiceAttachmentByFileNameExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new AccountingApi();
    -            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    -            var invoiceID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -            var fileName = "xero-dev.jpg";
    -            var includeOnline = true;
    -            var idempotencyKey = "KEY_VALUE";
    -            byte[] body = System.IO.File.ReadAllBytes(fileName);
    -            
    -            try {
    -                var result = await apiInstance.CreateInvoiceAttachmentByFileNameAsync(accessToken, xeroTenantId, invoiceID, fileName, body, includeOnline, idempotencyKey);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.CreateInvoiceAttachmentByFileName: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    accounting.attachmentsGrant read-write access to attachments
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    InvoiceID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Unique identifier for an Invoice -
    -
    -
    - Required -
    -
    -
    -
    FileName* - - -
    -
    -
    - - String - - -
    -Name of the attachment -
    -
    -
    - Required -
    -
    -
    -
    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    +
    @@ -26808,483 +26604,7 @@

    Parameters

    -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    contentType* - - -
    -
    -
    - - String - - -
    -The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf -
    -
    -
    - Required -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    getCreditNoteAttachmentById

    -

    Retrieves a specific attachment from a specific credit note using a unique attachment Id

    -
    -
    -
    -

    -

    -

    -
    -
    /CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class GetCreditNoteAttachmentByIdExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new AccountingApi();
    -            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    -            var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -            var attachmentID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -            var contentType = "image/jpg";
    -            
    -            try {
    -                var result = await apiInstance.GetCreditNoteAttachmentByIdAsync(accessToken, xeroTenantId, creditNoteID, attachmentID, contentType);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.GetCreditNoteAttachmentById: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - - - - - - -
    accounting.attachmentsGrant read-write access to attachments
    accounting.attachments.readGrant read-only access to attachments
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    CreditNoteID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Unique identifier for a Credit Note -
    -
    -
    - Required -
    -
    -
    -
    AttachmentID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Unique identifier for Attachment object -
    -
    -
    - Required -
    -
    -
    -
    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    contentType* - - -
    -
    -
    - - String - - -
    -The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf -
    -
    -
    - Required -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    getCreditNoteAttachments

    -

    Retrieves attachments for a specific credit notes

    -
    -
    -
    -

    -

    -

    -
    -
    /CreditNotes/{CreditNoteID}/Attachments
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class GetCreditNoteAttachmentsExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new AccountingApi();
    -            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    -            var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -            
    -            try {
    -                var result = await apiInstance.GetCreditNoteAttachmentsAsync(accessToken, xeroTenantId, creditNoteID);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.GetCreditNoteAttachments: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - - - - - - -
    accounting.attachmentsGrant read-write access to attachments
    accounting.attachments.readGrant read-only access to attachments
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - -
    NameDescription
    CreditNoteID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Unique identifier for a Credit Note -
    -
    -
    - Required -
    -
    -
    -
    -
    Header parameters
    - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    getCreditNoteHistory

    -

    Retrieves history records of a specific credit note

    -
    -
    -
    -

    -

    -

    -
    -
    /CreditNotes/{CreditNoteID}/History
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class GetCreditNoteHistoryExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new AccountingApi();
    -            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    -            var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    -            
    -            try {
    -                var result = await apiInstance.GetCreditNoteHistoryAsync(accessToken, xeroTenantId, creditNoteID);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.GetCreditNoteHistory: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - - - - - - -
    accounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices
    accounting.transactions.readGrant read-only access to invoices
    -

    Parameters

    -
    Path parameters
    - - - - - - - - - -
    NameDescription
    CreditNoteID* - - -
    -
    -
    - - UUID - - - (uuid) - - -
    -Unique identifier for a Credit Note -
    -
    -
    - Required -
    -
    -
    -
    -
    Header parameters
    - - - - - - - + + + +
    NameDescription
    xero-tenant-id* - - -
    +
    @@ -27301,17 +26621,40 @@

    Parameters

    contentType* + + +
    +
    +
    + + String + + +
    +The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf +
    +
    +
    + Required +
    +
    +
    +

    -
    -
    +
    +
    -

    getCreditNotes

    -

    Retrieves any credit notes

    +

    getCreditNoteAttachmentById

    +

    Retrieves a specific attachment from a specific credit note using a unique attachment Id

    @@ -27319,17 +26662,17 @@

    getCreditNotes


    -
    /CreditNotes
    +
    /CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}

    Usage and SDK Samples

    -
    +
    using System;
     using System.Diagnostics;
     using Xero.NetStandard.OAuth2.Api;
    @@ -27338,27 +26681,24 @@ 

    Usage and SDK Samples

    namespace Example { - public class GetCreditNotesExample + public class GetCreditNoteAttachmentByIdExample { public async Task Main() { var accessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountingApi(); var xeroTenantId = "YOUR_XERO_TENANT_ID"; - var ifModifiedSince = DateTime.Parse("2020-02-06T12:17:43.202-08:00"); - var where = "Status==\"DRAFT\""; - var order = "CreditNoteNumber ASC"; - var page = 1; - var unitdp = 4; - var pageSize = 100; + var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000"); + var attachmentID = Guid.Parse("00000000-0000-0000-0000-000000000000"); + var contentType = "image/jpg"; try { - var result = await apiInstance.GetCreditNotesAsync(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); + var result = await apiInstance.GetCreditNoteAttachmentByIdAsync(accessToken, xeroTenantId, creditNoteID, attachmentID, contentType); Console.WriteLine(result); } catch (Exception e) { - Console.WriteLine("Exception when calling apiInstance.GetCreditNotes: " + e.Message ); + Console.WriteLine("Exception when calling apiInstance.GetCreditNoteAttachmentById: " + e.Message ); } } } @@ -27369,36 +26709,39 @@

    Scopes

    - - + + - - + +
    accounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoicesaccounting.attachmentsGrant read-write access to attachments
    accounting.transactions.readGrant read-only access to invoicesaccounting.attachments.readGrant read-only access to attachments

    Parameters

    -
    Header parameters
    +
    Path parameters
    - + - +
    Name Description
    xero-tenant-id*
    CreditNoteID* -
    +
    - String + UUID + + (uuid) +
    -Xero identifier for Tenant +Unique identifier for a Credit Note
    @@ -27409,41 +26752,44 @@

    Parameters

    If-Modified-Since
    AttachmentID* -
    +
    - Date + UUID - (date-time) + (uuid)
    -Only records created or modified since this timestamp will be returned +Unique identifier for Attachment object
    +
    + Required +
    -
    Query parameters
    +
    Header parameters
    - + - + - - - - - - - - - - - - @@ -27543,11 +26835,11 @@

    Parameters


    -
    -
    +
    +
    -

    getCurrencies

    -

    Retrieves currencies for your Xero organisation

    +

    getCreditNoteAttachments

    +

    Retrieves attachments for a specific credit notes

    @@ -27555,17 +26847,17 @@

    getCurrencies


    -
    /Currencies
    +
    /CreditNotes/{CreditNoteID}/Attachments

    Usage and SDK Samples

    -
    +
    using System;
     using System.Diagnostics;
     using Xero.NetStandard.OAuth2.Api;
    @@ -27574,23 +26866,22 @@ 

    Usage and SDK Samples

    namespace Example { - public class GetCurrenciesExample + public class GetCreditNoteAttachmentsExample { public async Task Main() { var accessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountingApi(); var xeroTenantId = "YOUR_XERO_TENANT_ID"; - var where = "Code==\"USD\""; - var order = "Code ASC"; + var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000"); try { - var result = await apiInstance.GetCurrenciesAsync(accessToken, xeroTenantId, where, order); + var result = await apiInstance.GetCreditNoteAttachmentsAsync(accessToken, xeroTenantId, creditNoteID); Console.WriteLine(result); } catch (Exception e) { - Console.WriteLine("Exception when calling apiInstance.GetCurrencies: " + e.Message ); + Console.WriteLine("Exception when calling apiInstance.GetCreditNoteAttachments: " + e.Message ); } } } @@ -27601,36 +26892,39 @@

    Scopes

    Name Description
    where
    xero-tenant-id* -
    +
    @@ -27451,19 +26797,22 @@

    Parameters

    -Filter by an any element +Xero identifier for Tenant
    +
    + Required +
    order
    contentType* -
    +
    @@ -27471,69 +26820,12 @@

    Parameters

    -Order by an any element -
    -
    -
    -
    -
    page - - -
    -
    -
    - - Integer - - -
    -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 -
    -
    -
    -
    -
    unitdp - - -
    -
    -
    - - Integer - - -
    -e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts -
    -
    -
    -
    -
    pageSize - - -
    -
    -
    - - Integer - - -
    -Number of records to retrieve per page +The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
    +
    + Required +
    - - + + - - + +
    accounting.settingsGrant read-write access to organisation and account settingsaccounting.attachmentsGrant read-write access to attachments
    accounting.settings.readGrant read-only access to organisation and account settingsaccounting.attachments.readGrant read-only access to attachments

    Parameters

    -
    Header parameters
    +
    Path parameters
    - +
    Name Description
    xero-tenant-id*
    CreditNoteID* -
    +
    - String + UUID + + (uuid) +
    -Xero identifier for Tenant +Unique identifier for a Credit Note
    @@ -27642,37 +26936,17 @@

    Parameters

    -
    Query parameters
    +
    Header parameters
    - - - - - + @@ -27692,29 +26969,29 @@

    Parameters


    -
    -
    +
    +
    -

    getEmployee

    -

    Retrieves a specific employee used in Xero payrun using a unique employee Id

    +

    getCreditNoteHistory

    +

    Retrieves history records of a specific credit note

    -

    This endpoint is deprecated and will be removed April 28, 2026

    +


    -
    /Employees/{EmployeeID}
    +
    /CreditNotes/{CreditNoteID}/History

    Usage and SDK Samples

    -
    +
    using System;
     using System.Diagnostics;
     using Xero.NetStandard.OAuth2.Api;
    @@ -27723,22 +27000,22 @@ 

    Usage and SDK Samples

    namespace Example { - public class GetEmployeeExample + public class GetCreditNoteHistoryExample { public async Task Main() { var accessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountingApi(); var xeroTenantId = "YOUR_XERO_TENANT_ID"; - var employeeID = Guid.Parse("00000000-0000-0000-0000-000000000000"); + var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000"); try { - var result = await apiInstance.GetEmployeeAsync(accessToken, xeroTenantId, employeeID); + var result = await apiInstance.GetCreditNoteHistoryAsync(accessToken, xeroTenantId, creditNoteID); Console.WriteLine(result); } catch (Exception e) { - Console.WriteLine("Exception when calling apiInstance.GetEmployee: " + e.Message ); + Console.WriteLine("Exception when calling apiInstance.GetCreditNoteHistory: " + e.Message ); } } } @@ -27749,13 +27026,13 @@

    Scopes

    Name Description
    where - - -
    -
    -
    - - String - - -
    -Filter by an any element -
    -
    -
    -
    -
    order
    xero-tenant-id* -
    +
    @@ -27680,9 +26954,12 @@

    Parameters

    -Order by an any element +Xero identifier for Tenant
    +
    + Required +
    - - + + - - + +
    accounting.settingsGrant read-write access to organisation and account settingsaccounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices
    accounting.settings.readGrant read-only access to organisation and account settingsaccounting.transactions.readGrant read-only access to invoices
    @@ -27766,11 +27043,11 @@

    Parameters

    Name Description - EmployeeID* + CreditNoteID* -
    +
    @@ -27781,7 +27058,7 @@

    Parameters

    -Unique identifier for a Employee +Unique identifier for a Credit Note
    @@ -27803,7 +27080,7 @@

    Parameters

    -
    +
    @@ -27826,29 +27103,29 @@

    Parameters


    -
    -
    +
    +
    -

    getEmployees

    -

    Retrieves employees used in Xero payrun

    +

    getCreditNotes

    +

    Retrieves any credit notes

    -

    This endpoint is deprecated and will be removed April 28, 2026

    +


    -
    /Employees
    +
    /CreditNotes

    Usage and SDK Samples

    -
    +
    using System;
     using System.Diagnostics;
     using Xero.NetStandard.OAuth2.Api;
    @@ -27857,7 +27134,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class GetEmployeesExample + public class GetCreditNotesExample { public async Task Main() { @@ -27865,16 +27142,19 @@

    Usage and SDK Samples

    var apiInstance = new AccountingApi(); var xeroTenantId = "YOUR_XERO_TENANT_ID"; var ifModifiedSince = DateTime.Parse("2020-02-06T12:17:43.202-08:00"); - var where = "Status==\"ACTIVE\""; - var order = "LastName ASC"; + var where = "Status==\"DRAFT\""; + var order = "CreditNoteNumber ASC"; + var page = 1; + var unitdp = 4; + var pageSize = 100; try { - var result = await apiInstance.GetEmployeesAsync(accessToken, xeroTenantId, ifModifiedSince, where, order); + var result = await apiInstance.GetCreditNotesAsync(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); Console.WriteLine(result); } catch (Exception e) { - Console.WriteLine("Exception when calling apiInstance.GetEmployees: " + e.Message ); + Console.WriteLine("Exception when calling apiInstance.GetCreditNotes: " + e.Message ); } } } @@ -27885,13 +27165,13 @@

    Scopes

    - - + + - - + +
    accounting.settingsGrant read-write access to organisation and account settingsaccounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices
    accounting.settings.readGrant read-only access to organisation and account settingsaccounting.transactions.readGrant read-only access to invoices
    @@ -27906,7 +27186,7 @@

    Parameters

    -
    +
    @@ -27929,7 +27209,7 @@

    Parameters

    -
    +
    @@ -27959,7 +27239,7 @@

    Parameters

    -
    +
    @@ -27979,7 +27259,216 @@

    Parameters

    -
    +
    +
    +
    + + String + + +
    +Order by an any element +
    +
    +
    +
    + + + + page + + + +
    +
    +
    + + Integer + + +
    +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 +
    +
    +
    +
    + + + + unitdp + + + +
    +
    +
    + + Integer + + +
    +e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts +
    +
    +
    +
    + + + + pageSize + + + +
    +
    +
    + + Integer + + +
    +Number of records to retrieve per page +
    +
    +
    +
    + + + + +
    +
    +
    +
    +
    +
    +

    getCurrencies

    +

    Retrieves currencies for your Xero organisation

    +
    +
    +
    +

    +

    +

    +
    +
    /Currencies
    +

    +

    Usage and SDK Samples

    +

    + +
    + +
    +
    using System;
    +using System.Diagnostics;
    +using Xero.NetStandard.OAuth2.Api;
    +using Xero.NetStandard.OAuth2.Client;
    +using Xero.NetStandard.OAuth2.Model;
    +
    +namespace Example
    +{
    +    public class GetCurrenciesExample
    +    {
    +        public async Task Main()
    +        {            
    +            var accessToken = "YOUR_ACCESS_TOKEN";          
    +            var apiInstance = new AccountingApi();
    +            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    +            var where = "Code==\"USD\"";
    +            var order = "Code ASC";
    +            
    +            try {
    +                var result = await apiInstance.GetCurrenciesAsync(accessToken, xeroTenantId, where, order);
    +                Console.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Console.WriteLine("Exception when calling apiInstance.GetCurrencies: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    +

    Scopes

    + + + + + + + + + + + + +
    accounting.settingsGrant read-write access to organisation and account settings
    accounting.settings.readGrant read-only access to organisation and account settings
    +

    Parameters

    +
    Header parameters
    + + + + + + + + + +
    NameDescription
    xero-tenant-id* + + +
    +
    +
    + + String + + +
    +Xero identifier for Tenant +
    +
    +
    + Required +
    +
    +
    +
    +
    Query parameters
    + + + + + + + + + + + - - -
    NameDescription
    where + + +
    +
    +
    + + String + + +
    +Filter by an any element +
    +
    +
    +
    +
    order + + +
    @@ -46139,204 +45628,6 @@

    Parameters

    -
    -
    -
    -
    -
    -
    -

    updateOrCreateEmployees

    -

    Creates a single new employees used in Xero payrun

    -
    -
    -
    -

    -

    This endpoint is deprecated and will be removed April 28, 2026

    -

    -
    -
    /Employees
    -

    -

    Usage and SDK Samples

    -

    - -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Xero.NetStandard.OAuth2.Api;
    -using Xero.NetStandard.OAuth2.Client;
    -using Xero.NetStandard.OAuth2.Model;
    -
    -namespace Example
    -{
    -    public class UpdateOrCreateEmployeesExample
    -    {
    -        public async Task Main()
    -        {            
    -            var accessToken = "YOUR_ACCESS_TOKEN";          
    -            var apiInstance = new AccountingApi();
    -            var xeroTenantId = "YOUR_XERO_TENANT_ID";
    -            var summarizeErrors = true;
    -            var idempotencyKey = "KEY_VALUE";
    -
    -            var employee = new Employee();
    -            employee.FirstName = "Nick";
    -            employee.LastName = "Fury";
    -
    -            var employees = new Employees();
    -            var employeesList = new List<Employee>();
    -            employeesList.Add(employee); 
    -            employees._Employees = employeesList;
    -            
    -            try {
    -                var result = await apiInstance.UpdateOrCreateEmployeesAsync(accessToken, xeroTenantId, employees, summarizeErrors, idempotencyKey);
    -                Console.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Console.WriteLine("Exception when calling apiInstance.UpdateOrCreateEmployees: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    -

    Scopes

    - - - - - - - -
    accounting.settingsGrant read-write access to organisation and account settings
    -

    Parameters

    -
    Header parameters
    - - - - - - - - - - - - - -
    NameDescription
    xero-tenant-id* - - -
    -
    -
    - - String - - -
    -Xero identifier for Tenant -
    -
    -
    - Required -
    -
    -
    -
    Idempotency-Key - - -
    -
    -
    - - String - - -
    -This allows you to safely retry requests without the risk of duplicate processing. 128 character max. -
    -
    -
    -
    -
    -
    Body parameters
    - - - - - - - -
    NameDescription
    employees * -
    -
    - - Employees - -
    - Employees with array of Employee object in body of request -
    -
    -
    - Required -
    -
    - -
    -
    Query parameters
    - - - - - - -
    NameDescription
    summarizeErrors - - -
    -
    -
    - - Boolean - - -
    -If false return 200 OK and mix of successfully created objects and any with validation errors -
    -
    -
    -
    -
    diff --git a/docs/files/index.html b/docs/files/index.html index 4fbd8c50..73bfaa8d 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -881,6 +881,16 @@ "description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.", "example" : 12357 }, + "CreatedDateUtc" : { + "type" : "string", + "description" : "The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.", + "format" : "date-time" + }, + "AssociationDateUtc" : { + "type" : "string", + "description" : "The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.", + "format" : "date-time" + }, "FileId" : { "type" : "string", "description" : "The unique identifier of the file",