Cart-to-order conversion and Order Summary records
Key Takeaway
In B2B LWR stores created in Spring '23 or later, checkout creates the Order and OrderSummary asynchronously after the buyer clicks "Place Order". Custom code must wait for that work, and a custom flow must not create its own OrderSummary.
When a buyer places an order in a B2B store, Salesforce converts the buyer's WebCart into an Order and then creates an OrderSummary for it. People work with the OrderSummary afterward, not the original Order. The timing matters to developers because the conversion can run after the buyer's click, so custom code can't assume the Order exists the moment the buyer clicks Place Order.
Three standard objects
Three standard objects carry an order through a B2B store.
- WebCart is the store's online shopping cart, with totals for products, shipping and handling, and taxes.
- Order is an order tied to a contract or an account.
- OrderSummary holds the current properties and state of an order, made up of the original Order and any change objects that apply to it.
The OrderSummary object is available in API version 48.0 and later, and only in Salesforce Order Management orgs or orgs with the B2B Commerce license enabled.