getInventory

get

/ccstore/v1/inventories/{id}

Get Inventory. Get inventory information for a variant or product. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
  • The ID of the product or sku whose inventory detail information is to be retrieved. The ID given should correspond to the type given. So if the type is a product, a product ID has to be given here else a sku ID.
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
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)
{
    "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,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstore/v1/inventories/xsku2125_1?catalogId=null"
        }
    ],
    "availabilityStatus":1000,
    "skuId":"xsku2125_1"
}

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