I am trying to use the Xero API Request action in Zapier and een though I have specified my Xero organisation in the setup step of the action I keep getting this error:
Failed to create a http request in Xero Please select an organization to perform this step on.
I saw that other have struggled with this issue in the past but have not been able to find a solution. Can anyone help please?
cheers, -tomek
Best answer by Sparsh from Automation Jinn
Hey @GroundswellProperty,
It’s because you are not passing xero tenant id. Try adding xero-tenant-id in additional request headers to see if it works.
If it still doesn’t work, I would recommend testing in something like Postman. You can also try to use Webhooks in Zapier custom request action instead of API request to query the API. Here is a helpful article about it here- https://help.zapier.com/hc/en-us/articles/8496326446989-Send-webhooks-in-Zaps. Hope it helps!
It’s because you are not passing xero tenant id. Try adding xero-tenant-id in additional request headers to see if it works.
If it still doesn’t work, I would recommend testing in something like Postman. You can also try to use Webhooks in Zapier custom request action instead of API request to query the API. Here is a helpful article about it here- https://help.zapier.com/hc/en-us/articles/8496326446989-Send-webhooks-in-Zaps. Hope it helps!
Hey @Sparsh from Automation Jinn . I got there in the end, Thanks for your reply. It was not obvious at all that tenant id needs to be added in the request headers. I assumed, incorrectly, that setting up Xero Account in the Setup step was enough to authenticate me. This is how all the other actions work.
Yay! 🎉 Thanks so much for sharing how you got on and for marking the answer @GroundswellProperty. Doing that helps to surface the solution to others that might be running into similar issues, so we really appreciate it! 🤗
And great work here @Sparsh from Automation Jinn - you were spot on about that missing xero tenant id header! 🙌