OMS Stock Flow
Last updated
Was this helpful?
Last updated
Was this helpful?
The OMS Stock Flow facilitates the retrieval of stock information for specified SKU values from ERP systems. This flow operates exclusively in outbound mode.
Outbound OMS Stock Flow means the flow is triggered externally by an OMS system to query stock data. The OMS system sends a request containing one or more SKU values to the flow. Upon receiving the request, the flow queries the ERP system for stock information corresponding to the requested SKUs. The result includes stock quantities for each product across all relevant stock locations.
The retrieved stock data is then formatted and sent back to the OMS system, ensuring accurate and up-to-date inventory details for effective order and inventory management.
Because OMS Stock flow runs with outbound methods and directly responds with the result it doesn’t have any logging mechanism, the error information will be returned with the response if it exists.
Outbound Flow: Signifies that flow will only run when it is queried, when queried the OMS Stock flow will query the requested skus from ERP and will respond with the result or errors.
Login Step: Handles logging into (if configured) the ERP system.
Pre Script Step: Used for preparing request data required for ERP system, this is the script used for preparing request body for post requests.
Read Data From ERP Step: ERP request(s) are made in this step.
Post Script Step: Used for transforming the ERP response data into a format that can be understood and processed by the OMS.
Outbound Request URL: Is an unchangeable field which should be entered to OMS systems to use the OMS Stock Flow.
SKU Query String Key: The HTTP parameter used by Integrator while querying the ERP system with a GET request.
Pre Script: This is a Python script field used to prepare required data for querying ERP systems, this script step is mostly used for ERP Systems that require a POST request for querying stocks to prepare the request body. The query parameters set by OMS can be accessed using http.query.string
attribute.
Post Script: This is a python script field used to parse ERP query response and transform it to the structure expected by OMS.
Endpoint URL: API URL that should be used for querying stocks from the ERP systems.
HTTP Method: HTTP method used while querying the Endpoint URL.
ERP API Accepted SKU Count: This setting determines whether multiple SKUs can be queried from the ERP system in a single request. If "single" is selected, the system will generate a separate query for each SKU value requested by the OMS. For requests using the POST HTTP method, the output of the Pre Script step should be an array of request bodies, which the Integrator will split, sending an individual request for each array element. If "multiple" is selected, only one query will be made to the Endpoint URL for each OMS request, regardless of the number of SKUs.
Extra Params: This string will be added to the SKU values while querying the ERP system. Value of this field should be a HTTP parameter string, ie. channel=shop&transfer=1