User Tools

Site Tools



en:xml_direct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:xml_direct [2025/07/30 15:20] – [Introduction] toomasen:xml_direct [2025/12/18 12:50] (current) – [Access to the Interface (URL)] toomas
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ======XML Direct ====== ======XML Direct ======
 =====Introduction ===== =====Introduction =====
Line 39: Line 37:
 A token must be used for access (see the ''API Key'' obtained in the previous chapter). The token replaces the older interface types' appkey and database name all at once. The token must be sent via the POST method in the ''TOKEN'' variable (similar to submitting an HTML form) to the given URL to get a result. In case of an incorrect or improperly sent token, the response is ''<result type=„5“ desc=„Unauthorized“/>''. In case token is missing the response is ''<err>token required</err>''. A token must be used for access (see the ''API Key'' obtained in the previous chapter). The token replaces the older interface types' appkey and database name all at once. The token must be sent via the POST method in the ''TOKEN'' variable (similar to submitting an HTML form) to the given URL to get a result. In case of an incorrect or improperly sent token, the response is ''<result type=„5“ desc=„Unauthorized“/>''. In case token is missing the response is ''<err>token required</err>''.
  
-**curl example **+{{page>en:xmlcore#general_technical_requirements}} 
 + 
 +====curl example ====
 <code> <code>
 curl --location 'https://login.directo.ee/xmlcore/cap_xml_direct/xmlcore.asp' \ curl --location 'https://login.directo.ee/xmlcore/cap_xml_direct/xmlcore.asp' \
Line 49: Line 49:
 </code> </code>
  
 +
 +**put**
 +<code>
 +url --location 'https://login.directo.ee/xmlcore/cap_xml_direct/xmlcore_maht.asp' \
 +--header 'Content-Type: application/x-www-form-urlencoded' \
 +--data-urlencode 'token=••••••' \
 +--data-urlencode 'put=1' \
 +--data-urlencode 'what=order' \
 +--data-urlencode 'xmldata=<?xml version="1.0" encoding="utf-8"?>
 +<orders>
 +    <order number="100034" date="2024-07-11T00:00:00" vatzone="0" paymentterm="K" object="xx,WEB,XML,WEBSHOP" currency="EUR" currate="1.000000000" customercode="TEST1" customername="Test klient OÜ" salesman="XML" deliverymethod="KULLER" customerordernumber="#1" email="xx.yyy@directo.ee" stock="PL" country="EE" phone="+372xxxxxx" address1="Mõisa tee 4" address2="10101, Tallinn" address3="Eesti" deliveryaddress1="Mõisa 4" deliveryaddress2="10101, Tallinn" deliveryaddress3="Eesti" deliveryname="deliveryname3" factoring="001" deliveryterm="CFR" language="eng" deliverymethodcomment="Testing field" text1="Testing field 2" text2="Testing field 3">
 +        <rows>
 +            <row item="0001" price="37.5" quantity="1" sum="37.5" rn="1" rr="1"/>
 +            <row item="0002" price="20.83" quantity="1" sum="20.83" rn="2" rr="2"/>
 +        </rows>
 + <attachments>
 + <attachment>
 + <data>VGVzdA==</data>
 + <name>Test.txt</name>
 +      </attachment>
 +    </attachments>
 +    </order>
 +</orders>'
 +</code>
  
 =====Price ====== =====Price ======
Line 218: Line 242:
 To configure default invoice values, read more [[https://wiki.directo.ee/et/kohustuslik|here]] To configure default invoice values, read more [[https://wiki.directo.ee/et/kohustuslik|here]]
  
-===Tellimused ===+===Orders ===
 what=order  what=order
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimused.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimused.xsd|Schema ]]
  
-== Päis: === +== Header: === 
-^ XML väli              ^ SQL väli               ^ UI väli                                Selgitus                                                                                                                                                                   +^ XML field             ^ SQL field              ^ UI field                               Explanation                                                                                                                                                     
-| session_id            | x                      |                                        | for internal use at Directo side, do not send this field!                                                                                                                  +| session_id            | x                      |                                        | for internal use at Directo side, do not send this field!                                                                                                       
-| number                | number                 Tellimus                               | 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                          +| number                | number                 Order                                  | 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               
-| customercode          | klient_kood            | Klient                                 | mandatory by default!                                                                                                                                                      +| customercode          | klient_kood            | Customer                               | mandatory by default!                                                                                                                                           
-| customername          | klient_nimi            |                                        | ALT.FROM: customer                                                                                                                                                         +| customername          | klient_nimi            |                                        | ALT.FROM: customer                                                                                                                                              
-| date                  | aeg                    | Kuupäev                                | ALT.FROM: current time                                                                                                                                                     +| date                  | aeg                    | Date                                   | ALT.FROM: current time                                                                                                                                          
-| address1              | aadress1               aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         +| address1              | aadress1               address, ! according to settings       | ALT.FROM: customer                                                                                                                                              
-| address2              | aadress2               aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         +| address2              | aadress2               address, ! according to settings       | ALT.FROM: customer                                                                                                                                              
-| address3              | aadress3               aadress, ! vastavalt seadetele         | ALT.FROM: customer                                                                                                                                                         +| address3              | aadress3               address, ! according to settings       | ALT.FROM: customer                                                                                                                                              
-| deliveryaddress1      | lahetusaadress1        | lähetusaadress, ! vastavalt seadetele                                                                                                                                                                             +| deliveryaddress1      | lahetusaadress1        | delivery address, ! according to settings                                                                                                                                                                 
-| deliveryaddress2      | lahetusaadress2        | lähetusaadress, ! vastavalt seadetele                                                                                                                                                                             +| deliveryaddress2      | lahetusaadress2        | delivery address, ! according to settings                                                                                                                                                                 
-| deliveryaddress3      | lahetusaadress3        | lähetusaadress, ! vastavalt seadetele                                                                                                                                                                             +| deliveryaddress3      | lahetusaadress3        | delivery address, ! according to settings                                                                                                                                                                 
-| paymentterm           | tingimus               T-ting                                 | ALT.FROM: customer ,  kui on kasutusel laekumiste loomineläheb see kood ka laekumise makseviisiks                                                                        +| paymentterm           | tingimus               P-term                                 | ALT.FROM: customer ,  if receipt creation is usedthis code also becomes the payment method of the receipt                                                     
-| deliverymethod        | lahetusviis            | Lähetusviis                            | ALT.FROM: customer                                                                                                                                                         +| deliverymethod        | lahetusviis            | Delivery method                        | ALT.FROM: customer                                                                                                                                              
-| customerordernumber   | kliendi_tellimus       Kliendi tellnr.                                                                                                                                                                                                 +| customerordernumber   | kliendi_tellimus       Customer's order no                                                                                                                                                                                  
-| email                 | email                  | meil                                   | ALT.FROM: customer                                                                                                                                                         +| email                 | email                  | e-mail                                 | ALT.FROM: customer                                                                                                                                              
-| phone                 | telefon                | Telefon                                | ALT.FROM: customer                                                                                                                                                         +| phone                 | telefon                | Phone                                  | ALT.FROM: customer                                                                                                                                              
-| comment               | kommentaar             Kommentaar                                                                                                                                                                                                        +| comment               | kommentaar             Comment                                                                                                                                                                                                
-| stock                 | ladu                   Ladu                                   | ALT.FROM: tr.params                                                                                                                                                        +| stock                 | ladu                   Stock                                  | ALT.FROM: tr.params                                                                                                                                             
-| object                | objekt                 Objekt                                 | ALT.FROM: tr.params                                                                                                                                                        +| object                | objekt                 Object                                 | ALT.FROM: tr.params                                                                                                                                             
-| contact               | esindaja               Nende esindaja                         | ALT.FROM: customer                                                                                                                                                         +| contact               | esindaja               Their representative                   | ALT.FROM: customer                                                                                                                                              
-| datafield1            | lisa_field1            | Lisaväli 1, ! või vastavalt seadetele                                                                                                                                                                             +| datafield1            | lisa_field1            | Add. field 1, ! or according to settings                                                                                                                                                                 
-| datafield2            | lisa_field2            | Lisaväli 2, ! või vastavalt seadetele                                                                                                                                                                             +| datafield2            | lisa_field2            | Add. field 2, ! or according to settings                                                                                                                                                                 
-| datafield3            | lisa_field3            | Lisaväli 3, ! või vastavalt seadetele                                                                                                                                                                             +| datafield3            | lisa_field3            | Add. field 3, ! or according to settings                                                                                                                                                                 
-| datafield4            | lisa_field4            | Lisaväli 4, ! või vastavalt seadetele                                                                                                                                                                             +| datafield4            | lisa_field4            | Add. field 4, ! or according to settings                                                                                                                                                                 
-| datafield5            | lisa_field5            | Lisaväli 5, ! või vastavalt seadetele                                                                                                                                                                             +| datafield5            | lisa_field5            | Add. field 5, ! or according to settings                                                                                                                                                                 
-| datafield6            | lisa_field6            | Lisaväli 6, ! või vastavalt seadetele                                                                                                                                                                             +| datafield6            | lisa_field6            | Add. field 6, ! or according to settings                                                                                                                                                                 
-| datafield7            | lisa_field7            | Lisaväli 7, ! või vastavalt seadetele                                                                                                                                                                             +| datafield7            | lisa_field7            | Add. field 7, ! or according to settings                                                                                                                                                                 
-| paymenttotal          | laekumine_summa        |                                        | :!: Positive number will create receipt with same doc. number. If receipt with this number already exists, receipt will not be created and no notification will be issued  +| paymenttotal          | laekumine_summa        |                                        | :!: Positive number will create receipt with same doc. number. If receipt with this number already exists, receipt will not be created and no notification will be issued | 
-| vatzone               | maa                    | Maa                                    | local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0                                                                                                                    +| vatzone               | maa                    | Zone                                   | local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0                                                                                                           
-| priceformula          | hinnakiri              | Hinnavalem                                                                                                                                                                                                        +| priceformula          | hinnakiri              | Price formula                                                                                                                                                                                          
-| currency              | valuuta                | Valuuta                                | ALT.FROM: glob.settings > 'EUR'                                                                                                                                            +| currency              | valuuta                | Currency                               | ALT.FROM: glob.settings > 'EUR'                                                                                                                                 
-| currencyrate          | kurssbv1               Kurss                                  | ALT.FROM: ECB current published rates                                                                                                                                      +| currencyrate          | kurssbv1               Rate                                   | ALT.FROM: ECB current published rates                                                                                                                           
-| vatregno              | kmregnumber            | KM Reg. nr                             | ALT.FROM: customer                                                                                                                                                         +| vatregno              | kmregnumber            | VAT Reg. no                            | ALT.FROM: customer                                                                                                                                              
-| country               | asumaa                 Sihtriik                               | ALT.FROM: customer                                                                                                                                                         +| country               | asumaa                 Destination country                    | ALT.FROM: customer                                                                                                                                              
-| status                | staatus                | Staatus                                                                                                                                                                                                           +| status                | staatus                | Status                                                                                                                                                                                                 
-| delivery              | lahetusaeg             Lähetusaeg                                                                                                                                                                                                        +| delivery              | lahetusaeg             Delivery time                                                                                                                                                                                          
-| customer_type         | klient_tyyp            | KliendikaardilTüüp                   | company = 0, private citizen = 1, government institution = 2                                                                                                               +| customer_type         | klient_tyyp            | On customer cardType                 | company = 0, private citizen = 1, government institution = 2                                                                                                    
-| customer_regno        | klient_regnr           Kliendikaardil: Reg nr                                                                                                                                                                                            +| customer_regno        | klient_regnr           On customer card: Reg no                                                                                                                                                                               
-| customer_loyaltycard  | klient_kliendikaart    | KliendikaardilKliendikaart                                                                                                                                                                                      +| customer_loyaltycard  | klient_kliendikaart    | On customer cardLoyalty card                                                                                                                                                                         
-| salesman              | myyja                  | Müügiagent                             | ALT.FROM: tr.params > 'XML'                                                                                                                                                +| salesman              | myyja                  | Sales agent                            | ALT.FROM: tr.params > 'XML'                                                                                                                                     
-| project               | projekt                | Projekt                                                                                                                                                                                                           +| project               | projekt                | Project                                                                                                                                                                                                
-| deliveryname          | klient_nimi_lahetusel Nimi lähetusel                                                                                                                                                                                                    +| deliveryname          | klient_nimi_lahetusel Name on delivery                                                                                                                                                                                       
-| factoring             | arvetasub              | Arve tasub                             | ALT.FROM: customer                                                                                                                                                         +| factoring             | arvetasub              | Invoice paid by                        | ALT.FROM: customer                                                                                                                                              
-| deliveryterm          | lahetustingimus        | Lähting                                                                                                                                                                                                       +| deliveryterm          | lahetustingimus        | Delivterm                                                                                                                                                                                          
-| language              | keel                   Keel                                   | ALT.FROM: customer                                                                                                                                                         | +| language              | keel                   Language                               | ALT.FROM: customer                                                                                                                                              
- +== Rows: == 
-== Read: == +^ XML field     ^ SQL field     ^ UI field      Explanation                                                                   
-^ XML väli      ^ SQL väli      ^ UI väli     Selgitus                                                                      +| item          | artikkel      | Item          |                                                                               | 
-| item          | artikkel      | Artikkel    |                                                                               | +| description   | nimetus       Content       | ALT.FROM: item                                                                | 
-| description   | nimetus       Sisu        | ALT.FROM: item                                                                | +| price         | yhikuhind     Unit price    | unit price without vat                                                        | 
-| price         | yhikuhind     Ühikuhind   | unit price without vat                                                        | +| quantity      | kogus         Quantity      |                                                                               | 
-| quantity      | kogus         Kogus       |                                                                               | +| discount      | pross         | %             |                                                                               | 
-| discount      | pross         | %           |                                                                               | +| account       | konto         Account       | ALT.FROM: item > item class (depending on vatregion)                          | 
-| account       | konto         Konto       | ALT.FROM: item > item class (depending on vatregion)                          | +| vatcode       | kmkood        | VAT code      | ALT.FROM: customer > item > item class (depending on vatregion)               
-| vatcode       | kmkood        | KMk                       ALT.FROM: customer > item > item class (depending on vatregion) | +| unit          | yhik          | Unit          | ALT.FROM: item                                                                | 
-| unit          | yhik          | Ühik        | ALT.FROM: item                                                                | +| comment       | r_kommentaar Comment       |                                                                               | 
-| comment       | r_kommentaar Kommentaar  |                                                                               | +| variant       | variant       | Variant       |                                                                               | 
-| variant       | variant       | Variant     |                                                                               | +| deliverytime  | lahetusaeg    | Delivery time |                                                                               | 
-| deliverytime  | lahetusaeg    | Lähetusaeg  |                                                                               | +| stock         | r_ladu        | Stock         |                                                                               | 
-| stock         | r_ladu        | Ladu        |                                                                               | +| project       | projekt       Project       | ALT.FROM: item > item class                                                   | 
-| project       | projekt       Projekt     | ALT.FROM: item > item class                                                   | +| ext_sum       | ext_sum                     |                                                                               | 
-| ext_sum       | ext_sum                   |                                                                               | +| ext_id        | ext_id        |               |                                                                               | 
-| ext_id        | ext_id        |             |                                                                               | +| rn            | rn            | No.           | row order number in document 1 - N ,  ALT.FROM: random                        | 
-| rn            | rn            | Nr          | row order number in document 1 - N ,  ALT.FROM: random                        | +| rr            | rv            | Rr            | row reference for grouping, otherwise equals to rn ,  ALT.FROM: equals to rn  | 
-| rr            | rv            | Rv          | row reference for grouping, otherwise equals to rn ,  ALT.FROM: equals to rn  | +==Order transport parameters == 
- +^TYPE^CODE^PARAMETER 1^PARAMETER 2^EXPLANATION
- +|XML|xd_stock|PL|ORDER|Default stockif not sent
-==Tellimuse transpordi parameetrid == +|XML|xd_object|VEEB|ORDER|Default objectif not sent
-^TÜÜP^KOOD^PARAMEETER 1^PARAMEETER 2^SELGITUS+|XML|xd_autocustomer|1|ORDER|Automatic creation of a related customer if the customer code does not exist
-|XML|xd_stock|PL|ORDER|Vaikimisi ladukui ei saadeta+|XML|xd_confirm|0|ORDER|Automatic document confirmationthis can also be controlled with the XML field "confirm"
-|XML|xd_object|VEEB|ORDER|Vaikimisi objektkui ei saadeta+|XML|xd_update|1|ORDER|Allow document update if there are no related documents
-|XML|xd_autocustomer|1|ORDER|Automaatne seotud kliendi loomine, kui kliendi koodi ei eksisteeri+|XML|xd_autocustomer_autocode|0|ORDER|When creating a related customerthe code is created in the interface, a unique email is required and system settings for customer codes are necessary
-|XML|xd_confirm|0|ORDER|Automaatne dokumendi kinnitamineseda saab ka juhtida XML väljaga "confirm"+|XML|xd_customer_update|0|ORDER|Partial update of customer data, (name, email, phoneor according to spec
-|XML|xd_update|1|ORDER|Luba dokumendi update, kui puuduvad seotud dokumendid+|XML|xd_salesman|XML|ORDER|Default salesperson|x 
-|XML|xd_autocustomer_autocode|0|ORDER|Seotud kliendi loomisel luuakse kood liidesesunikaalne email on vajalik ja kliendi koodi süsteemiseadistused on vajalikud+|XML|xd_confirmpayment|1|ORDER|Automatic receipt confirmation
-|XML|xd_customer_update|0|ORDER|Kliendi andmete osaline update, (nimi, email, telefonvõi vastavalt spekile+|XML|xd_paymentvatcode|11|ORDER|VAT code for the created related receipt rowreceipt is generated upon sending the "paymentamount" fieldwhich must exist in the schema 
-|XML|xd_salesman|XML|ORDER|Vaikimisi müüja|x +|XML|xd_order_assemble|1|ORDER|Triggers the order assembler for items with recipes |
-|XML|xd_confirmpayment|1|ORDER|Automaatne laekumise kinnitamine+
-|XML|xd_paymentvatcode|11|ORDER|Loodava seotud laekumise rea km koodlaekumine tekib välja „paymentamount“ saatmiselmis peab skeemis olemas olema +
-|XML|xd_order_assemble|1|ORDER|Käivitab tellimuse komplekteerija retseptidega artiklitele |+
  
-Tellimuse vaikimisi väärtuste seadistamiseks loe täpsemalt [[https://wiki.directo.ee/et/kohustuslik|siit]] +To configure default order values, read more [[https://wiki.directo.ee/en/mandatory|here]] 
-===Laekumised ===+===Receipts ===
 what=receipt  what=receipt
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laekumised.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laekumised.xsd|Schema ]]
  
-== Päis: ==+== Header: ==
  
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|number|number|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 | +|number|number|Receipt| 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|Aeg| ALT.FROM: current time | +|date|aeg|Time| ALT.FROM: current time | 
-|description|seletus|Kommentaar| | +|description|seletus|Comment| | 
-|paymentmode|tasumisviis|Tasviis| | +|paymentmode|tasumisviis|Paymmethod| | 
-|user|kasutaja|Kasutaja| | +|user|kasutaja|User| | 
-|reference|viide|Viide| | +|reference|viide|Reference| | 
-|object|objekt|Objekt| ALT.FROM: tr.params | +|object|objekt|Object| ALT.FROM: tr.params | 
-|project|projekt|Projekt| ALT.FROM: tr.params | +|project|projekt|Project| ALT.FROM: tr.params | 
-|location|arvuti|Koht| |+|location|arvuti|Location| |
 |confirm|kinnita| | confirm document = 1 | |confirm|kinnita| | confirm document = 1 |
  
-==read: == +==rows: == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|invoice|arvenumber|Arve nr| | +|invoice|arvenumber|Invoice no| | 
-|aeg|raeg|Aeg| ALT.FROM: receipt header | +|aeg|raeg|Time| ALT.FROM: receipt header | 
-|customer|klient_kood|Klient| ALT.FROM: invoice > order > customer by regno field | +|customer|klient_kood|Customer| ALT.FROM: invoice > order > customer by regno field | 
-|order|ettemaks|Tellimuse nr| | +|order|ettemaks|Order No.| | 
-|customername|klient_nimi|Tekst| ALT.FROM: invoice > order > customer by regno field | +|customername|klient_nimi|Text| ALT.FROM: invoice > order > customer by regno field | 
-|payment|tasuti|Tasuti| ALT.FROM: in case of base currency = received field | +|payment|tasuti|Paid| ALT.FROM: in case of base currency = received field | 
-|bankcurrency|valuuta_p|Val saadud| ALT.FROM: glob.settings > 'EUR'+|bankcurrency|valuuta_p|Curr. received| ALT.FROM: glob.settings > 'EUR'
-|received|summa_p|Summa S| | +|received|summa_p|Amount R| | 
-|currencyrate|kurss_p|Kurss S| ALT.FROM: ECB current published rates | +|currencyrate|kurss_p|Rate R| ALT.FROM: ECB current published rates | 
-|paymentfee|teenustasu|T-Tasu| | +|paymentfee|teenustasu|S-Fee| | 
-|vatcode|kmk|KMk| ALT.FROM: tr.params | +|vatcode|kmk|VAT code| ALT.FROM: tr.params | 
-|paymentfeecurrency|valuuta_teenus|T-Tasu val.| | +|paymentfeecurrency|valuuta_teenus|S-Fee curr.| | 
-|description|selgitus|Selgitus| | +|description|selgitus|Explanation| | 
-|regno|reg|Reg number/IK| ALT.FROM: customer | +|regno|reg|Reg number/PC| ALT.FROM: customer | 
-|bankaccount|arveldusarve|Arveldusarve| | +|bankaccount|arveldusarve|Bank account| | 
-|objects|objektid|Objekt| ALT.FROM: invoice > order | +|objects|objektid|Object| ALT.FROM: invoice > order | 
-|account|r_konto|Konto| | +|account|r_konto|Account| | 
-|fine|viivis|Viivis| | +|fine|viivis|Penalty| | 
-|rn|rn|Nr|row order number in document 1 - N ,  ALT.FROM: random | +|rn|rn|No.|row order number in document 1 - N ,  ALT.FROM: random | 
- +===Transactions ===
-===Kanded ===+
 what=transaction  what=transaction
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kanded.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kanded.xsd|Schema ]]
  
-== Päis: ==+== Header: ==
  
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
 |number|number|Number| document number/ID, mandatory; With combination of field "type" it must be unique for each document and remain same if more than one transaction of the same document is necessary | |number|number|Number| document number/ID, mandatory; With combination of field "type" it must be unique for each document and remain same if more than one transaction of the same document is necessary |
-|date|aeg2|Aeg| | +|date|aeg2|Time| | 
-|reference|viide|Viide| | +|reference|viide|Reference| | 
-|comment|seletus|Seletus| | +|comment|seletus|Explanation| | 
-|type|tyyp|Tüüp| ALT.: FIN |+|type|tyyp|Type| ALT.: FIN |
  
-==read: == +==rows: == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|account|konto|Konto| | +|account|konto|Account| | 
-|object|objekt|Objektid| | +|object|objekt|Objects| | 
-|description|sisu|Sisu ALT.FROM: account | +|description|sisu|Content| ALT.FROM: account | 
-|vatcode|kmkood|KM kood| | +|vatcode|kmkood|VAT code| | 
-|quantity|kogus|Kogus| | +|quantity|kogus|Quantity| | 
-|debitamount|baas1deebet|Deebet| | +|debitamount|baas1deebet|Debit| | 
-|creditamount|baas1kreedit|Kreedit| | +|creditamount|baas1kreedit|Credit| | 
-|currencydebit|valuutadeebet|Valdeebet| | +|currencydebit|valuutadeebet|Currdebit| | 
-|currencycredit|valuutakreedit|Valkreedit| | +|currencycredit|valuutakreedit|Currcredit| | 
-|currencyrate|b1kursile|Kurss| ALT.FROM: ECB current published rates | +|currencyrate|b1kursile|Rate| ALT.FROM: ECB current published rates | 
-|currency|valuuta|Valuuta| ALT.FROM: glob.settings > 'EUR'+|currency|valuuta|Currency| ALT.FROM: glob.settings > 'EUR'
-|date|r_aeg|Aeg| | +|date|r_aeg|Time| | 
-|supplier|hankija|Hankija| | +|supplier|hankija|Supplier| | 
-|customer|klient|Klient| | +|customer|klient|Customer| | 
-|project|projekt|Projekt| | +|project|projekt|Project| | 
-|rn|rn|Nr|row order number in document 1 - N ,  ALT.FROM: random | +|rn|rn|No.|row order number in document 1 - N ,  ALT.FROM: random | 
- +===Customers=== 
-===Kliendid=== +  * When posting and modifying, code and email are always required! \\
-  * Postitamisel ja muutmisel on alati nõutud code ja email! \\+
 what=customer what=customer
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kliendid.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kliendid.xsd|Schema ]]
  
  
  
