--- 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' metadata: effectiveApiVersion: 2025-07 affectedApi: - displayName: Functions handle: functions-api primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2025-04-24T17:34:19-04:00' postedAt: '2025-05-21T08:00:00-04:00' updatedAt: '2025-05-19T13:46:40-04:00' effectiveAt: '2025-05-21T12:00:00-04:00' --- 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.