Menu
Get Stock For Multiple Products
Get Stock for Multiple Products
POST
/inventories/multipleUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get Stock For Multiple Products action (under Inventory (Legacy)).
- Fill in the fields below, then reference the result from later steps as
{{getStockForMultipleProducts.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"data": [
{
"id": "3c78777a-cf09-4b2d-be91-a73acbf9166f",
"type": "stock"
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{getStockForMultipleProducts.response.data.<field>}}.
{
"data": [
{
"id": "f976dace-450f-4a5d-8877-d119c5a550a1",
"type": "stock",
"total": 100,
"available": 75,
"allocated": 25,
"stock_id": "ce9049af-bba2-4db2-8118-5df5268184c7",
"meta": null
}
]
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?