-==Kliendid == +==Customers == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|code|kood|Kood| 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 | +|code|kood|Code| 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 | 
-|name|nimi|Nimi| | +|name|nimi|Name| | 
-|object|objekt|Objekt| | +|object|objekt|Object| | 
-|address1|aadress1|aadress, ! vastavalt seadetele| | +|address1|aadress1|address, ! according to settings| | 
-|address2|aadress2|aadress, ! vastavalt seadetele| | +|address2|aadress2|address, ! according to settings| | 
-|address3|aadress3|aadress, ! vastavalt seadetele| | +|address3|aadress3|address, ! according to settings| | 
-|deliveryaddress1|lahaadress1|aadress, ! vastavalt seadetele| | +|deliveryaddress1|lahaadress1|address, ! according to settings| | 
-|deliveryaddress2|lahaadress2|aadress, ! vastavalt seadetele| | +|deliveryaddress2|lahaadress2|address, ! according to settings| | 
-|deliveryaddress3|lahaadress3|aadress, ! vastavalt seadetele| | +|deliveryaddress3|lahaadress3|address, ! according to settings| | 
-|county|maakond|Maakond| | +|county|maakond|County| | 
-|country|asumaa|Asumaa| | +|country|asumaa|Country| | 
-|contact|kontakt|Esindaja| | +|contact|kontakt|Representative| | 
-|phone|telefon|Telefon| | +|phone|telefon|Phone| | 
-|email|email|Meil| mandatory | +|email|email|E-mail| mandatory | 
-|regno|regnr|Reg nr| | +|regno|regnr|Reg no| | 
-|vatregno|kmregnr|Km reg nr| | +|vatregno|kmregnr|VAT reg no| | 
-|notice|margukiri|Märgukirjad| yes = 1 | +|notice|margukiri|Notices| yes = 1 | 
-|birthday|klient_synnipaev|Sünnipäev| | +|birthday|klient_synnipaev|Birthday| | 
-|gender|klient_sugu|Sugu| female = 1, male = 0 | +|gender|klient_sugu|Gender| female = 1, male = 0 | 
-|class|klass|Klass| | +|class|klass|Class| | 
-|type|klient_tyyp|Tüüp| company = 0, private citizen = 1, government institution = 2 | +|type|klient_tyyp|Type| company = 0, private citizen = 1, government institution = 2 | 
-|loyaltycard|kliendikaart|Kliendikaart| also used for personal ID code | +|loyaltycard|kliendikaart|Loyalty card| also used for personal ID code | 
-|deliveryname|nimi_lahetusel|Nimi lähetusel| | +|deliveryname|nimi_lahetusel|Name on delivery| | 
-|deliverymode|lahetusviis|Lähviis| | +|deliverymode|lahetusviis|Delivmethod| | 
-|alert|hoiatus|Hoiatus| | +|alert|hoiatus|Warning| | 
-|factoring|arvetasub|Arve tasub| | +|factoring|arvetasub|Invoice paid by| | 
-|fax|faks|Faks| | +|fax|faks|Fax| | 
-|comment|kommentaar|Kommentaar| | +|comment|kommentaar|Comment| | 
-|payterm|tingimus|Tasting.| | +|payterm|tingimus|Payterm.| | 
-|vatzone|maa|KM maa| local = 0, EU = 1, export = 2 | +|vatzone|maa|VAT zone| local = 0, EU = 1, export = 2 | 
-|language|keel|Keel| | +|language|keel|Language| | 
-|salesman|myyja|Müüja| | +|salesman|myyja|Salesperson| | 
-|bank|pank|Pank| | +|bank|pank|Bank| | 
-|bankaccount|arveldusarve|A/a | |+|bankaccount|arveldusarve|Acct. no | |
 |url|URL|Url| | |url|URL|Url| |
