Location webhook subscription fired when any square biz updates

Hey all – I’m am working on an app in which businesses can sell items from from their store. Many business have square integrations and I am running into a problem that when a business updates their location on Square, my database does not reflect the new locationId. Thus, the app breaks. I want to be able to have a webhook listen for whenever a specific business updates their location so I can update my database with the new locationID. Would the call be similar to non webhook api calls? Something like client.locationsApi.location.updated(). Thanks!

We have a locations webhook that you can subscribe to. If you subscribe to the location.created and location.updated events you’ll get all the notifications for a location update and creation. :slightly_smiling_face: