Cart and Checkout Validation Function API overview
The Cart and Checkout Validation API allows developers to provide their own validation of a cart and checkout.
Example use cases
Anchor link to section titled "Example use cases"- Use tokengating or require a customer membership at checkout.
- Verify the age or ID of a customer when they proceed through checkout.
- Provide B2B product minimums, maximums, and multiples.
- Provide B2B location order minimums, maximums, or credit limits.
Specify quantity limits in a flash sale.
Developer tools and resources
Anchor link to section titled "Developer tools and resources"Limitations and considerations
Anchor link to section titled "Limitations and considerations"- This Function API isn't available for public apps. We will be providing additional support in upcoming releases.
- The Cart and Checkout Validation API doesn't currently support draft orders.
- Cart and Checkout Validation functions are cached. This can result in a delay (typically, less than one minute) between changes being made and those changes being live.
Shopify plans
Anchor link to section titled "Shopify plans"All plans: Stores on any plan can use public apps that are distributed through the Shopify App Store and contain Shopify Functions.
Shopify Plus: Only stores on a Shopify Plus plan can use custom apps that contain Shopify Function APIs.
- Learn how to use Shopify Functions by validating a cart and checkout.