younifyd
Menu

Get Stock For Products

List Stock

POST/inventories/multiple

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Get Stock For Products action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{getStockForProducts.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

dataarray<object>required
typestring

One ofstockDefault "stock"

idstring (uuid)required

The unique identifier of the product.

json
{
  "data": [
    {
      "id": "3c78777a-cf09-4b2d-be91-a73acbf9166f",
      "type": "stock"
    }
  ]
}

Response

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

dataarray<object>
idstringrequired

The unique identifier.

typestringrequired

One ofstockDefault "stock"

attributesobjectrequired4 fields
metaobjectrequired2 fields
json
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "type": "stock",
      "attributes": {
        "available": 20,
        "allocated": 10,
        "total": 30,
        "locations": {}
      },
      "meta": {
        "stock_id": "00000000-0000-0000-0000-000000000000",
        "timestamps": {
          "created_at": "2017-01-10T11:41:19.244842Z",
          "updated_at": "2017-01-10T11:41:19.244842Z"
        }
      }
    }
  ]
}

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

Was this page helpful?