Skip to content

Price list insertion

Request

currency is optional. Omit it, or send null, to create the price list without one, in which case the e-shop default currency applies. A code the e-shop does not know answers 422 invalid-request-data.

Setting a currency here does not convert any price; it only records which currency the price list is kept in. Nothing in the e-shop reads it yet.

name must be unique across the e-shop; a name another price list already uses answers 409 pricelist-name-duplicated.

Security
shoptetAccessToken or shoptetPrivateApiToken
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/price-lists \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "name": "Hlavní ceník",
      "currency": "CZK"
    }
  }'

Responses

Created

Bodyapplication/json
dataobject(pricelist)required
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "id": 1, "name": "Hlavní ceník" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }