getStockStatus

get

/ccstore/v1/stockStatus/{id}

Get Stock Status. Gets the stock status of a product against the quantity requested. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
Id of the product to get the stock status
Query Parameters
catalogId
Type: string
Catalog Id of the product
skuId
Type: string
Id of the SKU of the product
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 : getStockStatus_response
Example application/json

{
    "productId":"xprod2138",
    "preOrderableQuantity":0,
    "orderableQuantity":12,
    "stockStatus":"IN_STOCK",
    "availabilityDate":null,
    "backOrderableQuantity":0,
    "catRefId":"xsku2138",
    "inStockQuantity":12
}
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |20030|If some internal error|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "productId": "xprod2138",
  "preOrderableQuantity": 0,
  "orderableQuantity": 12,
  "stockStatus": "IN_STOCK",
  "availabilityDate": null,
  "backOrderableQuantity": 0,
  "catRefId": "xsku2138",
  "inStockQuantity": 12
}