Get is product salable for given SKU in a given Stock for a certain Qty
Get is product salable for given SKU in a given Stock for a certain Qty
GET /V1/inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQty}
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQty}
Response examples (200)
{
"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"
}