I have a Zoho Creator application. I have successfully scripted to make API calls from my ZC app to my Square app to create customers, orders and invoices. Now I want to receive data from Square back to Zoho Creator upon certain events via the Square webhook subscription.
I have created a new form in my ZC app (’…square-webhook’). I have listed the URL in the Square Dev portal → Webhooks → Add subscription. When I try to send a Test Event, I get a ‘401 Unauthorized’ error. Upon consulting with ZC documentation and support, a ZC requires an OAuth in the Header data of the webhook. I have set up the OAuth for my Square app in Zoho, and tested successfully in Postman.
My questions are:
- Is there any way to edit the Header data in the Square webhook, or to adjust the URL endpoint to include the required OAuth?
- Is there any way to add parameters to the URL endpoint so that the webhook body package gets input into a particular text field in my ZC app?
I am hoping this is not the case, as I have zero experience with Java… I guess I would also need to code that JS app to then make an API call to my ZC app to send the Square webhook body data?
Sorry for the long post, but hopefully this also helps anyone else out there with similar questions.
Thanks for any assistance.