Contacts. Domain: Partners.
Output (get)
Query (get)
| Parameter | Description |
token | interface token (required) |
get | 1 |
what | contact |
code | optional filter |
customercode | optional filter |
suppliercode | optional filter |
email | optional filter |
pid | optional filter |
closed | optional filter |
ts | changed-since (for syncing) |
| XML field | SQL field | Type | Length | UI label | Description |
code | kood | int | | Kontakt | used for update, leave this field out to create new contacts |
customercode | kl_kood | string | 32 | Klient | |
suppliercode | h_kood | string | 32 | Hankija | |
name | nimi | string | 255 | Kontaktisik | |
address1 | aadress1 | string | 255 | aadress, ! vastavalt seadetele | |
address2 | aadress2 | string | 200 | aadress, ! vastavalt seadetele | |
address3 | aadress3 | string | 100 | aadress, ! vastavalt seadetele | |
phone | telefon | string | 64 | Telefon | |
email | email | string | 255 | meil | |
comment | kommentaar | string | 255 | Kommentaar 1 | |
mobile | mobiil | string | 64 | Mobiil | |
sex | sugu | int | 1 | Sugu | female = 1, male = 0 |
firstname | eesnimi | string | 125 | | |
lastname | perenimi | string | 125 | | |
birthday | synnipaev | dateTime | | | |
pid | isikukood | string | 50 | | |
closed | suletud | int | | | |
ts | ts | dateTime | | | document last changed |
| XML field | SQL field | Type | Length | UI label | Description |
code | kood | string | 32 | | |
content | sisu | string | 2000 | Sisu | |
param | param | string | 64 | Parameeter | |
Create: send the document.
Modify: requires
xd_update=1 and posting the
whole document. Default values (
ALT.FROM):
Mandatory fields.
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
code | kood | int | | | Kontakt | used for update, leave this field out to create new contacts |
customercode | kl_kood | string | 32 | | Klient | |
customername | kl_nimi | string | 255 | | Klient Nimi | |
suppliercode | h_kood | string | 32 | | Hankija | |
suppliername | h_nimi | string | 255 | | Hankija Nimi | |
name | nimi | string | 255 | | Kontaktisik | |
address1 | aadress1 | string | 255 | | aadress, ! vastavalt seadetele | |
address2 | aadress2 | string | 200 | | aadress, ! vastavalt seadetele | |
address3 | aadress3 | string | 100 | | aadress, ! vastavalt seadetele | |
phone | telefon | string | 64 | | Telefon | |
fax | faks | string | 64 | | Faks | |
email | email | string | 255 | | meil | |
comment | kommentaar | string | 255 | | Kommentaar 1 | |
comment2 | komment2 | string | 255 | | Kommentaar 2 | |
title | tiitel | string | 255 | | Tiitel | |
department | osakond | string | 255 | | Osakond | |
occupation | amet | string | 255 | | Amet | |
mobile | mobiil | string | 64 | | Mobiil | |
county | maakond | string | 32 | | Maakond | |
authorizationtime | volitus_aeg | dateTime | | | kehtivus | |
authorizationlimit | volitus_limiit | decimal | | | Volituse limiit | |
officephone | telefon_too | string | 50 | | Telefon tööl | |
sex | sugu | int | 1 | | Sugu | female = 1, male = 0 |
baseforauthorization | volitus_alus | string | 100 | | Volituse alus | |
object | objekt | string | 255 | | Objekt | |
skype | skype | string | 50 | | Skype | |
firstname | eesnimi | string | 125 | | | |
lastname | perenimi | string | 125 | | | |
birthday | synnipaev | dateTime | | | | |
pid | isikukood | string | 50 | | | |
language | keel | string | 32 | | | |
class | klass | string | 255 | | | |
homephone | telefon_kodu | string | 50 | | | |
document | dokument | string | 50 | | | |
occupationcode | amet_kood | string | 50 | | | |
closed | suletud | int | | | | |
Do not send:
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
code | kood | string | 32 | | | |
content | sisu | string | 2000 | | Sisu | |
param | param | string | 64 | | Parameeter | |
Transport parameters
Component-specific; add from the source wiki if this component has parameters.
Response
docid = number of the created/updated document. Error codes: Responses and error codes.
<results>
<Result Type="0" Desc="Created" docid="100001" doctype="CONTACT" submit="Contacts"/>
</results>