Skip to content

Creation of surcharge parameter value

Request

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired
Example:povinny
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/surcharge-parameters/povinny \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "paramValues": [
        {
          "name": "Modrý",
          "price": "21.00",
          "valueIndex": "modry",
          "priority": 1
        }
      ]
    }
  }'

Responses

Created

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