Customer API (experimental) (v1)
Download OpenAPI specification:Download
Warning:
This API version is in an experimental state and should not be used for production.
We recommend that all integrations use Customer API v0.
List categories
Retrieves all top-level categories.
Important: This method will only return results if you performed a category import. Categories contained in a product import will not be returned by this method.
path Parameters
shop_id required | string The identifier of the shop. |
query Parameters
locale required | string(^[A-Za-z]{2}$)|(^[a-z]{2}[-_]{1}[A-Za-z]{2}$... The locale for the products catalog. It should be in format en-US or only en. |
Responses
Response samples
- 200
- 206
- 400
- 404
- 500
{- "elements": [
- {
- "name": "Shoes",
- "path": "Shoes",
- "path_separator": " > ",
- "images": [
- {
- "title": "Variety of shoes and foot wear",
- "dominant_color": "#CCFFF3",
- "width": 1024,
- "height": 768,
- "aspect_ratio": 1.33,
- "tags": [
- "shoes",
- "footwear",
- "mixed",
- "newstore:main"
]
}
], - "position": 1,
- "description": "Our finest footwear for any situation.",
- "sub_categories": [
- {
- "path": "Shoes > Woman",
- "has_sub_categories": true
}, - {
- "path": "Shoes > Men",
- "has_sub_categories": true
}, - {
- "path": "Shoes > Kids",
- "has_sub_categories": true
}
]
}, - {
- "name": "Clothes",
- "path": "Clothes",
- "path_separator": " > ",
- "images": [
- {
- "title": "Variety of different clothes",
- "dominant_color": "#CCFFF3",
- "width": 1024,
- "height": 768,
- "aspect_ratio": 1.33,
- "tags": [
- "clothes",
- "pants",
- "dresses",
- "shirts",
- "newstore:main"
]
}
], - "position": 2,
- "description": "Our range of clothes are as unique as you.",
- "sub_categories": [
- {
- "path": "Clothes > Woman",
- "has_sub_categories": true
}, - {
- "path": "Clothes > Men",
- "has_sub_categories": true
}, - {
- "path": "Clothes > Kids",
- "has_sub_categories": true
}
]
}
]
}
List subcategories
Retrieves all subcategories with the given parent category.
path Parameters
parent required | string The path of the parent category, connected by the defined path separator for which the list of subcategories should be requested. You can get the path separator with the 'List categories' method, in the 'path_separator' field. |
shop_id required | string The identifier of the shop. |
query Parameters
locale required | string(^[A-Za-z]{2}$)|(^[a-z]{2}[-_]{1}[A-Za-z]{2}$... The locale for the products catalog. It should be in format en-US or only en. |
Responses
Response samples
- 200
- 206
- 400
- 404
- 500
{- "elements": [
- {
- "name": "Winter",
- "path": "Shoes > Woman > Winter",
- "path_separator": " > ",
- "images": [
- {
- "title": "Snowy winter boots",
- "dominant_color": "#CCFFF3",
- "width": 1024,
- "height": 768,
- "aspect_ratio": 1.33,
- "tags": [
- "vibrant",
- "snow",
- "boots",
- "newstore:main"
]
}, - {
- "title": "Light and warm leather shoes",
- "dominant_color": "#FF12B1",
- "width": 1024,
- "height": 768,
- "aspect_ratio": 1.33,
- "tags": [
- "leather",
- "warm"
]
}
], - "position": 1,
- "description": "These shoes will keep you warm when it is cold outside.",
- "extended_attributes": [
- {
- "name": "sale-promotion-enabled",
- "value": "true"
}
], - "parent_category": "Shoes > Woman",
- "sub_categories": [ ]
}
]
}
Get prices
Retrieves the price information of a list of products.
path Parameters
shop_id required | string The identifier of the shop. |
query Parameters
product_id required | Array of strings The identifier of the product defined during the master data import phase. |
pricebook_id required | string The identifier of the price book. |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "pricebook_id": "default",
- "currency": "USD",
- "traits": [
- "display_only"
], - "elements": [
- {
- "product_id": "1000101",
- "amount": 1500
}, - {
- "product_id": "1000102",
- "amount": 1000
}, - {
- "product_id": "1000103",
- "amount": 300
}
]
}
List products
Retrieves a list of products for the given locale.
path Parameters
shop_id required | string The identifier of the shop. |
query Parameters
locale required | string(^[A-Za-z]{2}$)|(^[a-z]{2}[-_]{1}[A-Za-z]{2}$... The locale for the products catalog. It should be in format en-US or only en. |
q | string [ 1 .. 100 ] characters A search term to restrict products. The search considers the following product properties:
Note: You can configure attributes to be searchable during the product import. See the documentation and the tutorial for more details. |
include_variations | boolean Default: false Flag to return the siblings of a product. |
filter[<field>] | Array of strings A Note: Using this parameter several times on one field in one query creates an |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "pagination": {
- "count": 10,
- "offset": 0,
- "total": 1000
}, - "elements": [
- {
- "product_id": "1200001",
- "title": "Black Sweater",
- "short_description": "Perfect for the winter.",
- "description": "Perfect for the winter. Very cozy and comfortable. A must-have for cold days!",
- "is_available": true,
- "serialized_inventory": false,
- "variable_pricing": false,
- "inventory_tracked": true,
- "online_from": "2018-05-17T07:00:00Z",
- "online_to": "2020-12-31T13:32:16Z",
- "effective_price": {
- "amount": 89,
- "currency": "EUR"
}, - "images": [
- {
- "title": "Black Sweater Front",
- "dominant_color": "#000000",
- "width": 1242,
- "height": 2208,
- "aspect_ratio": 0.5625,
- "tags": [
- "newstore:main"
]
}, - {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
], - "extended_attributes": [
- {
- "key": "exclusive",
- "value": "true"
}, - {
- "key": "designer",
- "value": "Donatella Dodici"
}
], - "variations": [
- {
- "product_id": "1200002",
- "is_available": true,
- "variation_color": {
- "value": "Black",
- "swatch": {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
}, - "variation_size": {
- "value": "M",
- "gender": "unisex",
- "type": "regular",
- "system": ""
}, - "effective_price": {
- "amount": 89,
- "currency": "EUR"
}
}, - {
- "product_id": "1200003",
- "is_available": true,
- "variation_color": {
- "value": "Black",
- "swatch": {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
}, - "variation_size": {
- "value": "XL",
- "gender": "unisex",
- "type": "regular",
- "system": ""
}, - "effective_price": {
- "amount": 89,
- "currency": "EUR"
}
}
]
}, - {
- "product_id": "1300001",
- "title": "Leather Boots",
- "short_description": "Perfect for the winter.",
- "description": "Perfect for the winter. Very cozy and comfortable. A must-have for cold days!",
- "is_available": true,
- "serialized_inventory": false,
- "variable_pricing": false,
- "inventory_tracked": true,
- "online_from": "2018-08-01T07:00:00Z",
- "online_to": "2020-12-31T13:32:16Z",
- "effective_price": {
- "amount": 100,
- "currency": "EUR"
}, - "images": [
- {
- "title": "Leather Boots Front",
- "dominant_color": "#000000",
- "width": 1242,
- "height": 2208,
- "aspect_ratio": 0.5625,
- "tags": [
- "newstore:main"
]
}, - {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
], - "extended_attributes": [
- {
- "key": "exclusive",
- "value": "true"
}, - {
- "key": "designer",
- "value": "Donatella Dodici"
}
], - "variations": [
- {
- "product_id": "1300001",
- "is_available": true,
- "variation_color": {
- "value": "Brown",
- "swatch": {
- "title": "Color Swatch",
- "dominant_color": "#614126",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
}, - "variation_size": {
- "value": "10.5",
- "gender": "unisex",
- "type": "regular",
- "system": ""
}, - "effective_price": {
- "amount": 100,
- "currency": "EUR"
}
}, - {
- "product_id": "1300002",
- "is_available": true,
- "variation_color": {
- "value": "Dark Grey",
- "swatch": {
- "title": "Color Swatch",
- "dominant_color": "#565656",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
}, - "variation_size": {
- "value": "10.5",
- "gender": "unisex",
- "type": "regular",
- "system": ""
}, - "effective_price": {
- "amount": 100,
- "currency": "EUR"
}
}
]
}
], - "facets": [
- {
- "field": "variation_color_value",
- "enum": "enum",
- "values": [
- {
- "value": "Black",
- "count": 1
}, - {
- "value": "Brown",
- "count": 1
}, - {
- "value": "Dark Grey",
- "count": 1
}
]
}, - {
- "field": "variation_size_value",
- "enum": "enum",
- "values": [
- {
- "value": "M",
- "count": 1
}, - {
- "value": "XL",
- "count": 1
}, - {
- "value": "10.5",
- "count": 1
}
]
}
]
}
Get product details
Returns product detail information including product variant specific information such as prices and quantities.
path Parameters
type required | string The type of the external ID. It is the identification system used in your setup. Typical systems are EAN, SKU, GTIN, etc. Note: To use the NewStore ID of the product ( |
id required | string The product identifier, either the internal product id (
Important: When retrieving a product whose id contains special characters (reserved, unreserved, and escaped characters based on the RFC guidelines, the value of the product ID must be encoded. For more information, see Section 2.1 in the RFC guidelines. |
shop_id required | string The identifier of the shop. |
query Parameters
locale required | string(^[A-Za-z]{2}$)|(^[a-z]{2}[-_]{1}[A-Za-z]{2}$... The locale for the products catalog. It should be in format en-US or only en. |
include_variations | boolean Whether to include/populate the product's variations field or not. Variations are included by default. |
Responses
Response samples
- 200
- 404
- 500
{- "product_id": "1200001",
- "title": "Black Sweater",
- "short_description": "Perfect for the winter.",
- "description": "Perfect for the winter. Very cozy and comfortable. A must-have for cold days!",
- "is_available": true,
- "serialized_inventory": false,
- "variable_pricing": false,
- "inventory_tracked": true,
- "online_from": "2018-05-17T07:00:00Z",
- "online_to": "2020-12-31T13:32:16Z",
- "effective_price": {
- "amount": 89,
- "currency": "EUR"
}, - "images": [
- {
- "title": "Black Sweater Front",
- "dominant_color": "#000000",
- "width": 1242,
- "height": 2208,
- "aspect_ratio": 0.5625,
- "tags": [
- "newstore:main"
]
}, - {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
], - "extended_attributes": [
- {
- "key": "exclusive",
- "value": "true"
}, - {
- "key": "designer",
- "value": "Donatella Dodici"
}
], - "variations": [
- {
- "product_id": "1200002",
- "is_available": true,
- "variation_color": {
- "value": "Black",
- "swatch": {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
}, - "variation_size": {
- "value": "M",
- "gender": "unisex",
- "type": "regular",
- "system": ""
}, - "effective_price": {
- "amount": 89,
- "currency": "EUR"
}
}, - {
- "product_id": "1200003",
- "is_available": true,
- "variation_color": {
- "value": "Black",
- "swatch": {
- "title": "Color Swatch",
- "dominant_color": "#000000",
- "width": 25,
- "height": 25,
- "aspect_ratio": 1,
- "tags": [
- "newstore:swatch"
]
}
}, - "variation_size": {
- "value": "XL",
- "gender": "unisex",
- "type": "regular",
- "system": ""
}, - "effective_price": {
- "amount": 89,
- "currency": "EUR"
}
}
]
}