-|status|staatus|Staatus| | +|status|staatus|Status| | 
-|accountmanager|kliendihaldur|Haldur| | +|accountmanager|kliendihaldur|Manager| | 
-|dealtype|tehinguliik|Tehinguliik| | +|dealtype|tehinguliik|Transaction type| | 
-|creditlimit|limiit|Limiit| | +|creditlimit|limiit|Limit| | 
-|priceformula|hinnakiri|Hinnavalem| | +|priceformula|hinnakiri|Price formula| | 
-|specialpriceformula|hinnavalem_eri|Eripakkumised| | +|specialpriceformula|hinnavalem_eri|Special offers| | 
-|discount|ale|Soodus %| | +|discount|ale|Discount %| | 
-|destination|sihtriik|Sihtriik| |+|destination|sihtriik|Destination| |
 |firstname|eesnimi| | | |firstname|eesnimi| | |
 |lastname|perenimi| | | |lastname|perenimi| | |
-|vatcode|kmkood|KM kood| | +|vatcode|kmkood|VAT code| | 
-|extcode|valine_kood|Väline kood| | +|extcode|valine_kood|External code| | 
-|deliveryinvoice|lah_arve|LähetusLähetus ja Arve = 1, Lähetus = 0 | +|deliveryinvoice|lah_arve|ShipmentShipment and Invoice = 1, Shipment = 0 | 
-|currency|valuuta|Valuuta| |+|currency|valuuta|Currency| |
 |closed|suletud| | | |closed|suletud| | |
  
