Skip to main content

Get Stock for all Products

GET 

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

Returns all products and their associated stock.

Request

Query Parameters

    page[offset] int

    Possible values: <= 10000

    The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.

    page[limit] int

    The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the page length store setting is used.

    filter string

Responses

Success. All products and their stock values are returned

Schema
    data object[]required
  • Array [
  • idUUID (string)required

    The unique identifier.

    Example: 00000000-0000-0000-0000-000000000000
    typeStockType (string)required

    Possible values: [stock]

    Default value: stock
    Example: stock
    attributes objectrequired
    availableint64required
    Example: 20
    allocatedint64required
    Example: 10
    totalint64required
    Example: 30
    locations object
    property name* object
    availableint64required
    Example: 20
    allocatedint64required
    Example: 10
    totalint64required
    Example: 30
    meta objectrequired
    stock_idUUID (string)required

    The unique identifier.

    Example: 00000000-0000-0000-0000-000000000000
    timestamps Timestampsrequired
    updated_atstring

    The date and time a resource was updated.

    Example: 2017-01-10T11:41:19.244842Z
    created_atstringrequired

    The date and time a resource was created.

    Example: 2017-01-10T11:41:19.244842Z
  • ]
  • links objectrequired
    property name* Link
    anyOf
    stringnullable
    Example: http://example.com/articles/1/comments

Authorization: http

name: bearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/v2/inventories");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— query
— query
— query
ResponseClear

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

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.