import org.openapitools.client.api.*;
import org.openapitools.client.api.client.AccountingApi;
import org.openapitools.client.models.accounting.*;
@@ -26645,14 +27862,14 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
- UUID employeeID = UUID.fromString("00000000-0000-0000-0000-000000000000");
- UUID employeeID = '00000000-0000-0000-0000-000000000000';
+ UUID expenseClaimID = UUID.fromString("00000000-0000-0000-0000-000000000000");
+ UUID expenseClaimID = '00000000-0000-0000-0000-000000000000';
try {
- Employees result = apiInstance.getEmployee(accessToken, xeroTenantId, employeeID);
+ ExpenseClaims result = apiInstance.getExpenseClaim(accessToken, xeroTenantId, expenseClaimID);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling AccountingApi#getEmployee");
+ System.err.println("Exception when calling AccountingApi#getExpenseClaim");
e.printStackTrace();
}
}
@@ -26663,13 +27880,13 @@ Scopes
- | accounting.settings |
- Grant read-write access to organisation and account settings |
+ accounting.transactions |
+ Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
- | accounting.settings.read |
- Grant read-only access to organisation and account settings |
+ accounting.transactions.read |
+ Grant read-only access to invoices |
@@ -26680,11 +27897,11 @@ Parameters
Name |
Description |
- | EmployeeID* |
+
| ExpenseClaimID* |
-
+
@@ -26695,7 +27912,7 @@ Parameters
-Unique identifier for a Employee
+Unique identifier for a ExpenseClaim
@@ -26717,7 +27934,7 @@ Parameters
-
+
@@ -26740,11 +27957,11 @@ Parameters
-
-
+
+
- getEmployees
- Retrieves employees used in Xero payrun
+ getExpenseClaimHistory
+ Retrieves history records of a specific expense claim
@@ -26752,15 +27969,147 @@ getEmployees
- /Employees
+ /ExpenseClaims/{ExpenseClaimID}/History
Usage and SDK Samples
-
+
+ import org.openapitools.client.api.*;
+import org.openapitools.client.api.client.AccountingApi;
+import org.openapitools.client.models.accounting.*;
+
+import java.io.File;
+import java.util.*;
+
+public class AccountingApiExample {
+ private AccountingApi apiInstance;
+
+ public static void main(String[] args) {
+ String accessToken = "YOUR_ACCESS_TOKEN";
+ ApiClient defaultClient = new ApiClient();
+
+ apiInstance = AccountingApi.getInstance(defaultClient);
+ String xeroTenantId = 'YOUR_XERO_TENANT_ID';
+ UUID expenseClaimID = UUID.fromString("00000000-0000-0000-0000-000000000000");
+ UUID expenseClaimID = '00000000-0000-0000-0000-000000000000';
+
+ try {
+ HistoryRecords result = apiInstance.getExpenseClaimHistory(accessToken, xeroTenantId, expenseClaimID);
+ System.out.println(result);
+ } catch (XeroException e) {
+ System.err.println("Exception when calling AccountingApi#getExpenseClaimHistory");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+ Scopes
+
+
+
+ | accounting.transactions |
+ Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
+
+
+
+ | accounting.transactions.read |
+ Grant read-only access to invoices |
+
+
+
+ Parameters
+ Path parameters
+
+
+ | Name |
+ Description |
+
+ | ExpenseClaimID* |
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+Unique identifier for a ExpenseClaim
+
+
+
+ Required
+
+
+
+ |
+
+
+
+ Header parameters
+
+
+ | Name |
+ Description |
+
+ | xero-tenant-id* |
+
+
+
+
+
+
+
+ String
+
+
+
+Xero identifier for Tenant
+
+
+
+ Required
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ getExpenseClaims
+ Retrieves expense claims
+
+
+
+
+
+
+
+ /ExpenseClaims
+
+ Usage and SDK Samples
+
+
+
+
import org.openapitools.client.api.*;
import org.openapitools.client.api.client.AccountingApi;
import org.openapitools.client.models.accounting.*;
@@ -26779,14 +28128,14 @@ Usage and SDK Samples
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
OffsetDateTime ifModifiedSince = OffsetDateTime.parse("2020-02-06T12:17:43.202-08:00");
- String where = 'Status=="ACTIVE"';
- String order = 'LastName ASC';
+ String where = 'Status=="SUBMITTED"';
+ String order = 'Status ASC';
try {
- Employees result = apiInstance.getEmployees(accessToken, xeroTenantId, ifModifiedSince, where, order);
+ ExpenseClaims result = apiInstance.getExpenseClaims(accessToken, xeroTenantId, ifModifiedSince, where, order);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling AccountingApi#getEmployees");
+ System.err.println("Exception when calling AccountingApi#getExpenseClaims");
e.printStackTrace();
}
}
@@ -26797,13 +28146,13 @@ Scopes
- | accounting.settings |
- Grant read-write access to organisation and account settings |
+ accounting.transactions |
+ Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
- | accounting.settings.read |
- Grant read-only access to organisation and account settings |
+ accounting.transactions.read |
+ Grant read-only access to invoices |
@@ -26818,7 +28167,7 @@ Parameters
-
+
@@ -26841,7 +28190,7 @@ Parameters
-
+
@@ -26871,7 +28220,7 @@ Parameters
-
+
@@ -26891,7 +28240,7 @@ Parameters
-
+
@@ -26911,11 +28260,11 @@ Parameters
-
-
+
+
- getExpenseClaim
- Retrieves a specific expense claim using a unique expense claim Id
+ getInvoice
+ Retrieves a specific sales invoice or purchase bill using a unique invoice Id
@@ -26923,15 +28272,15 @@ getExpenseClaim
- /ExpenseClaims/{ExpenseClaimID}
+ /Invoices/{InvoiceID}
Usage and SDK Samples
-
+
import org.openapitools.client.api.*;
import org.openapitools.client.api.client.AccountingApi;
import org.openapitools.client.models.accounting.*;
@@ -26948,14 +28297,15 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
- UUID expenseClaimID = UUID.fromString("00000000-0000-0000-0000-000000000000");
- UUID expenseClaimID = '00000000-0000-0000-0000-000000000000';
+ UUID invoiceID = UUID.fromString("00000000-0000-0000-0000-000000000000");
+ UUID invoiceID = '00000000-0000-0000-0000-000000000000';
+ Integer unitdp = 4;
try {
- ExpenseClaims result = apiInstance.getExpenseClaim(accessToken, xeroTenantId, expenseClaimID);
+ Invoices result = apiInstance.getInvoice(accessToken, xeroTenantId, invoiceID, unitdp);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling AccountingApi#getExpenseClaim");
+ System.err.println("Exception when calling AccountingApi#getInvoice");
e.printStackTrace();
}
}
@@ -26983,11 +28333,11 @@ Parameters
Name |
Description |
| | | |
| |
- | ExpenseClaimID* |
+
| InvoiceID* |
-
+
@@ -26998,7 +28348,7 @@ Parameters
-Unique identifier for a ExpenseClaim
+Unique identifier for an Invoice
@@ -27020,7 +28370,7 @@ Parameters
-
+
@@ -27037,17 +28387,44 @@ Parameters
|
+ |
+
+
+ Query parameters
+
+
+ | Name |
+ Description |
+
+ | unitdp |
+
+
+
+
+
+
+
+ Integer
+
+
+
+e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
+
+
+
+
+ |