-== Lisaväljad: ==== +== Additional fields: ==== 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |code|kood| | | |code|kood| | |
-|content|sisu|Sisu| | +|content|sisu|Content| | 
-|param|param|Parameeter| | +|param|param|Parameter| | 
- +==Customer transport parameters == 
- +TYPE  CODE  PARAMETER 1  ^ PARAMETER 2  ^ EXPLANATION  ^ 
-==Kliendi transpordi parameetrid == +===Suppliers === 
-TÜÜP  KOOD  PARAMEETER 1  ^ PARAMEETER 2  ^ SELGITUS  ^ +  * When posting and modifying, code is always required! \\
- +
- +
-===Hankijad === +
-  * Postitamisel ja muutmisel on alati nõutud code! \\+
 what=supplier what=supplier
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hankijad.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hankijad.xsd|Schema ]]
  
  
  
-==hankijad: == +==suppliers: == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|code|kood|Kood| 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 | +|code|kood|Code| 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 | 
-|name|nimi|Nimi| |+|name|nimi|Name| |
 |contact|kontakt| | | |contact|kontakt| | |
 |address1|aadress1| | | |address1|aadress1| | |
Line 508: Line 523:
 |purchasinggroup|ostugrupp| | | |purchasinggroup|ostugrupp| | |
 |county|maakond| | | |county|maakond| | |
