XeroAPI/Xero-Java

Custom Connection support for API calls

stuartclayton opened this issue · 2 comments

Currently all calls are validated to require the xeroTenantId. Are there plans to support the new Custom Connection that lack this header?

Hey @stuartclayton,

We have support for this in the SDK. In progress of updating the readme with proper examples ⛅
For now the approach is to setup the client_credentials grant and set an empty string on the xero_tenant_id header.

String xeroTenantId = "";
accountingApi.getContacts(accessToken,xeroTenantId)

Please re-open if you can't get it sorted and/or have feedback to improve the docs or the sample app!