Accelerator Product Availability LWC - Source
home
This API specification is a component of MuleSoft Accelerator for Retail, which accelerates implementation of essential integration use cases such as customer profile sync, order sync, and products sync across commerce, marketing, CRM, ERP, and OMS applications.
The Lightning Web Component (LWC) can be used as a UI for displaying data from APIs delivered with Mule, which:
- Displays an inventory check button to perform an available-to-promise check against SAP
- Is written generically to support Inventory check and update Available Quantity, ProductId, and Location
Component layout
The LWC is comprised of one visual element, which can be added to a record detail view page:
- When clicked, the lightning button retrieves the stock inventory for all the stores
Mule App formatting notes
The format of the input data is critical in order for the LWC to render correctly. The API should return a JSON object with the following minimum fields:
productId
— Product CodequantityInStock
— Quantity of Product available in SAPStoreId
— Location of the store