Absences. Domain: HR.
| what | absence |
|---|---|
| Direction | Output (get), Input (put) |
| Endpoint | POST https://login.directo.ee/xmlcore/cap_xml_direct/xmlcore.asp |
| Schema (output) | ws_puudumised.xsd |
| Schema (input) | xml_IN_puudumised.xsd |
| 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 |
| 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 |
xd_update=1 and posting the whole document. Default values (ALT.FROM): Mandatory fields.
Type=14).| 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:
session_id – for internal use at Directo side, do not send this field!| 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 |
Component-specific; add from the source wiki if this component has parameters.
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>