Sisujuht

Takings (taking)

Takings. Domain: Stock.

what taking
Direction Output (get), Input (put)
Endpoint POST https://login.directo.ee/xmlcore/cap_xml_direct/xmlcore.asp
Schema (output) ws_inventuurid.xsd
Schema (input) xml_IN_inventuurid.xsd

Output (get)

Query (get)

Parameter Description
token interface token (required)
get 1
what taking
number optional filter
chain optional filter
stock optional filter
confirmed optional filter
ts changed-since (for syncing)
XML field SQL field Type Length UI label Description
number number int 9
date aeg dateTime length: datetime
startdate aeg_algus dateTime length: datetime
chain kett int 9
stock ladu string 64 Ladu
description seletus string 510 Seletus
project projekt string 64 Projekt
shelf riiul string 64 Riiul
object objekt string 510 Objekt
account konto string 64 Konto
confirmed kinnitatud int “1” - confirmed document
ts ts dateTime document last changed

Rows

XML field SQL field Type Length UI label Description
itemcode artikkel string 64 Artikkel
sn sn string 50 SN/Mudel
quantity kogus decimal 19 Kogus decimal: 4
rn rn int 9 Rea number

Input (put)

Create: send the document. Modify: requires xd_update=1 and posting the whole document. Default values (ALT.FROM): Mandatory fields.

Header

XML field SQL field Type Length Mandatory UI label Description
number number int yes Number 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
date aeg dateTime Aeg
startdate aeg_algus dateTime Alguse aeg
chain kett int Kett
stock ladu string 64 Ladu
project projekt string 64 Projekt
shelf riiul string 64 Riiul
object objekt string 510 Objekt
account konto string 64 Konto
description seletus string 510 Seletus

Do not send:

Rows

XML field SQL field Type Length Mandatory UI label Description
itemcode artikkel string 64 Artikkel
sn sn string 50 SN/Mudel
variant variant string 64
quantity kogus decimal Kogus
delete kustuta int Rea kustutamiseks sisendile lisada delete=1 (rea ja artikli täpsus)!
rn rn int RN

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="TAKING" submit="Takings"/>
</results>