Hey,
We have a POS link handler, and we want to get the POS location ID as a part of the target URL, is this functionality possible?
A developer needs to retrieve the POS location ID and include it in a target URL when handling POS links.
Current Limitation:
Proposed Solutions:
GET /admin/api/2024-01/locations.json) to fetch all location IDs?location_id=XXXXXXXXXX)Requirements:
read_locations permission for API credentialsThe discussion remains open for further clarification or implementation examples.
Hey,
We have a POS link handler, and we want to get the POS location ID as a part of the target URL, is this functionality possible?
Hi @urigrise
I’ve read your question carefully, and I see that you’re trying to extract the POS location ID as part of the target URL when handling a POS link. I’ll break it down and provide the best approach to achieve this.
Shopify’s POS system assigns a unique Location ID to each physical store or sales point. If you need to retrieve this ID dynamically within a URL, the main challenge is whether Shopify’s system exposes this information within the POS app’s link structure.
Yes, you can retrieve the Location ID dynamically, but Shopify’s API doesn’t automatically append it to POS links. Instead, you’ll need to:
If you’re working with the Shopify Admin API, use this endpoint:
GET /admin/api/2024-01/locations.json
If you’re generating a URL dynamically, you can structure it like this:
https://your-pos-app.com/?location_id=XXXXXXXXXX
Let me know if you need further clarification or examples!
Best regards,
Daisy.