younifyd
Menu

Get inventory/stock-resolver/{type}/{code}

Get inventory/stock-resolver/{type}/{code}

GET/V1/inventory/stock-resolver/{type}/{code}

Use it in a workflow

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

Request

Path parameters

typestringrequired
codestringrequired

Response

Returns 200 with an object. Read it in later steps with {{getInventoryStockResolverTypeCode.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/stock-resolver/{type}/{code} — Adobe Commerce — Documentation