Execution order of Shopify Validation functions

Topic summary

  • Topic: Unpredictable execution order between Shopify validation function extensions.

  • Issue: When using both Product Discount Validation (validates discount eligibility) and Cart and Checkout Validation (validates cart/checkout rules), their execution order varies. Sometimes Cart and Checkout Validation runs first, other times Product Discount Validation, leading to unreliable line item validation.

  • Current platform behavior: Shopify confirms there is no guaranteed execution order for functions at this time.

  • Impact: Developers cannot depend on a deterministic sequence or validate line items based on the results of another function.

  • Requests/feedback: A request was made for control over execution order (e.g., ability to set priorities). Shopify staff asked for more details to pass along to the Checkout team.

  • Status: No resolution or changes announced; remains an open feature request/ongoing discussion.

Summarized with AI on January 17. AI used: gpt-5.

Hello.
Is there any execution order of Shopify validation functions?
I am using both Product Discount Validation and Cart and Checkout Validation function extensions
But sometimes Cart and Checkout Validation is running initially, sometimes Product Discount Validation
So Cart and Checkout Validation cannot validate line item properly.

Thanks in advance

Hey @temurbek

We currently have no guarantees about the order of execution of functions.

Would love to pass along your feedback to the Checkout folks - can you elaborate on your use case?

Thank you for your response.

It would be great If there is control over Shopify Validation Functions execution order (I mentioned the use case in the question)