This section describes the rules and procedures to set up inventory as per your business needs.
.csv
file. For details, see the Update Product Information section. If you are already using fabric’s Product Catalog to maintain product information, ignore this step.onHand
counter value passed in the request body, availableToPurchase
(the virtual counter) quantity is calculated, based on the formula onHand- allocated- shipped- safetyStock
. safetyStock is also subtracted if you include safetyStock
value while creating inventory.POST/api-pim-external/product
for uploading details of a single product..csv
file, and upload the file using the POST/api-pim-external/product/bulk-insert
endpoint..csv
file. Before uploading the file, you must mention product details in the file.infiniteInventory
to ‘true’.customAttributes
to define any custom attributes that suit your business use case. For example, you can set BOPIS (Buy Online Pickup In Store) to true
if you are willing to allow shoppers to buy online and pick up an item from the store (based on location number).backOrderLimit
and preOrderLimit
while creating inventory, availableBackorder
and availablePreorder
virtual-counters are displayed in the response object with the same values as provided in the request body.safetyStock
and lowStock
fields while creating or updating inventory for better inventory management.onHand
counter value as passed in the request body, availableToPurchase
quantity is calculated based on the formula onHand-allocated-shipped
and displayed in the response object.onHand
counter from the request body to represent inventory that is currently available in the location to sell.onHand
counter to represent in-stock inventory.create location
API.onHand
counter to represent in-stock inventory.onHand
counter to represent in-stock inventory.PUT/api/v2/inventory/adjustment
endpoint to send a REST HTTP request to fabric Inventory for the change with the request body specifying SKU, locationNum, channel, and counter quantity that is either decremented or incremented.availableToPurchase
value is greater than zero, then calculate if the availabletoPurchase
quantity is greater than the safetyStock
value.
availableToPurchase
quantity is greater than 0, then display the item as in-stock.availableToPurchase
quantity is equal to 0 and availableBackorder
is greater than 0, then display the item as in-stock-for-backorder.availableToPreorder
is greater than 0, then display the item as in-stock-for-preorder, else display the item as out-of-stock.Backorder
or Preorder
item, then display the expected restock date (“backorderDate”) or expected product launch date (“preOrderDate”)