RCG Inventory Process API - Implementation Template
Data mappings
This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.
| Module | Description |
|---|---|
| get-inventory-by-productId-and-storeId | Get Real time Inventory response mapping |
| put-inventory-payload-to-b2c | Update RealTime Inventory in B2C |
get-inventory-by-productId-and-storeId
Get Real time Inventory response mapping
Source:
./src/main/resources/dwl/get-inventory-by-productId-and-storeId.dwl
Mapping Tables
Maps Inventory Availability Response
| B2C | CIM | Description |
|---|---|---|
| id | productId | The product identifier |
| productId | productId | The product identifier |
| locationType | locationType | Location Type |
| locationId | b2cStoreId | B2C Inventory identifier |
| quantityInStock | quantityInStock | Quantity available for a Product |
put-inventory-payload-to-b2c
Update RealTime Inventory in B2C
Source:
./src/main/resources/dwl/put-inventory-payload-to-b2c.dwl
Mapping Tables
Maps Inventory Availability to B2C update request
| B2C CIM | CIM | Description |
|---|---|---|
| id | id | The product identifier |
| productId | productId | The product identifier |
| locationType | locationType | Location Type |
| locationId | locationId | B2C Inventory identifier |
| quantityInStock | quantityInStock | Quantity available for a Product |