listStockStatusForLargeCart
post
/ccstore/v1/stockStatus
Gets the stock status of the list of products for large cart
Request
Supported Media Types
- application/json
Root Schema : listStockStatusForLargeCart_request
Type:
Show Source
object
-
catalogId(optional):
string
catalog id of the products
-
products(optional):
string
Product ids separated by comma. Supports the productId:skuId format to narrow down the results to a particular sku.
Example:
{
"catalogId":"cloudLakeCatalog",
"products":"camera_1:camerasku_1_5,Product_27Fxyzi"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listStockStatusForLargeCart_response
Type:
Show Source
object
-
items(optional):
array items
List of products along with stock statuses and orderable quantities
Nested Schema : items
Type:
array
List of products along with stock statuses and orderable quantities
Show Source
Nested Schema : items
Type:
Show Source
object
-
availabilityDate(optional):
string
Availability date of the product
-
backOrderableQuantity(optional):
integer
Quantity that can be backordered
-
catalogId(optional):
string
Catalog id of the product
-
catRefId(optional):
string
Sku reference id
-
inStockQuantity(optional):
integer
Quantity that is in stock
-
locationId(optional):
string
Inventory location id of the product
-
orderableQuantity(optional):
integer
Maximum quantity that can be ordered
-
preOrderableQuantity(optional):
integer
Quantity that can be preordered
-
productId(optional):
string
Id of the product
-
stockStatus(optional):
string
Stock status of the product
Example Response (application/json)
[
{
"catalogId":"cloudLakeCatalog",
"productId":"camera_1",
"preOrderableQuantity":0,
"locationId":null,
"orderableQuantity":5,
"stockStatus":"IN_STOCK",
"availabilityDate":null,
"backOrderableQuantity":0,
"catRefId":"camerasku_1_5",
"inStockQuantity":5
},
{
"Sku_27Gxyzi":"IN_STOCK",
"productSkuInventoryStatus":{
"Sku_27Gxyzi":3
},
"locationId":null,
"stockStatus":"IN_STOCK",
"productSkuInventoryDetails":[
{
"productId":"Product_27Fxyzii",
"availabilityDate":null,
"catRefId":"Sku_27Gxyzi"
}
]
}
]
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|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code