Get location inventories
const url = 'https://catalog.shopgate.io/v1/merchants/example/locationInventories?limit=1000';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/locationInventories?limit=1000'Get location inventories for merchant
Note: The location has to be set up first.
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
Locale code to change the language of the name, descriptions, properties and media
Filter string. Supported filters: productCode, locationCode, product.modelType, product.name, product.identifiers.ean, product.identifiers.upc, product.identifiers.sku, product.identifiers.isbn, product.identifiers.mfgPartNum, product.identifiers.distiPartNum
Responses
Section titled “Responses”Returns inventories
object
object
object
object
Human readable code of the entity
Human readable code of the entity
object
Example
{ "meta": { "limit": 100, "cursors": { "after": "542ae3145" }, "totalItemCount": 2876 }, "locationInventories": [ { "productCode": "jeans1", "locationCode": "loc1", "inventoryTreatmentSetting": { "code": "its1", "name": "testName", "isPurchasable": false }, "onHand": 300, "onReserve": 50, "available": 250, "safetyStock": 50, "visible": 200 } ]}Validation error
object
object
object
object
The parameter-field, that failed to validate, like “userId”
The value, that was sent, like “xxx”
Machine readable error code
Human readable error code
object
object
Machine readable error code
Human readable error code
Example
{ "error": { "code": "SCHEMA_VALIDATION_FAILED", "results": { "errors": [ { "code": "MAX_LENGTH", "message": "Name too long", "description": "Property Name is too long", "path": [ "name" ] } ] } }}Merchant not found
object
Example
{ "code": "NotFound", "message": "Merchant not found"}
