Inventory Item Variance
Learn about managing inventory item variances in OMS with JSON feed format.
This feed is used to get the inventory variances logged for any products in OMS. The feed file format is JSON format. The feed file can be sent to external systems as is or can be transformed as per the format required by the external system.
Technical implementation
This feed is generated in the integration layer using a Moqui component. The integration component connects with OMS transactional database and fetches the required details for the inventory variances for a product using certain database views. These views are generated using OMS entities, and logic is implemented in the Moqui services to get inventory variances, and prepare the JSON in a fixed format. This JSON is then kept on a directory on SFTP.
A Service Job can be scheduled that will prepare the feed file and keep it on SFTP.
The service fetches the inventory variances after the last run of the service. This service saves the last run time of the service and in the next run fetches the records after the last run time so that sam inventory variances are sent again.
Configurable Parameters for the feed
The following configurable parameters are used for generating the inventory item variance feed.
daysBefore
This is used to generate the feed for n previous days from today.
fromDate
Used fetch records of Inventory Item Variance after a specific date.
This parameter corresponds to the physicalInventoryDate of PhysicalInventory entity.
thruDate
Used fetch records of Inventory Item Variance before a specific date.
This parameter corresponds to the physicalInventoryDate of PhysicalInventory entity.
jobName
The name of the scheduled job to fetch the last run time for preparing the feed.
parentFacilityTypeIds
This is a list of parent facility type ids for generating feed.
For generating the feed for a single parent facility type ids use values like - PHYSICAL_STORE
For generating the feed for multiple parent facility type ids use values like - PHYSICAL_STORE,DISTRIBUTION_CENTER
productStoreIds
This is a list of product store ids for generating feed.
For generating the feed for a single product store use values like - STORE_A
For generating the feed for multiple product stores use values like - STORE_A, STORE_B
skipLastRunTimeUpdate
skip the LastRunTime update, mainly used while debugging.
systemMessageRemoteId
The System Message Remote ID to send the Inventory Item Variance Feed.
systemMessageTypeId
The System Message Type ID for generating Inventory Item Variance Feed.
varianceReasonIds
This is a list of variance reason ids for generating the feed.
For generating the feed for a single variance reason id use values like - VAR_STOLEN
For generating the feed for multiple product stores use values like - VAR_STOLEN, VAR_DAMAGED
FTP location for Inventory Item Variance Feed
Sample Inventory Item Variance Feed JSON
Last updated