Private API

Within Shoptet Premium your eshop can access data via Shoptet API. Shoptet API is a REST API.

To access the API, you need a secret token (32 alphanumeric characters) to be generated – you can do so in the administration (Connections » Private API) – see Private tokens maintenance . Up to 10 tokens can be created and used.

To call API, add the following headers to you request:

The API host (URL) is https://api.myshoptet.com/api/

An example call:

curl --location --request GET 'https://api.myshoptet.com/api/eshop' \
--header 'Shoptet-Private-API-Token: <token>' \
--header 'Content-Type: application/vnd.shoptet.v1.0'

It will return a JSON response like:

{
  "data": {
    "contactInformation": {
      "eshopId": 123456,
      "eshopName": "www.domena-eshopu.cz",
      "url": "https://www.domena-eshopu.cz/",
      "eshopTitle": "My eshop",
      "eshopSubtitle": "We sell it at best...",
      "contactPerson": "Jára Cimrman",
      "email": "info@shoptetnamiru.cz",
      "phone": "123 456 789",
...

Detailed reference documentation in Apiary is available.