Get product location prices
const url = 'https://catalog.shopgate.io/v1/merchants/example/productLocationPrices?limit=1000&offset=0&omitTotalItemCount=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/productLocationPrices?limit=1000&offset=0&omitTotalItemCount=false'Get product location prices
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Filter string. Supported filters:
- productCode
- locationCode
The limit of entries of one page
The offset where to start the 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
Omit totalItemCount from meta object
Sorting of the products (sequenceId only works with filter catalogCode)
Responses
Section titled “Responses”Returns product location prices
object
On routes supporting limit/offset and cursor pagination, offset will be ignored when after is set; however, both fields will always be present in the response
object
A base64 string or null if the result is empty
object
object
Human readable code of the entity
Human readable code of the entity
object
The actual cost for the merchant
Price for the shopper
Unit the price applies to (pieces, kg, packs)
Sale price
Manufacturer’s suggested retail price
Lowest possible price (configurable product)
Highest possible price (configurable product)
object
Price of the tier
Sale price of the tier
Fixed price, or relative to the standard price
object
The base price per unit of the item if applicable; based on the unit / unitValue and unitRefPriceUom / unitRefPriceValue fields of the product.
Example
{ "meta": { "limit": 1, "cursor": { "after": "1b" }, "totalItemCount": 2 }, "productLocationPrices": [ { "productCode": "someCode", "locationCode": "someCode", "externalUpdateDate": "2018-12-15T00:00:23.114Z", "cost": 2.55, "price": 3.5, "unit": "kg", "salePrice": 3, "msrp": 4.5, "minPrice": 3, "maxPrice": 7.5, "volumePricing": [ { "minQty": 1, "maxQty": 2, "price": 6.4, "salePrice": 5, "unit": "kg", "priceType": "fixed" } ], "mapPricing": [ { "startDate": "2018-12-12T14:27:23.114Z", "endDate": "2018-12-15T00:00:23.114Z", "price": 10.1 } ], "currencyCode": "AED", "pricePerMeasureUnit": 1.5 } ]}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"}
