Get Stock for Multiple Products
POSThttps://euwest.api.elasticpath.com/v2/inventories/multiple
Returns stock for all products matching the supplied unique identifiers.
Request
Responses
- 200
- 404
- 500
Success. Multiple products and their stock values are returned.
Not found. The requested entity does not exist.
Internal server error. There was a system failure in the platform.
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://euwest.api.elasticpath.com/v2/inventories/multiple");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": [\n {\n \"type\": \"stock\",\n \"id\": \"3c78777a-cf09-4b2d-be91-a73acbf9166f\"\n }\n ]\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear