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/08/04 09:15] – [Ressursid] 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 812: Line 836:
 |delete|kustuta| | | |delete|kustuta| | |
 |rn|rn| | | |rn|rn| | |
-==== Väljundid ====+==== Outputs ====
  
-=== Artiklid (Items) ===+=== Items (Items) ===
  
-  * what=item  [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd|Skeem ]] \\ Filtrid: class,code,type,barcode,supplier,supplieritem,closed,ts+  * what=item  [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd|Schema ]] \\ Filters: class,code,type,barcode,supplier,supplieritem,closed,ts
  
-== Artikli laolimiidid (Item stock limits) == +== Item stock limits (Item stock limits) == 
-  * what=itemstocklimit [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd|Skeem ]] \\ Filtrid: code,stock,ts+  * what=itemstocklimit [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd|Schema ]] \\ Filters: code,stock,ts
  
-== Artikli pakendid (Item packages) == +== Item packages (Item packages) == 
-  * what=itempackage [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd|Skeem ]] \\ Filtrid: code,ts+  * what=itempackage [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd|Schema ]] \\ Filters: code,ts
  
-== Seotud artikli (Item relations) == +== Item relations (Item relations) == 
-  * what=itemrelitem [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd|Skeem ]] \\ Filtrid: code,ts+  * what=itemrelitem [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd|Schema ]] \\ Filters: code,ts
  
-=== Kliendid (Customers) ===+=== Customers (Customers) ===
  
-  * what=customer [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd|Skeem ]] \\ Filtrid: code,loyaltycard,regno,email,phone,closed,ts+  * what=customer [[https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd|Schema ]] \\ Filters: code,loyaltycard,regno,email,phone,closed,ts
  
-=== Hankijad (Suppliers) ===+=== Suppliers (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.1754288149.txt.gz · Last modified: 2025/08/04 09:15 by toomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki