listInventories

get

/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
Query Parameters
  • ID of the catalog.
  • The comma seperated IDs of the product or sku whose inventory detail information is to be retrieved. The IDs given should correspond to the type given. So if the type is a product, product IDs has to be given here else sku IDs.
  • If set to true then inventory detail not associated with any particular location will be included alongside the location specific inventory details
  • A comma-separated list of location IDs for which inventory detail information is to be retrieved
  • Type of data whose inventory information it to be retrieved. The options are "product" and "variant". Defaults to "variant".
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listInventories_response
Type: object
Show Source
Nested Schema : example with locationIds
Type: object
Result object with locationIds.
Show Source
Nested Schema : example without locationIds
Type: object
Result object without locationIds.
Show Source
Nested Schema : If the selected case was a product.
Type: object
Result object if type is product.
Show Source
Nested Schema : If the selected case was a variant.
Type: object
Result object if type is variant.
Show Source
Nested Schema : childSKUs
Type: array
List of SKU's for the product.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : locationInventoryInfo
Type: array
Location specific inventory information
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : locationInventoryInfo
Type: array
Location specific inventory information
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : If the selected case was a product.
Type: object
Result object if type is product.
Show Source
Nested Schema : If the selected case was a variant.
Type: object
Result object if type is variant.
Show Source
Nested Schema : childSKUs
Type: array
List of SKU's for the product.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
[
    {
        "preorderThreshold":0,
        "backorderLevel":0,
        "displayName":"Block Table",
        "availabilityDate":null,
        "stockThreshold":0,
        "availabilityStatusMsg":"inStock",
        "stockLevel":12,
        "availableToPromise":null,
        "skuNumber":"xsku2125_1",
        "preorderLevel":0,
        "locationId":null,
        "translations":null,
        "inventoryId":null,
        "backorderThreshold":0,
        "availabilityStatus":1000,
        "skuId":"xsku2125_1"
    },
    {
        "preorderThreshold":0,
        "backorderLevel":0,
        "displayName":"Block Table",
        "availabilityDate":null,
        "stockThreshold":0,
        "availabilityStatusMsg":"inStock",
        "stockLevel":12,
        "availableToPromise":null,
        "skuNumber":"xsku2125_1",
        "preorderLevel":0,
        "locationId":null,
        "translations":null,
        "inventoryId":null,
        "backorderThreshold":0,
        "availabilityStatus":1000,
        "skuId":"sku_123"
    }
]

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top