You are here:
Cancel Cart Async Operation Action
In a B2B Commerce Checkout flow, cancel the current checkout so the user can return to an unlocked cart. This operation automatically executes when cart changes are invoked, such as add to cart.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
In a B2B Commerce Checkout flow, cancel the current checkout so the user can return to an unlocked cart. This operation automatically executes when cart changes are invoked, such as add to cart.
| Available in: Lightning Experience |
| View supported editions. |
In Flow Builder, add an Action element to your flow. Select the B2B
Commerce category, and search for Cancel Cart Async
Operation. To access this action from the API, use the name
cancelCartAsyncOperation.
Set Input Values:
Use values from earlier in the flow to set the inputs.
| Input Parameter | Description |
|---|---|
| cartId | The ID of the cart that transitions into a checkout. |
Error Conditions:
| Error Condition | Description |
|---|---|
| Cancel a Closed Cart | A cart can’t be canceled after it’s closed. Error Code: INVALID_OPERATION HTTP Status Code: 403 |
Usage:
To use the B2B Commerce Cancel Cart Async Operation, these requirements apply.
Closed.When the Cancel Cart Async Operation runs, these API interactions occur.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.