The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

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.