Cart and Checkout Validation API reference
The Cart and Checkout Validation API enables you to provide your own validation of a cart and checkout. The API includes two key objects:
Input object is the complete schema that your function can receive as input.
The following example shows an input query:
The following example shows the resulting input to the query:
FunctionResultAnchor link to section titled "FunctionResult"
FunctionResult object is the shape of the function's output.
The following function result shows errors that block a customer from proceeding through checkout.