getInventory

get

/ccadmin/v1/inventories/{id}

Get variant or product inventory information based on ID. Optionally takes the X-CCAsset-Language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Success response.
Body ()
Root Schema : getInventory_response
Type: object
Show Source
Nested Schema : locationInventoryInfo
Type: array
Show Source
Nested Schema : translations
Type: object
Product translated properties.
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "skuNumber":"sku40015",
    "displayName":"Cargo Pants",
    "links":[
        {
            "rel":"self",
            "href":"http://www.example.com/v1/inventories/sku40015?locationId=wa-seattle"
        }
    ],
    "locationInventoryInfo":[
        {
            "preorderThreshold":0,
            "backorderLevel":0,
            "displayName":null,
            "availabilityDate":null,
            "availabilityStatusMsg":"inStock",
            "stockThreshold":10,
            "stockLevel":120,
            "availableToPromise":null,
            "skuNumber":null,
            "preorderLevel":0,
            "locationId":"loc1",
            "translations":null,
            "inventoryId":null,
            "backorderThreshold":0,
            "availabilityStatus":1000
        }
    ],
    "skuId":"sku40015"
}
Example Response (description)
Example response when locationIds parameter is passed in request

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