listInventoriesForLargeCart
post
/ccstore/v1/inventories
List Inventories. List inventories information for the comma seperated variants or products. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
Root Schema : listInventoriesForLargeCart_request
Type:
Show Source
object
-
catalogId:
string
ID of the catalog.
-
ids(required):
string
ID of the element to get inventory information for.
-
ignoreMissingIds:
boolean
Flag to indicate if missing ids has to be ignored. Default value is false.
-
includeDefaultLocationInventory:
boolean
If set to true then inventory detail not associated with any particular location will be included alongside the location specific inventory details
-
locationIds:
string
A comma-separated list of location IDs for which inventory detail information is to be retrieved
-
type:
string
Type of data whose inventory information it to be retrieved. The options are "product" and "variant". Defaults to "variant".
Example:
{
"ids":"Sku_18Dyii,camerasku_1_1"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listInventoriesForLargeCart_response
Type:
Show Source
object
-
example with locationIds:
object example with locationIds
Result object with locationIds.
-
example without locationIds:
object example without locationIds
Result object without locationIds.
Nested Schema : example with locationIds
Type:
object
Result object with locationIds.
Show Source
-
If the selected case was a product.:
object If the selected case was a product.
Result object if type is product.
-
If the selected case was a variant.:
object If the selected case was a variant.
Result object if type is variant.
Nested Schema : example without locationIds
Type:
object
Result object without locationIds.
Show Source
-
If the selected case was a product.:
object If the selected case was a product.
Result object if type is product.
-
If the selected case was a variant.:
object If the selected case was a variant.
Result object if type is variant.
Nested Schema : If the selected case was a product.
Type:
object
Result object if type is product.
Show Source
-
childSKUs:
array childSKUs
List of SKU's for the product.
-
id:
string
The ID of the product.
-
stockStatus:
string
The current stock status of the product (inStock or outOfStock).
-
totalStockLevel:
integer
The total stock level of the product.
Nested Schema : If the selected case was a variant.
Type:
object
Result object if type is variant.
Show Source
-
displayName:
string
The display name of the SKU.
-
locationInventoryInfo:
array locationInventoryInfo
Location specific inventory information
-
skuId:
string
The SKU ID of the SKU.
-
skuNumber:
string
The SKU number of the SKU.
Nested Schema : items
Type:
Show Source
object
-
displayName:
string
The display name of the SKU.
-
locationInventoryInfo:
array locationInventoryInfo
Location specific inventory information
-
skuId:
string
The SKU ID of the SKU.
-
skuNumber:
string
The SKU number of the SKU.
Nested Schema : locationInventoryInfo
Type:
array
Location specific inventory information
Show Source
Nested Schema : items
Type:
Show Source
object
-
availabilityDate:
string
The date when the SKU will be available.
-
availabilityStatus:
integer
The availability status of the child SKU.
-
availabilityStatusMsg:
string
The current availability status of the child SKU.
-
availableToPromise:
string
The available to promise of the child SKU.
-
backorderLevel:
integer
The back-order level of the child SKU.
-
backorderThreshold:
integer
The back-order threshold of the child SKU.
-
inventoryId:
string
The inventory ID of the SKU.
-
locationId:
string
The location ID of the child SKU.
-
preorderLevel:
integer
The pre-order level of the child SKU.
-
preorderThreshold:
integer
The pre-order threshold of the child SKU.
-
stockLevel:
integer
The stock level of the SKU.
-
stockThreshold:
integer
The stock threshold of the child SKU.
Nested Schema : locationInventoryInfo
Type:
array
Location specific inventory information
Show Source
Nested Schema : items
Type:
Show Source
object
-
availabilityDate:
string
The date when the SKU will be available.
-
availabilityStatus:
integer
The availability status of the child SKU.
-
availabilityStatusMsg:
string
The current availability status of the child SKU.
-
availableToPromise:
string
The available to promise of the child SKU.
-
backorderLevel:
integer
The back-order level of the child SKU.
-
backorderThreshold:
integer
The back-order threshold of the child SKU.
-
inventoryId:
string
The inventory ID of the SKU.
-
locationId:
string
The location ID of the child SKU.
-
preorderLevel:
integer
The pre-order level of the child SKU.
-
preorderThreshold:
integer
The pre-order threshold of the child SKU.
-
stockLevel:
integer
The stock level of the SKU.
-
stockThreshold:
integer
The stock threshold of the child SKU.
Nested Schema : If the selected case was a product.
Type:
object
Result object if type is product.
Show Source
-
childSKUs:
array childSKUs
List of SKU's for the product.
-
id:
string
The ID of the product.
-
stockStatus:
string
The current stock status of the product (inStock or outOfStock).
-
totalStockLevel:
integer
The total stock level of the product.
Nested Schema : If the selected case was a variant.
Type:
object
Result object if type is variant.
Show Source
-
availabilityDate:
string
The date when the SKU will be available.
-
availabilityStatus:
integer
The availability status of the child SKU.
-
availabilityStatusMsg:
string
The current availability status of the child SKU.
-
availableToPromise:
string
The available to promise of the child SKU.
-
backorderLevel:
integer
The back-order level of the child SKU.
-
backorderThreshold:
integer
The back-order threshold of the child SKU.
-
displayName:
string
The display name of the SKU.
-
inventoryId:
string
The inventory ID of the SKU.
-
locationId:
string
The location ID of the child SKU.
-
preorderLevel:
integer
The pre-order level of the child SKU.
-
preorderThreshold:
integer
The pre-order threshold of the child SKU.
-
skuId:
string
The SKU ID of the SKU.
-
skuNumber:
string
The SKU number of the SKU.
-
stockLevel:
integer
The stock level of the SKU.
-
stockThreshold:
integer
The stock threshold of the child SKU.
Nested Schema : items
Type:
Show Source
object
-
availabilityDate:
string
The date when the SKU will be available.
-
availabilityStatus:
integer
The availability status of the child SKU.
-
availabilityStatusMsg:
string
The current availability status of the child SKU.
-
availableToPromise:
string
The available to promise of the child SKU.
-
backorderLevel:
integer
The back-order level of the child SKU.
-
backorderThreshold:
integer
The back-order threshold of the child SKU.
-
displayName:
string
The display name of the SKU.
-
inventoryId:
string
The inventory ID of the SKU.
-
locationId:
string
The location ID of the child SKU.
-
preorderLevel:
integer
The pre-order level of the child SKU.
-
preorderThreshold:
integer
The pre-order threshold of the child SKU.
-
skuId:
string
The SKU ID of the SKU.
-
skuNumber:
string
The SKU number of the SKU.
-
stockLevel:
integer
The stock level of the SKU.
-
stockThreshold:
integer
The stock threshold of the child SKU.
Example Response (application/json)
[
{
"preorderThreshold":0,
"backorderLevel":0,
"displayName":null,
"availabilityDate":null,
"availabilityStatusMsg":"inStock",
"stockThreshold":5,
"stockLevel":200,
"availableToPromise":null,
"skuNumber":"Sku_18Dyii",
"preorderLevel":0,
"locationId":null,
"translations":null,
"inventoryId":null,
"backorderThreshold":0,
"availabilityStatus":1000,
"skuId":"Sku_18Dyii"
},
{
"preorderThreshold":0,
"backorderLevel":0,
"displayName":null,
"availabilityDate":null,
"availabilityStatusMsg":"inStock",
"stockThreshold":5,
"stockLevel":100,
"availableToPromise":null,
"skuNumber":"camerasku_1_1",
"preorderLevel":0,
"locationId":null,
"translations":null,
"inventoryId":null,
"backorderThreshold":0,
"availabilityStatus":1000,
"skuId":"camerasku_1_1"
}
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code