EET subject

EET subject schema

id long? EET subject ID - cannot be null in PUT/PATCH methods πŸ“Ά EQUALS,ENUM πŸ”½ NONE

_cloudId integer Cloud ID πŸ”½ NONE

deleted boolean EET subject deleted - cannot be true in POST/PUT/PATCH methods πŸ“Ά EQUALS, ENUM πŸ”½ BOTH

enabled boolean EET subject enabled πŸ“Ά EQUALS, ENUM

name string(500) EET subject name πŸ“Ά STRING πŸ”½ BOTH

vatId string(50) EET subject VAT ID (CZ: DIČ, PL: NIP). Validation regex. πŸ“Ά EQUALS πŸ”½ NONE

vatPayer boolean EET subject is a VAT payer πŸ“Ά EQUALS, ENUM

versionDate timestamp? Last modification date and time πŸ“Ά EQUALS, ENUM, NUMBER πŸ”½ BOTH

EET subject response

{
"_cloudId": <integer>,
"deleted": <boolean>,
"enabled": <enabled>,
"id": <long>,
"name": <string>,
"vatId": <string>,
"vatPayer": <boolean>,
"versionDate": <timestamp>
}

get
Get EET subjects

https://api.dotykacka.cz/v2/clouds/:cloudid/eet-subjects
Request
Response
Request
Path Parameters
cloudId
required
integer
​
Headers
If-None-Match
optional
string
ETag to return results only if changed.
Authorization
required
string
Bearer accessToken
Query Parameters
page
optional
integer
​
limit
optional
integer
​
sort
optional
string
​
filter
optional
string
​
Response
200: OK
Cake successfully retrieved.
​
400: Bad Request
​
404: Not Found
Could not find a cake matching this query.
​

get
Get EET subject

https://api.dotykacka.cz/v2/clouds/:cloudId/eet-subjects/:eetSubjectId
Request
Response
Request
Path Parameters
cloudId
required
integer
​
eetSubjectId
required
integer
​
Headers
If-None-Match
optional
string
ETag to return results only if changed.
Authorization
required
string
Bearer accessToken
Response
200: OK
EET subject scheme
{
EET subject scheme...
}
400: Bad Request
​
404: Not Found
​

post
Create EET subject

https://api.dotykacka.cz/v2/clouds/:cloudid/eet-subjects
Request
Response
Request
Path Parameters
eetSubjectId
required
integer
​
cloudId
required
integer
​
Headers
Authorization
required
string
Bearer accessToken
Body Parameters
required
array
Array of eet subjects. Maximum size 100.
Response
200: OK
Cake successfully retrieved.
​
400: Bad Request
​
404: Not Found
Could not find a cake matching this query.
​
// Body request minimmum
[
{
"_cloudId": <integer>,
"deleted": <boolean>,
"enabled": <enabled>,
"name": <string>,
"vatId": <string>,
"vatPayer": <boolean>,
"versionDate": <timestamp>
}
]

put
Replace or create EET subjects

https://api.dotykacka.cz/v2/clouds/:cloudid/eet-subjects
Request
Response
Request
Path Parameters
cloudId
required
integer
​
Headers
If-Match
required
string
ETag to update only if not changed.
Authorization
required
string
Bearer accessToken
Body Parameters
required
array
Array of eet subjects. Maximum size 100.
Response
200: OK
Cake successfully retrieved.
​
400: Bad Request
​
404: Not Found
Could not find a cake matching this query.
​
// Body request minimmum
[
{
"_cloudId": <integer>,
"deleted": <boolean>,
"enabled": <enabled>,
"id": <long>,
"name": <string>,
"vatId": <string>,
"vatPayer": <boolean>,
"versionDate": <timestamp>
}
]

put
Replace or create EET subject

https://api.dotykacka.cz/v2/clouds/:cloudid/eet-subjects/:eetSubjectId
Request
Response
Request
Path Parameters
eetSubjectId
required
integer
​
cloudId
required
integer
​
Headers
If-Match
required
string
ETag to update only if not changed.
Authorization
required
string
Bearer accessToken
Body Parameters
required
object
EET subject
Response
200: OK
Cake successfully retrieved.
​
400: Bad Request
​
404: Not Found
Could not find a cake matching this query.
​
{
"_cloudId": <integer>,
"deleted": <boolean>,
"enabled": <enabled>,
"id": <long>,
"name": <string>,
"vatId": <string>,
"vatPayer": <boolean>,
"versionDate": <timestamp>
}

patch
Partial update EET subject

https://api.dotykacka.cz/v2/clouds/:cloudid/eet-subjects/:eetSubjectId
Request
Response
Request
Path Parameters
eetSubjectId
required
integer
​
cloudId
required
integer
​
Headers
If-Match
required
string
ETag to update only if not changed.
Authorization
required
string
Bearer accessToken
Body Parameters
required
object
EET subject
Response
200: OK
Cake successfully retrieved.
​
400: Bad Request
​
404: Not Found
Could not find a cake matching this query.
​

delete
Delete EET subject

https://api.dotykacka.cz/v2/clouds/:cloudid/eet-subjects/:eetSubjectId
Request
Response
Request
Path Parameters
eetSubjectId
required
integer
​
cloudId
required
integer
​
Headers
If-Match
optional
string
ETag ignored (temporarily) when deleting an entity.
Authorization
required
string
JWT token.
Response
200: OK
​