Get cumulated inventories
const url = 'https://catalog.shopgate.io/v1/merchants/example/cumulatedInventories?limit=1000&ignoreTotalItemCount=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://catalog.shopgate.io/v1/merchants/example/cumulatedInventories?limit=1000&ignoreTotalItemCount=false'This endpoint returns cumulated inventory for a catalog per product. If no catalog code is provided, the default catalog is used. This endpoint is meant to be used for ship from store functionality
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”The limit of entries of one page
The cursor after which the next entries will be queried; on routes supporting limit/offset and cursor pagination, offset will be ignored when after is set
Filter string. Supported filters are: productCode, createDate, updateDate. Expects the date filters in UTC time. (e.g. 2023-05-11T10:04:12.694Z) Filters on date and product code are mutually exclusive.
Private query param which prevents the route function to get totalItemCount
Additional data to pass to the sync webhook
Responses
Section titled “Responses”Returns cumulated inventory for a catalog
object
object
object
object
Human readable code of the entity
Example
{ "meta": { "limit": 100, "cursors": { "after": "542ae3145" }, "totalItemCount": 2876 }, "cumulatedInventories": [ { "producCode": "productA", "visible": 143, "available": 145, "isAvailable": true } ]}
