Skip to content

Update of consumption tax

Request

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
idintegerrequired

consumption tax identifier

Example:8
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/consumption-taxes/8 \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "name": "ABC",
      "price": "21.00",
      "currency": "EUR",
      "isVisible": false
    }
  }'

Responses

OK

Bodyapplication/json
dataobject(consumptionTax)required
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "id": 1, "name": "ABC", "price": "21.00", "currency": "EUR", "isVisible": false, "created": "2018-05-29T09:02:27+0200", "updated": "2018-05-29T09:02:27+0200" }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }