B2B Checkout Error Handling

If an error occurs during the checkout process, the Checkout flow routes the checkout to the error subflow. The error subflow then presents the user an error screen with an explanation.

When an error occurs, State is set to error, and NextState is set to null.

An error can occur during checkout for these reasons.

  • A checkout flow element contains errors.

  • The checkout flow API returns an HTTP error status.

  • The checkout async integration indicates that a background operation failed.

  • The checkout async integration contains write errors during execution to CartValidationOutput.