Those aren’t duplicate events. The first event for BTQFsU7kwgJCu00974Dz12QyCSjlahgjJHnHUv5mvMI
is for this payload:
{
"merchant_id": "MLB0M4PXGJ7GV",
"type": "order.fulfillment.updated",
"event_id": "6527f5b9-8cf9-33d0-841a-22be76a0bb59",
"created_at": "2023-11-17T04:24:33Z",
"data": {
"type": "order",
"id": "tNGQNRAPcPGgq73JHq9PTDg6yvFZY",
"object": {
"order_fulfillment_updated": {
"created_at": "2023-11-17T04:24:32.844Z",
"fulfillment_update": [
{
"fulfillment_uid": "vyysEynWxh3FS4dn4ai8cD",
"new_state": "PROPOSED"
}
],
"location_id": "LXE4FC194XMVZ",
"order_id": "tNGQNRAPcPGgq73JHq9PTDg6yvFZY",
"state": "OPEN",
"updated_at": "2023-11-17T04:24:32.844Z",
"version": 1
}
}
}
}
The second event Webhook 2 id: hCvDesLdBpmQ/LRgQprfSbz6MByJ1xTAd7KdT4iXkVc
is for this payload:
{
"merchant_id": "MLB0M4PXGJ7GV",
"type": "order.fulfillment.updated",
"event_id": "034cc0e0-b900-3716-8ba1-0674c964aa62",
"created_at": "2023-11-17T04:24:34Z",
"data": {
"type": "order",
"id": "tNGQNRAPcPGgq73JHq9PTDg6yvFZY",
"object": {
"order_fulfillment_updated": {
"created_at": "2023-11-17T04:24:32.844Z",
"fulfillment_update": [
{
"fulfillment_uid": "vyysEynWxh3FS4dn4ai8cD",
"new_state": "PROPOSED",
"old_state": "PROPOSED"
}
],
"location_id": "LXE4FC194XMVZ",
"order_id": "tNGQNRAPcPGgq73JHq9PTDg6yvFZY",
"state": "OPEN",
"updated_at": "2023-11-17T04:24:34.009Z",
"version": 3
}
}
}
}
The first is for version 1
of the order and the second is version 3
. There may not be a difference in the order webhook payload since the webhook doesn’t return the full order object. However if you RetrieveOrder
when you get the event you’ll see a difference in the full payload of the order returned by the API.