Skip to main content

About cart and checkout validation

Validation is the process of checking data against specified requirements. This guide introduces checkout validations and describes the available resources that you can use to build validations in Shopify checkout.


You can use Shopify Functions to create validations that ensure purchases meet certain criteria before a customer can check out or complete an order.

Validation functions run on Shopify's servers and can block checkout progress when business rules aren't met. For example, you can enforce order limits for new customers, prevent shipping to restricted locations, or ensure that loyalty program rules are properly applied.

Validation functions are available for online store carts, carts built for custom storefronts, and throughout the checkout process. They provide reliable enforcement of business logic that can't be bypassed by customers.


Follow these tutorials to get started with building validations in checkout.


Anchor to Developer tools and resourcesDeveloper tools and resources

Explore the following developer tools and resources to get familiar with building validations in checkout.


Was this page helpful?