- +== suppliers additional fields: == 
-== hankijad lisaväljad: == +^XML field^SQL field^UI field^Explanation^
-^XML väli^SQL väli^UI väli^Selgitus^+
 |code|kood| | | |code|kood| | |
-|content|sisu|Sisu| | +|content|sisu|Content| | 
-|param|param|Parameeter| | +|param|param|Parameter| | 
- +===Items=== 
- +  * When filling out the item card, the interface fills the fields according to the rules [[en:mandatory|]]
-===Artiklid=== +
-  * Artikli kaardi täitmisel liides täidab valjad vastavalt reeglitele [[et:kohustuslik|]]+
  
 what=item what=item
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_artiklid.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_artiklid.xsd|Schema ]]
  
-==Artiklid== +==Items== 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
-|code|kood|Kood| 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 | +|code|kood|Code| 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 | 
-|name|nimi|Nimi| | +|name|nimi|Name| | 
-|class|klass|Klass| | +|class|klass|Class| | 
-|barcode|ribakood|Ribakood| | +|barcode|ribakood|Barcode| | 
-|areacode|piirkonnakood|Päritolu| | +|areacode|piirkonnakood|Origin| | 
-|unit|yhik|Ühik| | +|unit|yhik|Unit| | 
-|salesprice|baashind|Müügihind| without VAT | +|salesprice|baashind|Sales price| without VAT | 
-|accountlocal|konto_myyk|Müük Siseriiklik| | +|accountlocal|konto_myyk|Sales Domestic| | 
-|accounteu|konto_myyk_EU|Müük EU| | +|accounteu|konto_myyk_EU|Sales EU| | 
-|accountexport|konto_myyk_eksport|Müük Eksp| | +|accountexport|konto_myyk_eksport|Sales Exp| | 
-|vatcode|KMkood|KM Siseriiklik| | +|vatcode|KMkood|VAT Domestic| | 
-|vatcodeeu|KMkood_EU|KM EU| | +|vatcodeeu|KMkood_EU|VAT EU| | 
-|vatcodeexport|KMkood_eksport|KM mitte EU| | +|vatcodeexport|KMkood_eksport|VAT non-EU| | 
-|type|tyyp|Tüüp| ALT.FROM: tr.params, cannot be updated. 0=service; 1=stock item; 2=rental item  | +|type|tyyp|Type| ALT.FROM: tr.params, cannot be updated. 0=service; 1=stock item; 2=rental item  | 
-|minlevel|minimaaltase|Min tase| | +|minlevel|minimaaltase|Min level| | 
-|shelf|riiulikood|Riiul| | +|shelf|riiulikood|Shelf| | 
-|weight|kaal|Kaal| | +|weight|kaal|Weight| | 
-|volume|maht|Maht| | +|volume|maht|Volume| | 
-|warranty|garantii|Garantii| | +|warranty|garantii|Warranty| | 
-|package1|yhikumuut1|Pakis 1| | +|package1|yhikumuut1|In package 1| | 
-|package2|yhikumuut2|Pakis 2| | +|package2|yhikumuut2|In package 2| | 
-|sntracking|SN_jalgimine|Seeria nr| cannot be updated. 0=without sn tracking; 1=serial no tracking; 2=batch no tracking | +|sntracking|SN_jalgimine|Serial no.| cannot be updated. 0=without sn tracking; 1=serial no tracking; 2=batch no tracking | 
-|cost|ostuhind|Ostuhind| | +|cost|ostuhind|Purchase price| | 
-|object|objekt|Objekt| | +|object|objekt|Object| | 
-|recipe|retsept|Retsept| | +|recipe|retsept|Recipe| | 
-|recipetorows|retsept_ridadeks|Retsept ei asetu| | +|recipetorows|retsept_ridadeks|Recipe does not apply| | 
-|alert|hoiatus|Hoiatus| | +|alert|hoiatus|Warning| | 
-|closed|suletud|Suletud| closed = 1, open = 0 | +|closed|suletud|Closed| closed = 1, open = 0 | 
-|description|pikktekst|Kirjeldus| | +|description|pikktekst|Description| | 
-|vatprice1|hind_okonline|Lisahind 1 (customizable)| with local VAT | +|vatprice1|hind_okonline|Add. price 1 (customizable)| with local VAT | 
-|vatprice2|hind_delfi|Lisahind 2 (customizable)| with local VAT | +|vatprice2|hind_delfi|Add. price 2 (customizable)| with local VAT | 
-|vatprice3|soodus_hind1|Soodushind 1 (customizable)| with local VAT | +|vatprice3|soodus_hind1|Discount price 1 (customizable)| with local VAT | 
-|vatprice4|soodus_hind2|Soodushind 2 -customizable)| with local VAT | +|vatprice4|soodus_hind2|Discount price 2 -customizable)| with local VAT | 
-|vatprice|hind_tavaline|Tavahind| ALT.FROM: salesprice + local vat | +|vatprice|hind_tavaline|Regular price| ALT.FROM: salesprice + local vat | 
-|priority|prioriteet|Prioriteet| |+|priority|prioriteet|Priority| |
 |url|url|URL| | |url|url|URL| |
-|supplier|hankija_kood|Hankija| | +|supplier|hankija_kood|Supplier| | 
-|supplieritem|hankija_artikkel|Hankartikkel| | +|supplieritem|hankija_artikkel|Suppitem| | 
-|maxlevel|maksimaaltase|Max tase| | +|maxlevel|maksimaaltase|Max level| | 
-|abc|abc|ABC klass| | +|abc|abc|ABC class| | 
-|cn8code|cn8_kood|CN8 kood| | +|cn8code|cn8_kood|CN8 code| | 
-|cnkogus|cnkogus|CN kogus| | +|cnkogus|cnkogus|CN quantity| | 
-|vatcodeeu2|KMKood_EU2|KM EU 2| | +|vatcodeeu2|KMKood_EU2|VAT EU 2| | 
-|vatcodeeu3|KMKood_EU3|KM EU 3| | +|vatcodeeu3|KMKood_EU3|VAT EU 3| | 
-|vatcodeconcern|KMKood_kontsern|KM kontsern| | +|vatcodeconcern|KMKood_kontsern|VAT concern| | 
-|accounteu2|konto_myyk_EU2|Müük EU 2| | +|accounteu2|konto_myyk_EU2|Sales EU 2| | 
-|accounteu3|konto_myyk_EU3|Müük EU 3| | +|accounteu3|konto_myyk_EU3|Sales EU 3| | 
-|accountconcern|konto_myyk_kontsern|Müük kontsern| | +|accountconcern|konto_myyk_kontsern|Sales concern| | 
-|snclass|sn_klass|SN klass| | +|snclass|sn_klass|SN class| | 
-|normarrivaltime|norm_aeg|Norm saabumisaeg| | +|normarrivaltime|norm_aeg|Normal arrival time| | 
-|replacement|asendus|Asendus| | +|replacement|asendus|Replacement| | 
-|snrule|sn_reegel|SN reegel| | +|snrule|sn_reegel|SN rule| | 
-|project|projekt|Projekt| |+|project|projekt|Project| |
 |variants|variandid|Variant| cannot be updated. 0=no; 1=yes | |variants|variandid|Variant| cannot be updated. 0=no; 1=yes |
 |autosn|auto_sn|Auto SN| | |autosn|auto_sn|Auto SN| |
