--- title: POS-specific Shopify Function logic - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/pos-specific-shopify-function-logic md: https://shopify.dev/changelog/pos-specific-shopify-function-logic.md --- [Back to Developer changelog](https://shopify.dev/changelog) May 21, 2025 Tags: * Functions * 2025-07 # POS-specific Shopify Function logic The new `retailLocation` field in the Function APIs allows you to tailor your logic based on whether a checkout is happening in a retail environment. This allows you to create different behaviors depending on the sales channel or even the specific retail store location. For example, you can implement location-specific discounts only for in-store purchases, creating differentiated experiences between online and retail customers. The `retailLocation` field is currently available in the unstable API version, and will be included in the stable 2025-07 API version.