Skip to content

List of all categories

Request

Using this endpoint, you can get list of all product categories with detailed info of each category (like in Product category detail endpoint) asynchronously. See how Asynchronous requests work on our developer's portal.

Response will be in jsonlines format with each category taking one line of output file.

One category in response has the same format as product category detail response. See Category snapshot schema for more details.

All categories of the e-shop are included regardless of their visibility, so the whole category tree can be rebuilt from parentGuid. The endpoint takes no filters, same as the list of product categories.

Result file is compressed using GZIP.

Security
shoptetAccessToken or shoptetPrivateApiToken
Headers
Content-Typestringrequired
Default:"application/json"
curl -i -X GET \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/categories/snapshot \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'

Responses

Accepted

Bodyapplication/json
dataobject
errorsArray of objects or null(Errors)
metadataobject(Metadata)
Response
{ "data": { "jobId": "ad24xod" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }