younifyd
Menu

Get inventory/stocks/{stockId}

Get inventory/stocks/{stockId}

GET/V1/inventory/stocks/{stockId}

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get inventory/stocks/{stockId} action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{getInventoryStocksStockid.response.data}}.

Request

Path parameters

stockIdintegerrequired

Response

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

stock_idinteger

Stock id

namestring

Stock name

extension_attributesobject

TODO: temporal fix of extension classes generation during installation ExtensionInterface class for @see \Magento\InventoryApi\Api\Data\StockInterface

sales_channelsarray<object>3 fields

Stock extension attributes like sales channels for a stock entity as an array of SalesChannelInterface.

json
{
  "stock_id": 0,
  "name": "string",
  "extension_attributes": {
    "sales_channels": [
      {
        "type": "string",
        "code": "string",
        "extension_attributes": {}
      }
    ]
  }
}

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

Get inventory/stocks/{stockId} — Adobe Commerce — Documentation