Skip to main content

Get Stock for Multiple Products

POST 

https://euwest.api.elasticpath.com/v2/inventories/multiple

Returns stock for all products matching the supplied unique identifiers.

Request

Body

    data object[]
  • Array [
  • id string

    The unique identifier of the product.

  • ]

Responses

Success. Multiple products and their stock values are returned.

Schema
    data Inventory[]
  • Array [
  • id string

    The unique identifier of the product.

    type stringrequired

    Possible values: [stock]

    Default value: stock

    The type represents the object being returned. Always stock.

    total integer

    The total amount of stock we have.

    available integer

    The amount of stock available for purchase.

    allocated integer

    The amount of paid for stock, also known as reserved.

  • ]

Authorization: http

name: bearerAuthtype: httpscheme: bearer
curl -L -X POST 'https://euwest.api.elasticpath.com/v2/inventories/multiple' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"data": [
{
"id": "3c78777a-cf09-4b2d-be91-a73acbf9166f"
}
]
}'
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Body
{
  "data": [
    {
      "id": "3c78777a-cf09-4b2d-be91-a73acbf9166f"
    }
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!