Page 1 of 2

WebHook API header.

PostPosted: Mon Jul 01, 2024 3:42 pm
by Ernst
The web company have added a Web Hook Header, which I can see in the sy_webhooksubscriptionHeader table, But he says he is not getting them. Ive switch logging on. Is there a way I can check if this was passed, Is there a log file I can see?

RecID SY_WebhookSubscription_RecID Name Value
6ECBC3F1-7F1A-4A11-A7D2-19DA3FF95CFB 5B02FD6C-1C2E-4255-ACF0-27740559AA55 koda-jiwa-webhook-auth TEMPORARY AUTH VALUE
3CA4CADF-5579-4907-A027-8D78809BF44F 5B02FD6C-1C2E-4255-ACF0-27740559AA55 content-type application/json


Above is the header, table .

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 3:43 pm
by Ernst
PS On JIWA721 Service Pack 20, with API plugin 7.2.1.66

Re: WebHook API header.  Topic is solved

PostPosted: Mon Jul 01, 2024 5:27 pm
by SBarnes
The simplest way would be to temporarly repoint the hooks to some where like https://webhook.site/ and see what you get, or run a tool like fiddler (https://www.telerik.com/fiddler) and intercept the traffic although that is problematic if you are using ssl.

Option 1 is the simplest.

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:15 pm
by Mike.Sheen
If you turn on DebugMode, the request logs folder is created and contains a CSV log for every day of the requests, which includes the request headers.

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:18 pm
by Ernst
Hi Mike, Yip I was hoping I could pick it up in the log, but where will the log be written to?

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:21 pm
by Mike.Sheen
Ernst wrote:Hi Mike, Yip I was hoping I could pick it up in the log, but where will the log be written to?


I did say it was in the requestlogs folder - it creates a CSV file for each day in there.

Where is the requestlogs folder? In the same folder the service executable is in - your %Program Files (x86)%\Jiwa Financials\Jiwa 7 folder.

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:25 pm
by Mike.Sheen
Sorry Ernst - brain fart on my part - webhooks don't log their requests to CSV, only normal requests of the Jiwa API.

Follow Stuarts suggestion and use something like webhook.site, or Fiddler.

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:30 pm
by Ernst
OK I found it, I guess its the headers column, and Yip those extra headers added, have not been sent. Can you see them.

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:31 pm
by Ernst
The webhook is there..

Re: WebHook API header.

PostPosted: Mon Jul 01, 2024 6:31 pm
by Mike.Sheen
Ernst wrote:OK I found it, I guess its the headers column, and Yip those extra headers added, have not been sent. Can you see them.


See my previous. This log is not a log of webhook events, unless you stood up a second Jiwa API to receive the webhooks, and this is the log from that second API.