Receiving multiple webhook events with different event ids

Hi,

After simply changing an item name on Square dashboard item details page, we received multiple webhook events with different event ids and event different versions. We want to know is it a normal behavior? I know Square may create multiple events triggered by the same action, but will they have different catalog_versions. Do we have to handle the duplicate event on our side?

{
    "merchant_id": "2CT4H0PNMWTT1",
    "type": "catalog.version.updated",
    "event_id": "b7e688cf-9cbe-305b-8200-898211b279db",
    "created_at": "2023-03-29T13:29:47.265168191Z",
    "data": {
        "type": "catalog",
        "id": "",
        "object": {
            "catalog_version": {
                "updated_at": "2023-03-29T13:29:47.205Z"
            }
        }
    }
}

{
    "merchant_id": "2CT4H0PNMWTT1",
    "type": "catalog.version.updated",
    "event_id": "b26cb64e-d2af-3482-98ce-07acdfdf2570",
    "created_at": "2023-03-29T13:29:16.204639745Z",
    "data": {
        "type": "catalog",
        "id": "",
        "object": {
            "catalog_version": {
                "updated_at": "2023-03-29T13:29:16.13Z"
            }
        }
    }
}

It is possible that updating one field will cause multiple events. If there is an entirely different event that means that something else changed. Are you not seeing any difference between the versions? :slightly_smiling_face:

Not at all. Just a simple edit action will always trigger double events.

Are you possibly subscribed twice? :slightly_smiling_face:

You are right, thanks!