Xero Custom API Request Auth Failure
Status: Open · Asked by kevin.boulware on · 0 views
I am attempting create a custom API request to Xero using "Xero Custom API Request". The standard Xero API requests work fine with the same connection.
I am wondering if it has to do with the fact that there is no way to specify the Organization ID in the Custom API Request. All the others require this selection. I attempted to add the Organization as a parameter, but that did not work.

Hi @kevin.boulware,
Could you please share the API documentation and the cURL command for the endpoint you are trying to execute?
The API Documentation is located here: https://developer.xero.com/documentation/api/accounting/accounts for the specific request I am am performing.
I have not written this request in CURL as I was attempting to use the Pabbly interface to configure this request. A simple GET with no parameters to https://api.xero.com/api.xro/2.0/Accounts is all that I am trying to do, but the authentication is failing.
Hey @kevin.boulware
In your custom API request, you need to pass the `xero-tenant-id` for the organization in your header to ensure the authentication works correctly.
I have corrected it, and now the action step is successfully retrieving the account in the response.
Hey @kevin.boulwareIn your custom API request, you need to pass the `xero-tenant-id` for the organization in your header to ensure the authentication works correctly.
I have corrected it, and now the action step is successfully retrieving the account in the response.
i am also facing same issue, How to get tenat id from xero and should i include it in headers
i am also facing same issue, How to get tenat id from xero and should i include it in headers
Please review the Xero API reference and ensure to include the tenant ID in the header field.
https://developer.xero.com/documentation/api/accounting/accounts