-|specialprice1|kaibeta_hind1|Artikli käibeta lisahind1 (customizable)| | +|specialprice1|kaibeta_hind1|Item add. price w/o VAT 1 (customizable)| | 
-|specialprice2|kaibeta_hind2|Artikli käibeta lisahind2 (customizable)| | +|specialprice2|kaibeta_hind2|Item add. price w/o VAT 2 (customizable)| | 
-|specialprice3|kaibeta_hind3|Artikli käibeta lisahind3 (customizable)| | +|specialprice3|kaibeta_hind3|Item add. price w/o VAT 3 (customizable)| | 
-|specialprice4|kaibeta_hind4|Artikli käibeta lisahind4 (customizable)| | +|specialprice4|kaibeta_hind4|Item add. price w/o VAT 4 (customizable)| | 
-|specialprice5|kaibeta_hind5|Artikli käibeta lisahind5 (customizable)| | +|specialprice5|kaibeta_hind5|Item add. price w/o VAT 5 (customizable)| | 
-|specialprice6|kaibeta_hind6|Artikli käibeta lisahind6 (customizable)| | +|specialprice6|kaibeta_hind6|Item add. price w/o VAT 6 (customizable)| | 
-|specialprice7|kaibeta_hind7|Artikli käibeta lisahind7 (customizable)| | +|specialprice7|kaibeta_hind7|Item add. price w/o VAT 7 (customizable)| | 
-|specialprice8|kaibeta_hind8|Artikli käibeta lisahind8 (customizable)| | +|specialprice8|kaibeta_hind8|Item add. price w/o VAT 8 (customizable)| | 
-|height|korgus|Kõrgus| | +|height|korgus|Height| | 
-|width|laius|Laius| | +|width|laius|Width| | 
-|depth|sygavus|Sügavus| | +|depth|sygavus|Depth| | 
-|grossweight|kaal_bruto|Bruto kaal| | +|grossweight|kaal_bruto|Gross weight| | 
-|giftcert|kinkekaart|Kinkekaart| | +|giftcert|kinkekaart|Gift card| | 
-|manufacturer|tootja|Tootja| | +|manufacturer|tootja|Manufacturer| | 
- +== Items additional fields: == 
-== Artiklid lisaväljad: == +^XML field^SQL field^UI field^Explanation^
-^XML väli^SQL väli^UI väli^Selgitus^+
 |code|kood| | | |code|kood| | |
-|content|sisu|Sisu| | +|content|sisu|Content| | 
-|param|param|Parameeter| |+|param|param|Parameter| |
  
-== Artiklid pakendid: == +== Items packages: == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|class|pakendi_klass|Klass| | +|class|pakendi_klass|Class| | 
-|type|pakendi_tyyp|Tüüp| | +|type|pakendi_tyyp|Type| | 
-|height|korgus|Kõrgus| | +|height|korgus|Height| | 
-|width|laius|Laius| | +|width|laius|Width| | 
-|length|pikkus|Pikkus| | +|length|pikkus|Length| | 
-|volume|maht|Maht| | +|volume|maht|Volume| | 
-|qty|kogus|Pak.kogus| | +|qty|kogus|Packqty| | 
-|packageweight|pakendi_kaal|Pakendi kaal| | +|packageweight|pakendi_kaal|Package weight| | 
-|productweight|toote_kaal|Toote kaal| | +|productweight|toote_kaal|Product weight| | 
-|totalweight|kaal_kokku|KOKKU kaal| | +|totalweight|kaal_kokku|TOTAL weight| | 
-|totalvolume|maht_kokku|KOKKU maht| | +|totalvolume|maht_kokku|TOTAL volume| | 
-|barcode|ribakood|Ribakood| | +|barcode|ribakood|Barcode| | 
-|comment|kommentaar|Kommentaar| | +|comment|kommentaar|Comment| | 
-|shelf|riiul|Riiul| | +|shelf|riiul|Shelf| | 
- +== Items supplier items: == 
-== Artiklid hankija artiklid: == +^XML field^SQL field^UI field^Explanation
-^XML väli^SQL väli^UI väli^Selgitus+|supplier|hankija|Supplier| | 
-|supplier|hankija|Hankija| | +|supplieritem|hankija_artikkel|Suppitem| | 
-|supplieritem|hankija_artikkel|Hankartikkel| | +|name|nimi|Name| | 
-|name|nimi|Nimi| | +|price|hind|Purchase price| | 
-|price|hind|Ostuhind| | +|normarrivaltime|norm_aeg|Normal arrival time| | 
-|normarrivaltime|norm_aeg|Norm saabumisaeg| | +|object|objekt|Object| |
-|object|objekt|Objekt| |+
 |variant|variant|Variant| | |variant|variant|Variant| |
 |varianta|varianta|VariantA - (customizable)| | |varianta|varianta|VariantA - (customizable)| |
Line 635: Line 645:
 |variantg|variantg|VariantG - (customizable)| | |variantg|variantg|VariantG - (customizable)| |
 |varianth|varianth|VariantH - (customizable)| | |varianth|varianth|VariantH - (customizable)| |
-|salesprice|myygihind|Müügihind| without VAT|+|salesprice|myygihind|Sales price| without VAT|
 |sales|myyk|| ALT.FROM: tr.params, cannot be updated ,  sales item = 1, supplier item = 0 | |sales|myyk|| ALT.FROM: tr.params, cannot be updated ,  sales item = 1, supplier item = 0 |
- +== Items - minmax: == 
-== Artiklid - minmax: == +^XML field^SQL field^UI field^Explanation
-^XML väli^SQL väli^UI väli^Selgitus+|stock|ladu|Stock| | 
-|stock|ladu|Ladu| | +|shelf|riiul|Shelf| |
-|shelf|riiul|Riiul| |+
 |variant|variant|Variant| | |variant|variant|Variant| |
 |minlevel|min_kogus|MIN| | |minlevel|min_kogus|MIN| |
 |maxlevel|max_kogus|MAX| | |maxlevel|max_kogus|MAX| |
- +==Item transport parameters == 
-==Artikli transpordi parameetrid == +^TYPE ^CODE ^PARAMETER 1 ^PARAMETER 2 ^EXPLANATION
-^TÜÜP ^KOOD ^PARAMEETER 1 ^PARAMEETER 2 ^SELGITUS+|XML |xd_supplieritemtype |0 |ITEM |0 = supplier item; 1 = sales item 
-|XML |xd_supplieritemtype |0 |ITEM |0 = hankija artikkel; 1 = müügi artikkel +|XML |type |1 |ITEM |1 = stock item 
-|XML |type |1 |ITEM |1 = laoartikkel | +===Purchase Invoices ===
- +
- +
-===Ostuarved ===+
  
 what=purchase what=purchase
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_oarved.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_oarved.xsd|Schema ]]
  
-==Päis== +==Header== 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | for internal use at Directo side, do not send this field! | |session_id|x| | for internal use at Directo side, do not send this field! |
 |number|number|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 | |number|number|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|Arve aeg| ALT.FROM: current time | +|date|aeg|Invoice time| ALT.FROM: current time | 
-|duedate|tas_aeg|Tas. aeg| | +|duedate|tas_aeg|Due time| | 
-|sum|summa|Tasuda| sum with vat | +|sum|summa|To be paid| sum with vat | 
-|supplierinvoiceno|hankija_arve|Hankija arve| | +|supplierinvoiceno|hankija_arve|Supplier invoice| | 
-|paymentterm|tingimus|Tasting.| ALT.FROM: supplier | +|paymentterm|tingimus|Payterm.| ALT.FROM: supplier | 
-|suppliercode|hankija_kood|Hankija| |+|suppliercode|hankija_kood|Supplier| |
 |suppliername|hankija_nimi|| ALT.FROM: supplier | |suppliername|hankija_nimi|| ALT.FROM: supplier |
 |bankaccount|pangakonto| | ALT.FROM: supplier | |bankaccount|pangakonto| | ALT.FROM: supplier |
