Get whether products are salable in requested Qty for given set of SKUs in specified stock
Get whether products are salable in requested Qty for given set of SKUs in specified stock.
GET
/V1/inventory/are-product-salable-for-requested-qty/
curl \
--request GET 'https://magento2.winkelstraat.mac/rest/all/V1/inventory/are-product-salable-for-requested-qty/?stockId=42'
Response examples (200)
[
{
"sku": "string",
"stock_id": 42,
"salable": true,
"errors": [
{
"code": "string",
"message": "string",
"extension_attributes": {}
}
],
"extension_attributes": {}
}
]
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}