younifyd
Menu

Get inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQt…

Get inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQty}

GET/V1/inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQty}

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQt… action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{getInventoryIsProductSalableForRequestedQtySkuStockidRequestedqt.response.data}}.

Request

Path parameters

skustringrequired
stockIdintegerrequired
requestedQtynumberrequired

Response

Returns 200 with an object. Read it in later steps with {{getInventoryIsProductSalableForRequestedQtySkuStockidRequestedqt.response.data.<field>}}.

salableboolean

If the product is salable based on its availability and conditions.

errorsarray<object>

A list of errors related to product salability.

codestringrequired

The error code related to product salability, returning it as a string value.

messagestringrequired

The error message related to product salability, returning it as a string value.

extension_attributesobject

ExtensionInterface class for @see \Magento\InventorySalesApi\Api\Data\ProductSalabilityErrorInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\InventorySalesApi\Api\Data\ProductSalableResultInterface

json
{
  "salable": false,
  "errors": [
    {
      "code": "string",
      "message": "string",
      "extension_attributes": {}
    }
  ],
  "extension_attributes": {}
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.

Get inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQt… — Adobe Commerce — Documentation