-|reference|viide|Viitenumber| ALT.FROM: supplier | +|reference|viide|Reference number| ALT.FROM: supplier | 
-|transactiontime|kande_aeg|Opaeg| | +|transactiontime|kande_aeg|Opertime| | 
-|creditaccount|kred_konto|Kredkonto| ALT.FROM: supplier > glob.settings | +|creditaccount|kred_konto|Credaccount| ALT.FROM: supplier > glob.settings | 
-|factoring|arve_tasub|Arve tasub| | +|factoring|arve_tasub|Invoice paid by| | 
-|currency|valuuta|Valuuta| ALT.FROM: glob.settings > 'EUR'+|currency|valuuta|Currency| ALT.FROM: glob.settings > 'EUR'
-|currencyrate|kurssbv1|Kurss| ALT.FROM: ECB current published rates | +|currencyrate|kurssbv1|Rate| ALT.FROM: ECB current published rates | 
-|vatzone|maa|KM Maa (peidetud väli)| local = 0, EU = 1, export = 2 ,  ALT.FROM: supplier > 0 | +|vatzone|maa|VAT Zone (hidden field)| local = 0, EU = 1, export = 2 ,  ALT.FROM: supplier > 0 | 
-|comment|kommentaar|Kommentaar| | +|comment|kommentaar|Comment| | 
-|vat|arvestatudkm|KM kokku| | +|vat|arvestatudkm|VAT total| | 
-|object|objekt|Objekt| ALT.FROM: supplier > tr.params | +|object|objekt|Object| ALT.FROM: supplier > tr.params | 
-|bankcode|pangakood|Pangakood| | +|bankcode|pangakood|Bank code| | 
-|creditpurchase|kredost|Kredost| | +|creditpurchase|kredost|Cred. purch.| | 
-|purchaseorder|ostutellimus|Ostutellimus| | +|purchaseorder|ostutellimus|Purchase order| | 
-|project|projekt|Projekt| | +|project|projekt|Project| | 
-|email|email|meil| ALT.FROM: supplier | +|email|email|e-mail| ALT.FROM: supplier | 
-|stockreceipt|sissetulek|Sissetulek| | +|stockreceipt|sissetulek|Stock receipt| | 
-|country|asumaa|Saatjariik| ALT.FROM: supplier | +|country|asumaa|Origin country| ALT.FROM: supplier | 
-|prepayment|ettemaks|Ettemaks| | +|prepayment|ettemaks|Prepayment| | 
-|status|staatus|Staatus| | +|status|staatus|Status| | 
-|type|tyyp|Tüüp| | +|type|tyyp|Type| | 
-|dividedsum|jagatav_summa|Jagatav summa| | +|dividedsum|jagatav_summa|Divisible sum| | 
-|vatdate|km_aeg|KM aeg| ALT.FROM: date > current time | +|vatdate|km_aeg|VAT time| ALT.FROM: date > current time | 
-|reclamation|reklamatsioon|Reklamatsioon| | +|reclamation|reklamatsioon|Reclamation| | 
-|reclamationcomment|rekl_selgitus|Reklselgitus| | +|reclamationcomment|rekl_selgitus|Reclexplanation| | 
-|asset|inventar|Inventar| |+|asset|inventar|Asset| |
 |datafield1|lisa_field1|| | |datafield1|lisa_field1|| |
 |datafield2|lisa_field2|| | |datafield2|lisa_field2|| |
Line 701: Line 707:
 |datafield6|lisa_field6|| | |datafield6|lisa_field6|| |
 |datafield7|lisa_field7|| | |datafield7|lisa_field7|| |
-|intcomment|sisekommentaar|Sisekommentaar| | +|intcomment|sisekommentaar|Internal comment| | 
-|supplier_class|hankija_klass|Klass| | +|supplier_class|hankija_klass|Class| | 
-|supplier_vatcountry|hankija_maa_tasu|KM-maa| local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0 | +|supplier_vatcountry|hankija_maa_tasu|VAT-zone| local = 0, EU = 1, export = 2 ,  ALT.FROM: customer > 0 | 
-|supplier_regno|hankija_regnr1|Reg nr 1| | +|supplier_regno|hankija_regnr1|Reg no 1| | 
-|supplier_vatregno|hankija_kmregnr|Km reg nr| | +|supplier_vatregno|hankija_kmregnr|VAT reg no| | 
-|supplier_type|hankija_tyyp|Tüüp| | +|supplier_type|hankija_tyyp|Type| | 
-|confirm|kinnita|Olek| "1" - confirm document |+|confirm|kinnita|State| "1" - confirm document |
  
-==read == +==rows == 
-^XML väli^SQL väli^UI väli^Selgitus+^XML field^SQL field^UI field^Explanation
-|account|konto|Konto| | +|account|konto|Account| | 
-|object|objekt|Objekt ALT.FROM: project | +|object|objekt|Object| ALT.FROM: project | 
-|name|sisu|Sisu|  ALT.FROM: account | +|name|sisu|Content|  ALT.FROM: account | 
-|linetotalwovat|summa|Summa| | +|linetotalwovat|summa|Sum| | 
-|vatcode|kmkood|KMK|  ALT.FROM: supplier > account > object | +|vatcode|kmkood|VAT code|  ALT.FROM: supplier > account > object | 
-|project|projekt|Projekt| | +|project|projekt|Project| | 
-|customer|klient_kood|Klient| | +|customer|klient_kood|Customer| | 
-|item|artikkel|Artikkel| | +|item|artikkel|Item| | 
-|quantity|kogus|Kogus| | +|quantity|kogus|Quantity| | 
-|date1|r_aeg1|Algus| | +|date1|r_aeg1|Start| | 
-|date2|r_aeg2|Lõpp| | +|date2|r_aeg2|End| | 
-|contract|leping|Leping| | +|contract|leping|Contract| | 
-|user|kasutaja|Kasutaja| |+|user|kasutaja|User| |
 |oid|oid|OID| | |oid|oid|OID| |
 |orderrn|trn|| | |orderrn|trn|| |
-|asset|r_inventar|Inventar| | +|asset|r_inventar|Asset| | 
-|price|myygihind|Müügihind| |+|price|myygihind|Sales price| |
 |constant1|konstant1| | | |constant1|konstant1| | |
 |constant2|konstant2| | | |constant2|konstant2| | |
Line 736: Line 742:
 |text3|tekst3|| | |text3|tekst3|| |
 |text4|tekst4|| | |text4|tekst4|| |
-|intcomment|r_sisekommentaar|Sisekommentaar| | +|intcomment|r_sisekommentaar|Internal comment| | 
-|vatsum|km|KM| | +|vatsum|km|VAT| | 
-|rn|rn|Nr| |+|rn|rn|No.| |
  
-==manused == +==attachments == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |name |attachment_name | | | |name |attachment_name | | |
 |description |attachment_kirjeldus | | | |description |attachment_kirjeldus | | |
-|code |kood| | for updating excisting attachments, do not send this field for new attachments |+|code |kood| | for updating existing attachments, do not send this field for new attachments |
 |sharepoint_link |cloud_preview_query| | external Sharepoint attachment link  | |sharepoint_link |cloud_preview_query| | external Sharepoint attachment link  |
 |gdrive_link |cloud_gdrive| | external Google Drive attachment link  | |gdrive_link |cloud_gdrive| | external Google Drive attachment link  |
 |ext_link|cloud_ext_link | | external attachment link, must be full external link starting with <code>http://</code>  | |ext_link|cloud_ext_link | | external attachment link, must be full external link starting with <code>http://</code>  |
