My Products
Help
Stefan Hult
PARTNER

Webhook received multiple times when shipment is confirmed

by Stefan Hult

Hi

Refering to "Webhook received multiple times"

 

We have exactly the same problem as Anders at Taventus. Sometimes when the customer confirm a shipment on a Sales Order, Visma sends us two identical webhooks.

In the GUI we can only see one webhook has been sent.

 

I have tested this on different companies with the same result.  What I notice is that the error is intermittent. I can't find the reason why sometimes we get one webhook and sometimes two.

 

Just to give some example, I performed a test just before I sent this message.

This is the only event I have:

StefanHult_0-1673276305876.png

I created two sales order for the same customer and the same item. I shipped both of them and confirmed.

From the first one I got two webhooks, and for the second one I got one webhook.

 

This is the first confirmation, with the two webhooks and the messages from Visma GUI:

[{"notificationId":"22d61db4-3070-417f-b858-1271d7d2627d","contextId":"4011658","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/000028","resourceUri":"https://integration.visma.net/API/controller/api/v1/shipment/000028","status":"Confirmed","timeStamp":638088761818270000}]
[{"notificationId":"22d61db4-3070-417f-b858-1271d7d2627d","contextId":"4011658","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/000028","resourceUri":"https://integration.visma.net/API/controller/api/v1/shipment/000028","status":"Confirmed","timeStamp":638088761818270000}]

{"EntityId":"1d8ce3c5-6266-4557-90b9-6f6f9161eae5","NotificationId":"22d61db4-3070-417f-b858-1271d7d2627d","Event":"Shipment_Status_Changed","DocumentStatus":"Confirmed","TimeStamp":"638088761818270000","EntityLocation":"api/v1/shipment/000028"}

 

And the second one:

[{"notificationId":"2309d12e-c45c-49e2-8643-04d10dc2e14b","contextId":"4011658","event":"shipment_changed","relativeResourceUri":"api/v1/shipment/000029","resourceUri":"https://integration.visma.net/API/controller/api/v1/shipment/000029","status":"Confirmed","timeStamp":638088762659670000}]

{"EntityId":"e0bd2389-a439-4167-aeea-76603bac0945","NotificationId":"2309d12e-c45c-49e2-8643-04d10dc2e14b","Event":"Shipment_Status_Changed","DocumentStatus":"Confirmed","TimeStamp":"638088762659670000","EntityLocation":"api/v1/shipment/000029"}

And this is the details from Webhook.site:

StefanHult_1-1673277423272.png

 

Can you please look into case again, I'm sure other partner will run into the same problem.

 

/Stefan

1 REPLY 1
Yıldırım
VISMA

by Yıldırım

Hi Stefan, 

 

this case has already been conveyed to the development team and currently in the process of prioritization so that we'll be able to share more information once it's finalized.