My Products
Help

Webhook received multiple times

by Anders_Traventus

It seems like we're receiving multiple webhooks from Visma.

 

We get the same subscription Id on three events as shown below.

 

Anders_Traventus_0-1665388898584.png

 

Anders_Traventus_1-1665388898588.png

 

8 REPLIES 8
Quan Pham
PARTNER

by Quan Pham

Hi,

 

We tried with webhook.site but the problem still remains.

 

Please see below.

 

Shipment_confirmed2.png

Shipment_confirmed1.png

  

Yıldırım
VISMA

by Yıldırım

Could you please send us your ClientID that you've generated the token with and used for the webhook subscription ? 

<developersupport@visma.com>

Yıldırım
VISMA

by Yıldırım (Updated ‎10-10-2022 10:42 by Yıldırım VISMA )

Please check the "webhook_notification" tab in the Financials ERP UI <Shipment - 091232 > to match the received notifications and compare the NotificationIDs by checking document status and date.  Shipments.jpg

Hi, Below is the notifications shown in Financials.

 

Anders_Traventus_0-1665402129708.png

 

Yıldırım
VISMA

Hi, 

Please share the received notifications in detail where the notificationID's can be seen so that those can be checked to see which of them returned or duplicated. Please also make sure you have a single subscription per ClientID for the specified company. (Subscription Endpoint)

documentation.jpg

Hi,

 

We’re only subscribing to shipment_changed once. We can’t go back to that specific webhook in our logs but please see below for examples were we receive webhooks twice for each shipment.

 

Oct 11 06:06:07 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:06.990327+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"cf13d313-04aa-44eb-ab7e-b5e714ff1e47","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091485","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091485,"status":"Open","timeStamp":638010975655570000}]

Oct 11 06:06:07 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:07.017929+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"cf13d313-04aa-44eb-ab7e-b5e714ff1e47","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091485","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091485,"status":"Open","timeStamp":638010975655570000}]

Oct 11 06:06:21 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:21.029212+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"bbd75c7b-e50d-4492-a35b-69bc233de66b","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091486","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091486,"status":"Open","timeStamp":638010975795900000}]

Oct 11 06:06:21 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:21.038152+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"bbd75c7b-e50d-4492-a35b-69bc233de66b","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091486","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091486,"status":"Open","timeStamp":638010975795900000}]

Oct 11 06:06:30 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:30.326558+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"6e27f340-cc69-4c3d-9992-1f2f67fd758b","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091487","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091487,"status":"Open","timeStamp":638010975894570000}]

Oct 11 06:06:30 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:30.336464+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"6e27f340-cc69-4c3d-9992-1f2f67fd758b","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091487","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091487,"status":"Open","timeStamp":638010975894570000}]

Oct 11 06:06:38 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:38.560025+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"a3ad0a51-ea72-49e8-af90-d7754b774ad7","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091488","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091488,"status":"Open","timeStamp":638010975981600000}]

Oct 11 06:06:38 CustomerAzure CustomerAzureFunctions/Run <14>1 2022-10-11T13:06:38.568720+00:00 CustomerAzure CustomerAzureFunctions Run - Webhook received: [{"notificationId":"a3ad0a51-ea72-49e8-af90-d7754b774ad7","contextId":"2054007","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/091488","resourceUri":https://integration.visma.net/API/controller/api/v1/shipment/091488,"status":"Open","timeStamp":638010975981600000}]
Yıldırım
VISMA

Hello, thanks for the information. 

 

This is working as expected in our tests, please see the details below. 

 

1) Shipment Status Open > Confirmed

Shipments.jpg2) Webhook notifications received

webhook.jpg

 

We'd recommend you trying this with another URL Listener by updating your subscription's webhookURL to see whether the issue might be related to the host.   

 

- https://webhook.site

 

Thanks.

Quan Pham
PARTNER

by Quan Pham

Hi,

 

We tried with webhook.site but the problem still remains.

 

Please see below.

 

Shipment_confirmed2.png

Shipment_confirmed1.png