Absences (absence)
Output (get)
Query (get)
| Parameter | Description |
token | interface token (required) |
get | 1 |
what | absence |
number | optional filter |
confirmed | optional filter |
employee | optional filter |
ts | changed-since (for syncing) |
| XML field | SQL field | Type | Length | UI label | Description |
number | number | int | | | |
confirmed | kinnitatud | int | | | |
date1 | aeg1 | dateTime | | | |
date2 | aeg2 | dateTime | | | |
comment | selgitus | string | 255 | | |
employee | persoon | string | 32 | | |
ts | ts | dateTime | | | |
Rows
| XML field | SQL field | Type | Length | UI label | Description |
employee | persoon | string | 32 | | |
absencetype | r_liik | string | 32 | | |
date1 | r_aeg1 | dateTime | | | |
date2 | r_aeg2 | dateTime | | | |
comment | kommentaar | string | 255 | | |
denied | keeldus | dateTime | | | |
deniedcomment | keeldumise_kommentaar | string | | | |
inadvance | ette | int | | | |
substitute | asendaja | string | 32 | | |
rn | rn | int | | | |
Attachments: not supported. Approvals: not supported.
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
number | number | int | 9 | yes | Laekumine | document number/ID, mandatory; It must be unique for each document and remain same if more than one transaction of the same document is necessary |
date1 | aeg1 | dateTime | | | | |
date2 | aeg2 | dateTime | | | | |
comment | selgitus | string | 255 | | | |
employeecode | persoon | string | 32 | | | |
delete | kustuta | int | | | | “1” means delete |
Do not send:
Rows
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
employeecode | persoon | string | 32 | | | |
absencetype | r_liik | string | 32 | | | |
date1 | r_aeg1 | dateTime | | | | |
date2 | r_aeg2 | dateTime | | | | |
newend | uus_lopp | dateTime | | | | |
comment | kommentaar | string | 255 | | | |
inadvance | ette | int | | | | |
substitute | asendaja | string | 32 | | | |
rn | rn | int | | | | |
Transport parameters
Configured on the token (interface), not sent in xmldata. PARAMETER 2 = document type.
| TYPE | CODE | PARAMETER 1 | PARAMETER 2 | DESCRIPTION |
| XML | xd_confirm | 0 | ABSENCE | Auto-confirm document; also via XML field confirm |
| XML | xd_update | 1 | ABSENCE | Allow modifying an existing document |
Response
docid = number of the created/updated document. Error codes: Responses and error codes.
<results>
<Result Type="0" Desc="Created" docid="100001" doctype="ABSENCE" submit="Absences"/>
</results>