User Tools

Site Tools



en:xml_direct:muuk:receipt

Receipts (receipt)

Receipts. Domain: Sales.

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

Output (get)

Query (get)

Parameter Description
token interface token (required)
get 1
what receipt
number optional filter
date1 period start
date2 period end
paymentmode optional filter
confirmed optional filter
ts changed-since (for syncing)
XML field SQL field Type Length UI label Description
number number int 9 Number
paymentmode tasumisviis string 255 Tas. viis
aeg aeg string Aeg
confirmed kinnitatud int 1 confirmed document = 1
ts ts string document last changed

Rows

XML field SQL field Type Length UI label Description
invoice arvenumber int Arve nr
order ettemaks int Tellimuse nr
aeg raeg dateTime Aeg
customer klient_kood string 32 Klient
customername klient_nimi string 200 Tekst
received summa_p decimal Summa S
regno reg string 32 Reg number/IK
invoicesum summa_a decimal Arve saldo

Input (put)

Create: send the document. Modify: requires xd_update=1 and posting the whole document. Default values (ALT.FROM): Mandatory fields.
  • A confirmed document cannot be modified (response Type=14).
  • Confirmation can be controlled via the XML field confirm (in addition to xd_confirm).

Header

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
date aeg dateTime Aeg ALT.FROM: current time
description seletus string 255 Kommentaar
paymentmode tasumisviis string 255 Tas. viis
user kasutaja string 32 Kasutaja
reference viide string 32 Viide
object objekt string 255 Objekt ALT.FROM: tr.params
project projekt string 32 Projekt ALT.FROM: tr.params
location arvuti string 32 Koht
confirm kinnita int 1 confirm document = 1

Do not send:

  • session_id – for internal use at Directo side, do not send this field!

Rows

XML field SQL field Type Length Mandatory UI label Description
invoice arvenumber int Arve nr
aeg raeg dateTime Aeg ALT.FROM: receipt header
customer klient_kood string 32 Klient ALT.FROM: invoice > order > customer by regno field
order ettemaks int Tellimuse nr
customername klient_nimi string 200 Tekst ALT.FROM: invoice > order > customer by regno field
payment tasuti decimal Tasuti ALT.FROM: in case of base currency = received field
bankcurrency valuuta_p string 32 Val saadud ALT.FROM: glob.settings > 'EUR'
received summa_p decimal Summa S
currencyrate kurss_p decimal Kurss S ALT.FROM: ECB current published rates
paymentfee teenustasu decimal T-Tasu
vatcode kmk int KMk ALT.FROM: tr.params
paymentfeecurrency valuuta_teenus string 32 T-Tasu val.
description selgitus string 255 Selgitus
regno reg string 32 Reg number/IK ALT.FROM: customer
bankaccount arveldusarve string 100 Arveldusarve
objects objektid string 255 Objekt ALT.FROM: invoice > order
account r_konto string 32 Konto
fine viivis decimal Viivis
rn rn int Nr row order number in document 1 - N ALT.FROM: random

Transport parameters

Configured on the token (interface), not sent in xmldata. PARAMETER 2 = document type.

TYPE CODE PARAMETER 1 PARAMETER 2 DESCRIPTION
XML xd_vatcode 1 RECEIPT Default VAT code
XML xd_project (projekt) RECEIPT Default project

Response

docid = number of the created/updated document. Error codes: Responses and error codes.

<results>
  <Result Type="0" Desc="Created" docid="100001" doctype="RECEIPT" submit="Receipts"/>
</results>
en/xml_direct/muuk/receipt.txt · Last modified: 2026/06/25 15:24 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki