TenantId
Xero Workflow Max Tenant ID.
Data Type
string
Default Value
""
Remarks
If for any reason you are trying to use an AccessToken to authenticate you should note that the Xero authentication requires a tenant id to be passed as a header for each API Request.
Retrieve the TenantId using the GetOAuthAccessToken stored procedure.
Alternatively, you may retrieve the TenantId as follows:
- Create a new request in an API Development tool like Postman.
- Set the URL to https://api.xero.com/connections
- Set Authorization header to "Bearer " + access_token and finally execute the request.
- The response will show 1 or more connection informations to Xero.
- Find the connection which has "tenantType": "WORKFLOWMAX" and get its TenantId.
- Set this connection property to the newly acquired TenantId.