"type" change in catalog.version.updated webhook

We recently updated our webhook version to version 2023-10-18 from 2023-06-08 and noticed our catalog sync function was no longer firing. Upon inspection we found that at some point Square changed the “type” field value in the “data” object that is sent in a catalog.version.updated hook from “catalog” to “catalog_updated”. This isn’t a huge problem as we can easily adapt our code for this change, but I don’t see it listed in any changelog.

Even the docs for this webhook don’t reflect that change in the provided example.

Was this an oversight or should we not be relying on this field to be consistent, and is there any other undocumented changes in webhook data structure that we should be aware of?

Thanks for bringing this to our attention. I’ve reached out to the team about this. :slightly_smiling_face: