Skip to content

Update of surcharge parameter

Request

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired
Example:povinny
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobject, non-emptyrequired
curl -i -X PATCH \
  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": {
      "name": "Povinný",
      "code": "povinny",
      "displayName": "Povinny",
      "description": "Popisek",
      "priority": 1,
      "googleMapping": "google:gender",
      "currency": "CZK",
      "required": true,
      "includingVat": true
    }
  }'

Responses

OK

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