Tax (VAT rates)

Configuration of various taxes. Currently the only supported type is VAT.

Tax schema

_cloudId long Cloud ID

created timestamp? Timestamp of entity creation 📶 EQUALS,ENUM,NUMBER 🔽 BOTH

deleted boolean If entity is deleted 📶 EQUALS,ENUM

flags short Flags for the tax 📶 BITS

id long? Entity ID - cannot be null in PUT/PATCH methods 📶 EQUALS,ENUM

name string? Name of the tax 📶 STRING 🔽 BOTH

value double Value of tax in percent, f.e. 20 = 20%. Must be in range <0; 100> and it must be unique - having two entities with the same value is not allowed (exempted rate is an exception). 🔽 BOTH

versionDate timestamp? Last modification date and time 📶 EQUALS,ENUM,NUMBER 🔽 BOTH

JSON response

{
    "_cloudId": <integer>,
    "created": <timestamp>,
    "deleted": <boolean>,
    "flags": <integer>,
    "id": <long>,
    "name": <string>,
    "value": <double>,
    "versionDate": <timestamp>
}

Tax flags

If flag EXEMPTED_RATE is set, the value must be 0.

Get taxes

GET https://api.dotykacka.cz/v2/clouds/:cloudId/taxes

Path Parameters

Query Parameters

Headers

[
 {
  // response schema
 }
]

Get tax

GET https://api.dotykacka.cz/v2/clouds/:cloudId/taxes/:taxId

Path Parameters

Headers

Create taxes

POST https://api.dotykacka.cz/v2/clouds/:cloudId/taxes

Path Parameters

Headers

[
 {
  // response schema
 }
]

Replace or create taxes

PUT https://api.dotykacka.cz/v2/clouds/:cloudId/taxes

Path Parameters

Headers

[
 {
  // response schema
 }

Replace or create tax

PUT https://api.dotykacka.cz/v2/clouds/:cloudId/taxes/:taxId

Path Parameters

Headers

Partial update of tax

PATCH https://api.dotykacka.cz/v2/clouds/:cloudId/taxes/:taxId

Path Parameters

Headers

Delete tax

DELETE https://api.dotykacka.cz/v2/clouds/:cloudId/taxes/:taxId

Path Parameters

Headers

Options taxes

OPTIONS https://api.dotykacka.cz/v2/clouds/:cloudId/taxes

Path Parameters

Headers

Options tax

OPTIONS https://api.dotykacka.cz/v2/clouds/:cloudId/taxes/:taxId

Path Parameters

Headers

Last updated