getStockStatuses

get

/ccstore/v1/stockStatus

Get Stock Statuses. Gets the stock statuses and orderable quantity details of all the items in the cart. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
  • application/json
Query Parameters
catalogId
Type: string
Catalog Ids of the products
products
Type: string
Product ids separated by comma
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 : getStockStatuses_response
Nested Schema : items
Type: array
List of products along with stock statuses and orderable quantities
Nested Schema : items
Type: object
Example application/json

[
    {
        "catalogId":null,
        "productId":"prod10011",
        "preOrderableQuantity":0,
        "orderableQuantity":95,
        "stockStatus":"IN_STOCK",
        "availabilityDate":null,
        "backOrderableQuantity":50,
        "catRefId":"sku10024",
        "inStockQuantity":25
    },
    {
        "catalogId":null,
        "productId":"Product_9E",
        "preOrderableQuantity":50,
        "orderableQuantity":95,
        "stockStatus":"IN_STOCK",
        "availabilityDate":null,
        "backOrderableQuantity":0,
        "catRefId":"Sku_9F",
        "inStockQuantity":25
    }
]
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:

[
  {
    "catalogId": null,
    "productId": "prod10011",
    "preOrderableQuantity": 0,
    "orderableQuantity": 95,
    "stockStatus": "IN_STOCK",
    "availabilityDate": null,
    "backOrderableQuantity": 50,
    "catRefId": "sku10024",
    "inStockQuantity": 25
  },
  {
    "catalogId": null,
    "productId": "Product_9E",
    "preOrderableQuantity": 50,
    "orderableQuantity": 95,
    "stockStatus": "IN_STOCK",
    "availabilityDate": null,
    "backOrderableQuantity": 0,
    "catRefId": "Sku_9F",
    "inStockQuantity": 25
  }
]