Model 5 - Real-Time Inventory Availability at Add-to-Cart

Model 5 is appropriate when you want to minimize the risk of having a customer order a product that is not available. And have your Inventory Management System respond to real-time requests for product inventory status.

Model 5 requires customization.

Salesforce B2C Commerce calls the front-end system at add-to-cart for a real-time stock level check. The merchant keeps inventory data reasonably fresh, perhaps with a daily batch feed.

Note: This model doesn’t apply to implementations that use Salesforce Omnichannel Inventory.

If the following conditions exist:

  • There is an inventory list that is periodically refreshed.
  • ProductInventoryList.DefaultInStock = true

The result is that all products appear to be in stock until the customer attempts to add-to-cart. At this point, the customer can be notified that a product is partially or totally unavailable. B2C Commerce doesn't notify a customer of an availability issue at checkout. The storefront behavior is as follows.

Status Behavior
Available The product record appears in product detail, cart, and checkout views. The product can be ordered.
Backordered Not implemented
Pre-ordered Not implemented
Not available Not implemented