Skip to main content
Best answer

Xero API Request failing with "Please select an organization to perform this step on."

  • December 14, 2025
  • 5 replies
  • 25 views

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!

5 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • December 15, 2025

Hi ​@GroundswellProperty 

For us to have more info, post screenshots showing the Organization you selected and how the API request is configured in the Zap step.


Sparsh from Automation Jinn
Forum|alt.badge.img+6

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!


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.

Thank you for your help.


Sparsh from Automation Jinn
Forum|alt.badge.img+6

No worries. Glad it helped.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • December 17, 2025

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! 🙌