Get product
const url = 'https://catalog.shopgate.io/v1/merchants/example/products/example?getOriginalImageUrls=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/products/example?getOriginalImageUrls=false'Get a single product
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Fields which should be included in the response. This field is optional. If the field is not set the default fields will be shown
Locale code to change the language of the name, descriptions, properties and media
Location code used to determine product availability
Responses
Section titled “Responses”Returns the product
object
object
Code of parent product
Product Model Type
object
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.
The unit this is product is measured in.
The value of units this product represents. Example: 250, in combination with ‘unit’ set to ‘g’ indicates that this product weighs 250 grams.
The unit this is product is measured in for base price reference.
The value of units this product’s base price represents. Example: 100, in combination with ‘unitPriceRefUom’ set to ‘g’ indicates that the base price of this product is per 100 grams.
Indicates if the product has catch weight
Indicates if a product has serial numbers
‘scheduled’ is deprecated and should not be used anymore.
Start date when the product should be visible (switch to the “active” status)
End date when the product should no longer be visible (switch to the “inactive” status)
Date when the product is buyable (marketing use cases)
Date when the product is no longer buyable (marketing use cases)
object
Ratings from (1-5). To save fractions of a rating, pass in e.g. 0.5 for a “1/2 star” representation.
Minimal amount of product that could be purchased at a single time
Maximal amount of product that could be purchased at a single time
Code of the product
Short name of the product
Long name of the product
object
Id of the sequence of the product in the category. The lowest number is at the top and the highest number is at the bottom.
object
Human readable code of the entity
object
object
External code of the image
In case of type video, we currently support vimeo and youtube urls
Sequence of the media, by default this creates an ascending order meaning 0 is the first.
Indicates if the products should be visibility for the customer. This flag is based on different condition.
object
Human readable code of the entity
Stock keeping unit
Available stock (onHand - onReserve)
Visible stock in store (available - safetyStock)
Bin. (Location in warehouse)
Bin location.
object
object
Name of the attribute which will be shown to the customer. It’s saved in the language of the passed locale.
Type of the attribute. It specifies which type the attribute value will have.
object
Unique identifier for the attribute value
Sequence id of the order of the values. The lowest number is at the top and the highest number is at the bottom.
Name of the attribute value which will be shown to the customer. It’s saved in the language of the passed locale.
object
The price which is added to the base price of the configurable product. It can be positive and negative
object
Name of the attribute which will be shown to the customer. It’s saved in the language of the passed locale.
Type of the attribute. It specifies which type the attribute value will have.
object
Unique identifier for the attribute value
Sequence id of the order of the values. The lowest number is at the top and the highest number is at the bottom.
Name of the attribute value which will be shown to the customer. It’s saved in the language of the passed locale.
object
The price which is added to the base price of the configurable product. It can be positive and negative
Example
{ "product": { "categories": [ { "name": "Jeans", "code": "jeans", "isPrimary": true, "path": [ "clothes", "men", "jeans" ], "sequenceId": 1 } ], "code": "jeans", "endDate": "2040-12-01T00:00:00.114Z", "eolDate": "2040-12-01T00:00:00.114Z", "externalUpdateDate": "2018-12-15T00:00:23.114Z", "extras": [], "firstAvailableDate": "2018-12-01T00:00:00.114Z", "fulfillmentMethods": [ "BOPIS" ], "hasCatchWeight": true, "identifiers": { "distiPartNum": "M102938475", "ean": "xxx11", "isbn": "123xy", "mfgPartNum": "123ab", "sku": "98712c", "upc": "cde45" }, "inventoryTreatment": "showOutOfStock", "isInventoryManaged": true, "isSerialized": true, "isTaxed": true, "longName": "The Jeans. Just Jeans.", "maxQty": 5, "media": [ { "altText": "Image of the jeans", "code": "jeansyImage", "sequenceId": 1, "title": "The Jeans", "type": "image", "url": "https://awesomeShop.com/image01.jpg" } ], "minQty": 2, "modelType": "standard", "name": "The Jeans", "operationalStatus": "active", "options": [ { "code": "color", "name": "Color", "type": "Text", "values": [ { "code": "white", "name": "White", "additionalPrice": 0, "sequenceId": 1, "swatch": { "type": "color", "value": "#ffffff" } }, { "code": "black", "name": "Black", "additionalPrice": 0, "sequenceId": 1, "swatch": { "type": "color", "value": "#000000" } } ] } ], "parentProductCode": null, "price": { "cost": 5, "currencyCode": "USD", "mapPricing": [ { "endDate": "2018-12-15T00:00:23.114Z", "price": 12, "startDate": "2018-12-12T14:27:23.114Z" } ], "maxPrice": 8, "minPrice": 12, "msrp": 10, "price": 10, "salePrice": 9, "unit": "kg", "volumePricing": [ { "maxQty": 20, "minQty": 8, "price": 7, "priceType": "fixed", "salePrice": 7, "unit": "kg" } ] }, "properties": [ { "code": "material", "displayGroup": "properties", "name": "Material", "subDisplayGroup": "Info", "type": "simple", "value": [ "Wool", "Polyester", "Nylon" ] } ], "rating": 5, "shippingInformation": { "height": 4, "heightUnit": "cm", "isShippedAlone": true, "length": 30, "lengthUnit": "cm", "weight": 40, "weightUnit": "kg", "width": 2.3, "widthUnit": "cm" }, "startDate": "2018-12-01T00:00:00.114Z", "status": "active", "taxClass": "f8c5c2e9-5671-4870-8557-7659832e0e20", "unit": "each", "unitPriceRefUom": "each", "unitPriceRefValue": null, "unitValue": null, "url": "https://awesomeShop.com/theJeans", "visibility": "visible", "goodType": "physical" }}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 or product not found
object
Example
{ "code": "NotFound", "message": "Merchant not found"}
