The headless Commerce API is the main programmatic interface with Omnichannel Inventory. To use it, configure authentication via Account Manager or set it up as an external client app.
You can access most of the same functionality using Connect in Apex or Connect REST API. In Salesforce Flow, you can call the Omnichannel Inventory invocable actions. Connect API and invocable actions don’t require configuration.
Note If you’re integrating Omnichannel Inventory with Salesforce B2C Commerce, use Account
Manager. Otherwise, set up the headless Commerce API as an external client app.
Note A flow that uses Omnichannel Inventory actions must have a runtime API version of 52.0 or
later. If possible, always use the latest API version in your flows.
Note When importing inventory availability records, the headless Commerce API supports a much
larger volume of data than Connect API does. Use the Commerce API for inventory availability
imports whenever possible.
Because these inventory API calls communicate across applications, best practice for handling errors is to implement retries.
For more information on headless Commerce API authentication, see Commerce API Authentication in the B2C Commerce API Guide.