Best answer

Oauth 2.0 authorization and authentication for custom API webhook request

  • 22 July 2021
  • 3 replies
  • 1197 views

I’m creating a zap that requires a custom http request to Xero as I  have to get access to some nested JSON objects in the request. Is there a way to use our existing Xero connections to get  a current Access Token and use it in the zap python code, or just a way to Authorize the Zap to get the initial tokens. I don’t see a way to get to Xero’s consent screen or use an existing connection when you write a custom request as code or  as a webhook. The Webhook seems to just offer basic authentication. 

icon

Best answer by GetUWired 22 July 2021, 14:16

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +12

Hi @data_etl1 

No there is not a way to use your existing connection. Since the app is using Oauth 2.0 authentication, it would be best to build a custom integration here: https://developer.zapier.com/

 

Thank you GetUWired.  I tried that and kept getting an error . Any suggestions on resolving this. 

 

Userlevel 7
Badge +12

@data_etl1 

 

Yes, I would follow the instructions here; https://developer.xero.com/documentation/guides/oauth2/auth-flow/#xero-tenants 

 

the refresh token will only be included if you specify the scope offline_access