Fluent Commerce Logo
Docs
Sign In

Inventory Module Labs

Essential knowledge

Authors:

Esma Tuzovic, Cille Schliebitz, Anita Gu

Changed on:

14 Apr 2025

Overview

This article will allow you to apply the practical knowledge you've acquired related to inventory in this knowledge track course.

Key points

  • The page provides step-by-step instructions for:
    • Setting up Postman
    • Performing a full inventory load via Batch API
    • Checking stock on hand and available to sell quantities
    • Creating and applying a buffer to modify the ATS

Lab - Prepare Postman for Inventory Labs

In this task, you will prepare your Postman environment for the following hands-on practical lab.

Note: You will need your Training Account Environment file which is shared via email on enrolment.

Follow the steps below carefully.

Lab Steps:

  • Open Postman 
  • Click on Workspaces > Create new Workspace, set it to Personal (only you can access), and name it your Account ID - e.g: FCTRAINAU123)
  • Upload your environment file and the collection Fluent Learning: FN-IN1 Labs
  • Make sure you select the Environment file in the top right corner of the Postman window:
No alt provided

5.  Open the Fluent Learning: FN-IN1 Labs > Authenticate FC_FASHION Retailer

6.  Click on Fluent Auth - Retailer FC_Fashion and on the right panel, click on the blue SEND button on the top right

You should see a result like this:

No alt provided

7.  You are now ready to work through the labs.

8.  To complete this assignment, please copy and paste the auth response from postman into the submit response tab.  This will complete this assignment and allow you to move to the next task.


Lab - Full inventory load via batch, check stock on hand (SOH)/ available to sell (ATS)

In this lab, you will load an inventory file via the Fluent Batch API and learn how an inventory batch load gets processed by the Inventory Catalogue workflow.

The Workflow Engine will process the inventory batch events sent to the Inventory Catalogue workflow.

Subsequently, the Inventory Catalogue workflow will create or update the Inventory Position, the Last on Hand (LOH) quantity, calculate the SOH, and fire an event to notify the Virtual Catalogue workflow.

The Virtual Catalogue Workflow will then apply any relevant Controls (Buffers & Exclusions), calculate the ATS and create or update the Virtual Position.


Follow the steps below carefully.

Lab steps:

  • Open a web browser window and type the Fluent OMS URL for your account which looks like:
    `https://[YOUR_ACCOUNT_ID].sandbox.apps.fluentcommerce.com/oms/`
  • Login with your FC Fashion Retailer Admin user credential (username & password) which you will find in your environment file. Look for
    `fluent.retailer.fc_fashion.user.username`
    and
    `fluent.retailer.fc_fashion.user.password`
No alt providedNo alt provided
  • In Fluent OMS, go to Inventory > Inventory Catalogues
    • Click into the 
      `DEFAULT:1`
       Inventory Catalogue. You should see no inventory for the
      `F_HQ`
      ,
      `F_SYD`
      ,
      `F_NSYD`
      , and
      `F_MEL`
      locations. You may see some inventory for the
      `F_NBSYD`
      ,
      `F_ESYD`
      ,
      `F_NSSYD`
      ,
      `F_SSYD`
      , and
      `F_GFD`
      locations, as this was pre-loaded to your account.
    • Similarly, if you look at the Inventory > Virtual Catalogues, there should not be any data for the
      `F_HQ`
      ,
      `F_SYD`
      ,
      `F_NSYD`
      , and
      `F_MEL`
      locations.
  • Go to Postman. In left menu select: Fluent Learning: FN-IN1 Labs > Authenticate FC_FASHION Retailer > Fluent Auth - Retailer FC_FASHION, and click SEND to authenticate.
  • Next select:  FN-IN1-L01: Load Inventory via a Batch Job 
  • Select the first POST request: Create an Inventory Batch Job and click on the SEND button in right panel, top right - you should get a response with status 200 OK and in the body of the response an ID should be returned (the job id)
  • Then select second POST request: Create inventory Batch and click on the SEND button in right panel, top right. -  you should get a response with status 200 OK and in the body of the response an ID should be returned (the batch id)
  • Now go back to Fluent OMS and check your Inventory Catalogue and Virtual Catalogues again
    • ​You should notice that the 
      `F_HQ`
      ,
      `F_SYD`
      ,
      `F_NSYD`
      , and
      `F_MEL`
      locations all have Stock on Hand (SOH) in the Inventory Catalogue after a few short minutes.
No alt provided
  • You should notice that the 
    `F_HQ`
    ,
    `F_SYD`
    ,
    `F_NSYD`
    , and
    `F_MEL`
    locations all have Available to Sell (ATS) qualities in the Virtual Catalogue after a few short minutes.
No alt provided



Lab - Create and apply a buffer to modify ATS

In this lab you will learn how to create and apply a new control of type QUANTITY_BUFFER (i.e. safety stock quantity) for one of the variants at one location (AH8050-004 @ F_NSYD), and see the impact on the ATS.

Follow the steps below carefully.

Lab steps:

  • Go to Fluent OMS > Inventory > Control Groups. You should see a list of control groups that matches the list of Virtual Catalogues with references that are easy to associate each Virtual Catalogue.  Select CG:ATS:CC:1 and click on CREATE CONTROL.
  • Create New Control Fields:
    • Ref:
      `CG:ATS:CC:1:QUANTITY_BUFFER:AH8050-004:F_NSYD`
    • Type:
      `QUANTITY_BUFFER`
    • Name:
      `Safety Stock for AH8050-004 at F_NSYD`
    • Control Group Ref:
      `CG:ATS:CC:1`
    • Description:
      `Product Safety Control for AH8050-004 at Location F_NSYD`
    • Execution Order:
      `2`
    • Values:
      • Name:
        `CONTROL_VALUE`
      • Type:
        `CUSTOM`
      • SubType: 
        `NUMBER`
      • Value:
        `-3`
    • Click on SUBMIT button
No alt provided

8.   Click on the control you just created, then on the user action ACTIVATE.  This will change the Control Status to ACTIVE

No alt provided

9.  Now the control is fully active and will be applied to the ATS calculation next time there is an inventory update for the position(s) for which the control is applicable. Let’s simulate that by loading a new fresh inventory load:

  • Go to Postman > Fluent Learning: FN-IN1 Labs > FN-IN1-L03: Create a Buffer Control to adjust ATS > Load inventory to Recalculate with Buffers and click SEND
  • Check that the control has been applied to the associated position in the Virtual Catalogue VC:ATS:CC:1
No alt provided