listInventories
get
/ccadmin/v1/inventories
List Inventories. Lists the inventories. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Query Parameters
- type
-
Type:
string
inventory type, either variant or product. defaults to variant
Header Parameters
- X-CCAsset-Language
-
Type:
string
The asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listInventories_response
- items
-
Type:
array
itemsAdditional Properties Allowed:Array having SKU of product. - limit
-
Type:
integer
Limit of number of products. - offset
-
Type:
integer
Offset of product inventory. - sort
-
Type:
array
sortAdditional Properties Allowed:Array having order and property of product inventory. - totalResults
-
Type:
integer
Total number of products.
Nested Schema : items
Nested Schema : sort
Nested Schema : items
Type:
object
- childSKUs
-
Type:
array
childSKUsAdditional Properties Allowed:List of child skus. - displayName
-
Type:
string
Display name of the product. - id
-
Type:
string
ID name of the product. - productNumber
-
Type:
string
Product number of the product. - stockStatus
-
Type:
string
Stock status of the product. - totalStockLevel
-
Type:
string
Total stock level of the product.
Nested Schema : childSKUs
Nested Schema : items
Type:
object
- availabilityDate
-
Type:
string
Availability date of SKU. Date format is an ISO standard such as yyyy-MM-dd. - availabilityStatus
-
Type:
integer
Availability status of SKU. - availabilityStatusMsg
-
Type:
string
Availability status message of SKU. - availableToPromise
-
Type:
string
Available to promise of SKU. - backorderLevel
-
Type:
integer
Backorder level of SKU. - backorderThreshold
-
Type:
integer
Backorder threshold of SKU. - displayName
-
Type:
string
Display name of SKU. - inventoryId
-
Type:
string
Inventory ID of SKU. - locationId
-
Type:
string
Location ID of SKU. - preorderLevel
-
Type:
integer
Preorder level of SKU. - preorderThreshold
-
Type:
integer
Preorder threshold of SKU. - skuId
-
Type:
string
SKU ID of SKU. - skuNumber
-
Type:
string
SKU number of SKU. - stockLevel
-
Type:
integer
Stock level of SKU. - stockThreshold
-
Type:
integer
Stock threshold of SKU.
Nested Schema : items
Type:
object
- order
-
Type:
string
Order of listing in product inventory. - property
-
Type:
string
Display name as a product property.
Example application/json
{
"totalResults":251,
"offset":0,
"limit":250,
"links":[
{
"rel":"self",
"href":"http://www.example.com/v1/inventories?type=product&includeDefaultLocationInventory=false"
},
{
"rel":"next",
"href":"http://www.example.com/v1/inventories?type=product&includeDefaultLocationInventory=false&offset=250&limit=1"
}
],
"sort":[
{
"property":"translations.1.displayName",
"order":"asc"
}
],
"items":[
{
"childSKUs":[
{
"preorderThreshold":0,
"backorderLevel":0,
"displayName":"A-Line Skirt",
"availabilityDate":null,
"stockThreshold":0,
"availabilityStatusMsg":"inStock",
"stockLevel":100,
"availableToPromise":null,
"skuNumber":"xsku2535_1",
"preorderLevel":0,
"locationId":null,
"inventoryId":null,
"backorderThreshold":0,
"availabilityStatus":1000,
"locationInventoryInfo":null,
"skuId":"xsku2535_1"
}
],
"totalStockLevel":600,
"id":"xprod2535"
}
]
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Response Payload returned by endpoint:
{ "totalResults": 251, "offset": 0, "limit": 250, "links": [ { "rel": "self", "href": "http://www.example.com/v1/inventories?type=product&includeDefaultLocationInventory=false" }, { "rel": "next", "href": "http://www.example.com/v1/inventories?type=product&includeDefaultLocationInventory=false&offset=250&limit=1" } ], "sort": [{ "property": "translations.1.displayName", "order": "asc" }], "items": [{ "childSKUs": [{ "preorderThreshold": 0, "backorderLevel": 0, "displayName": "A-Line Skirt", "availabilityDate": null, "stockThreshold": 0, "availabilityStatusMsg": "inStock", "stockLevel": 100, "availableToPromise": null, "skuNumber": "xsku2535_1", "preorderLevel": 0, "locationId": null, "inventoryId": null, "backorderThreshold": 0, "availabilityStatus": 1000, "locationInventoryInfo": null, "skuId": "xsku2535_1" }], "totalStockLevel": 600, "id": "xprod2535" }] }