Shipping Check Inventory
Overview
The Shipping Ckeck Inventory API allows to retrive the inventory details for the products at specific locations. By calling the /checkShippingInventory
endpoint of our next generation OMS with the POST/GET method, you can check the availability of the inventory available for shipping.
Request
Endpoint
URL: https://<host>/rest/s1/ofbiz-oms-usl/checkShippingInventory
This API uses our next generation OMS instance. All traditional instances have access to this next generation OMS by replacing "oms" with "maarg" in the host name.
Production
Current Name: demo-oms
Maarg Name: demo-maarg
Example: https://demo-maarg.hotwax.io/rest/s1/ofbiz-oms-usl/checkShippingInventory
UAT
Current Name: demo-uat
Maarg Name: demo-maarg-uat
Methods
GET: When passing params in the URL
POST: When passing JSON body in the request
Headers
Content-Type: application/json
Sample Request Body
Single product and facility
Using POST Method
Using GET Method
Multiple products and facilities
Using POST Method
Using GET Method
Body Parameters
Notes
Either
productIds
andinternalNames
value is required, If both values are passed, then the value ofproductIds
will be honored.This API does not necessarily require the
inventoryGroupId
andfacilityIds
, If both values are not provided API will return an inventory of products at all the locations.
Select Products
Products can be queried in the inventory API by both their HotWax ID or their internalName. The internal name refers to the UPC or SKU, whichever one is selected as a primary identifier during product configuration. While both fields are optional, one is required to obtain a result.
productStoreId
Product Store represents a brand in HotWax Commerce. To obtain possible values, log into HotWax Commerce and view the product store list page for possible values.
inventoryGroupId
Inventory groups are used to segregate inventory for different channels of sales. Obtain the inventory group ID by logging into HotWax Commerce Facilities App and browsing inventory groups.
Response
Status Code
HTTP/1.1 200 OK
Headers
Content-Type: application/json
Body
Success ATP Response
ATP zeroed out due to the inventory checks for products at locations
ATP zeroed out due to brokering being disabled for the channel globally
Possible decisionReason
explanation
decisionReason
explanationEach Decision Reason also comes with a detailed log of why the given check failed.
ProductStore - The facility ${facilityId} is not associated with Product Store ${productStoreId}.
Product Facility - The inventory for product ${productId} at facility ${facilityId} is not available.
Inventory Group - The facility ${facilityId} where the product ${productId} is located does not cater its inventory to that channel.
Inventory Group allowBrokering - Brokering of the product ${productId} for the inventory group ${inventoryGroupId} is not allowed globally.
Product Facility allowBrokering - The facility ${facilityId} where the product ${productId} inventory is located is disabled to cater to shipping orders.
Last updated