# Location.updated webhook not working in sandbox but working fine in production env

**URL:** <https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409>\
**Category:** Questions\
**Tags:** webhooks-api, locations-api\
**Created:** [October 31, 2024, 8:37pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409 "2024-10-31T20:37:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [October 31, 2024, 8:37pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/1 "2024-10-31T20:37:02Z")

</div>

We have a Square account (lets call it A) which is connected to our application and whenever a merchant links there Square account with us, we take the necessary permissions to `ORDERS_READ+ITEMS_READ+MERCHANT_PROFILE_READ+PAYMENTS_READ+ORDERS_WRITE+PAYMENTS_WRITE` to create order, create payments and read merchant details etc from their Square account.  
Now recently on Square account A, I had enabled the `locaton.updated` subscription for Square to trigger our entered webhook URL whenever a merchant edits any location details.  
I did this first on sandbox env and initially it was working fine then after a few days I also enabled it on production and over there as well its working fine. But now since last week it has randomly stopped working for sandbox env. Square doesn’t trigger the webhook URL when any change to the location is made. It still works on production.  
We are using API version 2022-08-23.  
The Signature key and everything else is setup correctly. We also have subscribed to events like `catalog.version.updated` which are working fine on both sandbox and prod.  
What could be the issue here?  
I tried to unsubscribe and subscribe to the `location.updated` webhook on sandbox but still no luck.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 31, 2024, 8:37pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/2 "2024-10-31T20:37:18Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Locations API](https://developer.squareup.com/docs/locations-api/how-it-works)**
>
> Learn how to use a Square API to update and retrieve location information for a Square seller.

> **[Locations API](https://developer.squareup.com/docs/locations-api)**
>
> Learn how to use a Square API to update and retrieve location information for a Square seller.

> **Additional Documentation**
>
> [Locations API](https://developer.squareup.com/docs/locations-api/cookbook/get-locations)  
> [Payments API Webhooks](https://developer.squareup.com/docs/payments-api/webhooks)  
> [Catalog API Webhooks](https://developer.squareup.com/docs/catalog-api/webhooks)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [October 31, 2024, 8:39pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/3 "2024-10-31T20:39:44Z")

</div>

no this didn’t solve the issue.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 31, 2024, 8:51pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/4 "2024-10-31T20:51:39Z")

</div>

What changes to the location were you listening to? 🙂

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [October 31, 2024, 10:10pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/5 "2024-10-31T22:10:31Z")

</div>

Any type of change. I tried with business hours, location name, location image etc but its not triggering the webhook

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 31, 2024, 11:46pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/6 "2024-10-31T23:46:16Z")

</div>

What’s your application ID? 🙂

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [November 1, 2024, 12:01am UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/7 "2024-11-01T00:01:11Z")

</div>

its sq0idp-TcUjud5cVASXQhjSfR8vRw  
(I hope you meant this)  
There is one more called Application ID which starts with sandbox but I believe thats Client ID.  
Do you want me to share that instead?

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [November 1, 2024, 6:33pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/8 "2024-11-01T18:33:57Z")

</div>

following up on this

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 1, 2024, 6:47pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/9 "2024-11-01T18:47:30Z")

</div>

I was able to replicate this and have reached out to the team. 🙂

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [November 1, 2024, 7:06pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/10 "2024-11-01T19:06:13Z")

</div>

thank you. hoping for a quick resolution.

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [November 6, 2024, 7:52pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/11 "2024-11-06T19:52:03Z")

</div>

following up on this.

---

<div class="post-metadata">

**Author:** ![Lance-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/lance-square/32/2704_2.png) [@Lance-Square](https://developer.squareup.com/forums/u/Lance-Square)\
**Post date:** [November 6, 2024, 7:59pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/12 "2024-11-06T19:59:39Z")

</div>

Found Bryan’s reach out to the Square team. Team’s noted that they deployed a fix EOD Friday, Nov 1st. Please test it out and let us know if it worked!

---

<div class="post-metadata">

**Author:** ![chinmaykhamkar](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@chinmaykhamkar](https://developer.squareup.com/forums/u/chinmaykhamkar)\
**Post date:** [November 6, 2024, 11:05pm UTC](https://developer.squareup.com/forums/t/location-updated-webhook-not-working-in-sandbox-but-working-fine-in-production-env/19409/13 "2024-11-06T23:05:04Z")

</div>

yeah it worked. Thanks a lot!!