- +==Purchase invoice transport parameters == 
-==Ostuarve transpordi parameetrid == +TYPE  CODE                      PARAMETER 1  ^ PARAMETER 2  ^ EXPLANATION                                                                                                      
-TÜÜP  KOOD                      PARAMEETER 1  ^ PARAMEETER 2  ^ SELGITUS                                                                                                                          +| XML   | xd_autosupplier           | 1             | PURCHASE      | Automatic creation of a related supplier if the supplier code does not exista unique reg. number is a prerequisite 
-| XML   | xd_autosupplier           | 1             | PURCHASE      | Automaatne seotud hankija loominekui hankija koodi ei eksisteeri, unikaalne regnr on eelduseks                                  +| XML   | xd_autosupplier_autocode  | 0             | PURCHASE      | When creating a related supplierthe code is created in the interface, a unique reg. number is required and system settings for supplier codes are necessary 
-| XML   | xd_autosupplier_autocode  | 0             | PURCHASE      | Seotud hankija loomisel luuakse kood liidesesunikaalne reg.number on vajalik ja hankija koodi süsteemiseadistused on vajalikud  +| XML   | xd_update                 | 0             | PURCHASE      | Allow document update if there are no related documents                                                          
-| XML   | xd_update                 | 0             | PURCHASE      | Luba dokumendi update, kui puuduvad seotud dokumendid                                                                             +| XML   | supplier_update           | 0             | PURCHASE      | Partial update of supplier data, (email, ... ) fields need to be specified in the spec                             
-| XML   | supplier_update           | 0             | PURCHASE      | Hankija andmete osaline update, (email, ... ) väljad on vaja spekis täpsustada                                                    +| XML   | xd_object                 | VEEB          | PURCHASE      | Default objectif not sent                                                                                      
-| XML   | xd_object                 | VEEB          | PURCHASE      | Vaikimisi objektkui ei saadeta                                                                                                  +| XML   | xd_confirm                | 0             | PURCHASE      | Automatic document confirmationthis can also be controlled with the XML field "confirm"   
-| XML   | xd_confirm                | 0             | PURCHASE      | Automaatne dokumendi kinnitamineseda saab ka juhtida XML väljaga "confirm"                                                      | +===Resources ===
- +
- +
-===Ressursid ===+
  
 what=resource what=resource
-[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_ressursid.xsd|Skeem ]]+[[https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_ressursid.xsd|Schema ]]
  
  
  
-== Päis: == +== Header: == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |session_id|x| | | |session_id|x| | |
 |ext_unique_id|ext_unique_id| | | |ext_unique_id|ext_unique_id| | |
Line 788: Line 791:
 |confirm|kinnita| | | |confirm|kinnita| | |
  
-== Read: == +== Rows: == 
-^XML väli^SQL väli^UI väli^Selgitus^+^XML field^SQL field^UI field^Explanation^
 |item|artikkel| | | |item|artikkel| | |
 |quantity|kogus| | | |quantity|kogus| | |
Line 833: Line 836:
 |delete|kustuta| | | |delete|kustuta| | |
 |rn|rn| | | |rn|rn| | |
 +==== Outputs ====
  
-==== Väljundid ====+=== Items (Items) ===
  
-=== Artiklid (Items) ===+  * what=item  [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd|Schema ]] \\ Filters: class,code,type,barcode,supplier,supplieritem,closed,ts
  
-  * what=item  [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd|Skeem ]] \\ Filtridclass,code,type,barcode,supplier,supplieritem,closed,ts+== Item stock limits (Item stock limits) == 
 +  * what=itemstocklimit [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd|Schema ]] \\ Filters: code,stock,ts
  
-== Artikli laolimiidid (Item stock limits) == +== Item packages (Item packages) == 
-  * what=itemstocklimit [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd|Skeem ]] \\ Filtrid: code,stock,ts+  * what=itempackage [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd|Schema ]] \\ Filters: code,ts
  
-== Artikli pakendid (Item packages) == +== Item relations (Item relations) == 
-  * what=itempackage [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd|Skeem ]] \\ Filtrid: code,ts+  * what=itemrelitem [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd|Schema ]] \\ Filters: code,ts
  
-== Seotud artikli (Item relations) == +=== Customers (Customers) ===
-  * what=itemrelitem [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd|Skeem ]] \\ Filtrid: code,ts+
  
-=== Kliendid (Customers) ===+  * what=customer [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd|Schema ]] \\ Filters: code,loyaltycard,regno,email,phone,closed,ts
  
-  * what=customer [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd|Skeem ]] \\ Filtrid: code,loyaltycard,regno,email,phone,closed,ts +=== Suppliers (Suppliers) ===
- +
-=== Hankijad (Suppliers) ===+
  
   * what=supplier   * what=supplier
-  * [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hankijad.xsd|Skeem ]] \\ +  * [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hankijad.xsd|Schema ]] \\ 
-  * Filtrid: code,regno,email,closed,ts +  * Filters: code,regno,email,closed,ts
- +
-=== Laoseis (Stock levels) === +
-  * what=stocklevel [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis.xsd|Skeem ]] \\ +
-  * what= stocklevel_sn [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_sn.xsd|Skeem ]] \\ +
-  * what=stocklevel_variant [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_variandid.xsd|Skeem ]] \\ +
-  * Filtrid: code,stock,ts +
- +
-=== Hinnavalemi read (Price formula rows) ===+
  
-  * what=priceformularow [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnavalemid.xsd|Skeem ]] \\ Filtridclass,code,ts+=== Stock levels (Stock levels) === 
 +  * what=stocklevel [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis.xsd|Schema ]] \\ 
 +  * what= stocklevel_sn [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_sn.xsd|Schema ]] \\ 
 +  * what=stocklevel_variant [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_variandid.xsd|Schema ]] \\ 
 +  * Filters: code,stock,ts
  
-=== Artikli klassid (Item classes) ===+=== Price formula rows (Price formula rows) ===
  
-  * what=itemclass [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikliklassid.xsd|Skeem ]] \\ Filtrid: code,master+  * what=priceformularow [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnavalemid.xsd|Schema ]] \\ Filtersclass,code,ts
  
-=== Arved (Invoices) ===+=== Item classes (Item classes) ===
  
-  * what=invoice [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_arved.xsd|Skeem ]] \\ Filtridnumber,customercode,transactiondate,date1,date2,ts, ordernumber+  * what=itemclass [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikliklassid.xsd|Schema ]] \\ Filterscode,master
  
-=== Tellimused (Orders) ===+=== Invoices (Invoices) ===
  
-  * what=order [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_tellimused.xsd|Skeem ]] \\ Filtrid: number,date1,date2,ts, projekt, customerordernumber, stock, status+  * what=invoice [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_arved.xsd|Schema ]] \\ Filters: number,customercode,transactiondate,date1,date2,ts, ordernumber
  
-=== Finantskanded (Transactions) ===+=== Orders (Orders) ===
  
-  * what=transaction [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanded.xsd|Skeem ]] \\ Filtrid: number,date1,date2,ts+  * what=order [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_tellimused.xsd|Schema ]] \\ Filters: number,date1,date2,ts, projekt, customerordernumber, stock, status
  
-=== Laekumised (Receipts) ===+=== Financial transactions (Transactions) ===
  
-  * what=receipt [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laekumised.xsd|Skeem ]] \\ Filtrid: number,date1,date2,ts+  * what=transaction [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanded.xsd|Schema ]] \\ Filters: number,date1,date2,ts
  
-=== Ostuarved (Purchase) ===+=== Receipts (Receipts) ===
  
-  * what=purchase [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_oarved.xsd|Skeem ]] \\ Filtrid: number,date1,date2,supplier,confirmed,status,ts+  * what=receipt [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_laekumised.xsd|Schema ]] \\ Filters: number,date1,date2,ts
  
-=== Ressursid (Resources) === +=== Purchase Invoices (Purchase) ===
-  * what=resource [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_ressursid.xsd|Skeem ]] \\  +
-  * Filtrid: number,confirmed,ts+
  
-=== Kustutatud dokumendid (Deleted documents ) ===+  * what=purchase [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_oarved.xsd|Schema ]] \\ Filters: number,date1,date2,supplier,confirmed,status,ts
  
-  * what=delete [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kustutamised.xsd|Skeem ]] \\ Filtrid: number,code,document,ts+=== Resources (Resources) === 
 +  * what=resource [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_ressursid.xsd|Schema ]] \\  
 +  * Filters: number,confirmed,ts
  
 +=== Deleted documents (Deleted documents ) ===
  
 +  * what=delete [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kustutamised.xsd|Schema ]] \\ Filters: number,code,document,ts
en/xml_direct.1753878049.txt.gz · Last modified: 2025/07/30 15:20 by toomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki