Webhooks Created via JSON API Not Triggering Events as Expected
J
Josh Vermaire
ISN's JSON API's webhooks are not being triggered as expected. In using ISN's JSON API, specifically the webhooks resource, to provide events when certain inspection-related events occur, like ordercompleted, I'm finding that the webhooks are created successfully and I receive a webhook UUID in the response but the webhook does not trigger when an ordercompleted event occurs.
To provide more context:
Webhook Creation: After calling the POST /hooks endpoint (example below), I receive a successful response, confirming that the webhook has been created.
curl -X POST 'https://[DOMAIN]/[COMPANY KEY]/json/hooks?method=POST&type=ordercompleted&url=https://webhooks.surge.reviews/isn/jsonapi/ordercompleted' -u REDACTED_ACCESS_KEY:REDACTED_SECRET_ACCESS_KEY
Response Example:
{
"id": "f4ad1157-db13-49e8-bdb8-0a9237fe5f02",
"url": "https:\/\/webhooks.surge.reviews\/isn\/jsonapi\/ordercompleted",
"method": "POST",
"type": "Order Completed"
}
Issue with Event Triggering: Although I receive a success message for the webhook setup, no requests are being sent to my endpoint when orders are completed. I can confirm that orders have been completed, as webhooks set up manually in the ISN application interface trigger correctly for the same event type.
Steps Taken to Troubleshoot:
- Tried various URL encodings, added additional headers, and configuring different url formats without success.
- Confirmed that similar webhooks set up via the ISN UI (rather than the JSON API) trigger reliably, indicating a potential issue specific to API-created hooks.
Request for Assistance: Any insights into resolving this would be very helpful. Our goal is to support ISN customers better by enhancing functionality for their inspections and reviews. Let me know if any additional details or testing would be helpful on our end.
J
Josh Vermaire
Hello ISN,
Following up on this:
- No error messages are shown. I'm receiving a successful response when creating the webhook but no webhook events are ever sent to the provided url. I have confirmed this is true using the ISN user interface, I can create a webhook there and receive those events perfectly fine. Creating a webhook via the JSON API does not give me any events.
- I have tested this with both 'ordercompleted' and 'orderpaid' events and have seen the same behavior.
- I can reproduce this 100% of the time.
Are there others steps I'm missing (e.g. adding a configuration to allow my webhook domain)?
I'm assuming that any valid access_key/secret_access_key combination would receive all 'ordercompleted' events for the company key being used.
Is there anything else I should try?
Best,
Josh
L
Lindsay G - ISN Product
Josh Vermaire: Have you contacted ISN Support about this issue yet? This channel is meant for feature requests, not current technical issues. I'll let them know to look out for a message from you. help@inspectionsupport.net
J
Josh Vermaire
Lindsay G - ISN Product
I have. I have reached out to them a few times and was told to talk to the developers directly here. Is there a better way for me to reach them? I would think a very short conversation/thread would be able to resolve my issues.
L
Lindsay G - ISN Product
Josh Vermaire: I'm sorry, I might have misunderstood. Did this ever work as you expected it to or is this a new setup?
J
Josh Vermaire
Lindsay G - ISN Product
This is a new setup. I have gone through all the documentation and am trying to get everything to work. The webhook endpoint fits my primary use case. I would also ask for credentials to the Admin API and sandbox environment, if that’s possible.