Receipts (receipt)
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 | |
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 |
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:
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_confirm | 0 | RECEIPT | Auto-confirm document; also via XML field confirm |
| XML | xd_object | VEEB | RECEIPT | Default object if not sent |
| XML | xd_project | (projekt) | RECEIPT | Default project |
| XML | xd_vatcode | 1 | RECEIPT | Default VAT code |
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>