# Error: This merchant does not have a location with the ID

**URL:** <https://developer.squareup.com/forums/t/error-this-merchant-does-not-have-a-location-with-the-id/2252>\
**Category:** Questions\
**Created:** [April 6, 2021, 4:43pm UTC](https://developer.squareup.com/forums/t/error-this-merchant-does-not-have-a-location-with-the-id/2252 "2021-04-06T16:43:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mac](https://developer.squareup.com/forums/u/mac)\
**Post date:** [April 6, 2021, 4:43pm UTC](https://developer.squareup.com/forums/t/error-this-merchant-does-not-have-a-location-with-the-id/2252/1 "2021-04-06T16:43:33Z")

</div>

Hello!

I am reworking a call to the checkout API but getting an error saying “This merchant does not have a location with the ID…”

I’m signed into the API Explorer with my developer account and the application ID is properly populating the Access Token from the dropdown.

I’ve tried a few of my various locations pulled from the locations section of the Square Developer Portal, so not sure why it’s throwing this error?

Any ideas @sjosey?

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [April 6, 2021, 7:33pm UTC](https://developer.squareup.com/forums/t/error-this-merchant-does-not-have-a-location-with-the-id/2252/2 "2021-04-06T19:33:13Z")

</div>

Thanks for providing your app id, but I’m not seeing the above error with the `CreateCheckout` call. In fact, I see several successful checkouts being created over the last few hours. Can you clarify when you’re seeing this, or perhaps you’re using a sandbox application id instead?

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [April 6, 2021, 7:35pm UTC](https://developer.squareup.com/forums/t/error-this-merchant-does-not-have-a-location-with-the-id/2252/3 "2021-04-06T19:35:34Z")

</div>

Update: I did find your sandbox application id calling it, not your production application. However, you’re using a production `location_id`, and not your sandbox `location_id`.

---

<div class="post-metadata">

**Author:** ![mac](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mac](https://developer.squareup.com/forums/u/mac)\
**Post date:** [April 6, 2021, 9:05pm UTC](https://developer.squareup.com/forums/t/error-this-merchant-does-not-have-a-location-with-the-id/2252/4 "2021-04-06T21:05:01Z")

</div>

Thanks a lot for your response!

I was making calls to initialize the changes from my app itself, that would explain the calls you’re seeing.

I do like to use the API explorer first of course, so not sure how I overlooked using sandbox vs production `location_id`. Thanks again for all of your help with this and beyond.
