Skip to content

Product Groups

https://{cluster-id}.api.esales.apptus.cloud/api/v2/export/product-groups

GET

An export of the product data in eSales 4 as a json object.

Request

Header parameters

Name Description Example
Api-Key
Required
Api-key that was supplied during on-boarding pkA123456789AB1BE..
Accept-Encoding
Required
Allows responses to be compressed using Gzip. gzip

Query parameters

Name Description Example
market
Required
The visitor market identifier. Must match the corresponding market identifier in the data feed. UK
limit The number of product groups to include. If parameter is omitted, all product groups will be returned. 10
productRules Filter which products should be returned. rule incl product_key {"pk1" "pk2"}
curl -i \
-X GET \
-H 'Api-Key: pkA123456789AB1BE..' \
-H 'Accept-Encoding: gzip' \
"https://{cluster-id}.api.esales.apptus.cloud/api/v2/export/product-groups?market=UK&limit=10&productRules=rule incl product_key {"pk1" "pk2"}"

Response

Response codes

Status Description
200 Query accepted. The data will be returned as an application/json-object.
403 Incorrect cluster credentials.
404 Cluster not found.
406 No acceptable encoding found in Accept-Encoding header.
500 Server error such as cluster unavailable, busy or internal error. If 5xx errors persist, contact Apptus Support and attach any information found in the response body.
503 The server in the cluster that received the request is currently unavailable or busy. It is recommended to retry the request. The time between request attempts should be increasing.

POST

Returns a transformed version of the JSON product-groups feed if a handlebars template is provided in the body, otherwise the JSON feed with Content-Type text/plain.

Request

Header parameters

Name Description Example
Api-Key
Required
Api-key that was supplied during on-boarding pkA123456789AB1BE..
Accept-Encoding
Required
Allows responses to be compressed using Gzip. gzip

Query parameters

Name Description Example
market
Required
The visitor market identifier. Must match the corresponding market identifier in the data feed. UK
limit The number of product groups to include. If parameter is omitted, all product groups will be returned. 10
productRules Filter which products should be returned, which needs be url encoded. rule%20incl%20product_key%20%7B%20%22pk1%22%20%22pk2%22%20%7D

Supported Content-Type

text/plain;charset=UTF-8

Request body

Example
text/plain;charset=UTF-8
{{#productGroups}}
{{#each products}}
    {{#each variants}}
    {{~../../../market}};{{../../key}};{{../key}};{{key}}
    {{/each}}
{{/each}}
{{/productGroups}}
curl -i \
-X POST \
-H 'Api-Key: pkA123456789AB1BE..' \
-H 'Accept-Encoding: gzip' \
-H 'Content-Type: text/plain;charset=UTF-8' \
-L \
"https://{cluster-id}.api.esales.apptus.cloud/api/v2/export/product-groups?market=UK&limit=10&productRules=rule%20incl%20product_key%20%7B%20%22pk1%22%20%22pk2%22%20%7D" \
--data-binary @request-body.file

Response

Response codes

Status Description
200 Query accepted. The returned data will have the content type text/plain.
400 Bad request. Check for syntax or encoding errors ('{' and '}' in product filters must be url encoded)
403 Incorrect cluster credentials.
404 Cluster not found.
406 No acceptable encoding found in Accept-Encoding header.
500 Server error such as cluster unavailable, busy or internal error. If 5xx errors persist, contact Apptus Support and attach any information found in the response body.
503 The server in the cluster that received the request is currently unavailable or busy. It is recommended to retry the request. The time between request attempts should be increasing.
×
Copyright

This online publication is intellectual property of Voyado Lund AB. Its contents can be duplicated in part or whole, provided that a copyright label is visibly located on each copy and the copy is used in conjunction with the product described within this document.

All information found in these documents has been compiled with utmost attention to detail. However, this does not guarantee complete accuracy. Neither Voyado Lund AB nor the authors shall be held liable for possible errors or the consequences thereof.

Software and hardware descriptions cited in these documents might be registered trademarks. All trade names are subject to copyright restrictions and may be registered trademarks. Voyado Lund AB essentially adheres to the manufacturer’s spelling. Names of products and trademarks appearing in this document, with or without specific notation, are likewise subject to trademark and trade protection laws and may thus fall under copyright restrictions.

CLOSE