Skip to main content

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.

Was this section helpful?