{ "info": { "name": "XML Direct", "_postman_id": "xml-direct-en", "description": "# XML Direct\n\nComponent-based XML interface. **Endpoint:** `{{baseURL}}/xmlcore.asp` (POST, form/urlencoded).\n\n**Auth:** `token` variable (set `token` in a Postman *environment*). **Where to get the token:** a SUPER user opens the employee card → **Admin** tab → **XML interfaces** → show key (see the wiki Authentication page). **Get:** `get=1&what=` + optional filters. **Put:** `put=1&what=&xmldata=`.\n\n**Modify:** requires `xd_update=1` and posting the whole document. Confirmed documents are not modifiable (`Type=14`) unless `xd_updateconfirmed=1` (order, invoice, purchaseorder, stockreceipt).\n\n**Structure:** organised by business domain; each component lists its get and put requests together. Each request links its XSD schema and includes an example (get: saved response; put: request body).\n\n**Response:** ``. Max XML post size 19 MB.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Sales", "description": "Sales components. Each component shows its get and put requests together.", "item": [ { "name": "Quotations (quotation) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Quotations** — output (`get=1`, `what=quotation`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_pakkumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "quotation" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Quotations** — output (`get=1`, `what=quotation`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_pakkumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "quotation" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Quotations (quotation) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Quotations** — input (`put=1`, `what=quotation`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_pakkumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "quotation" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Quotations** — input (`put=1`, `what=quotation`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_pakkumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "quotation" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Orders (order) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Orders** — output (`get=1`, `what=order`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_tellimused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "order" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "orderercode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customerordernumber", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Orders** — output (`get=1`, `what=order`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_tellimused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "order" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "orderercode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customerordernumber", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Orders (order) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Orders** — input (`put=1`, `what=order`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "order" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Orders** — input (`put=1`, `what=order`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "order" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Invoices (invoice) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Invoices** — output (`get=1`, `what=invoice`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_arved.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "invoice" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "transactiondate", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "ordernumber", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Invoices** — output (`get=1`, `what=invoice`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_arved.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "invoice" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "transactiondate", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "ordernumber", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Invoices (invoice) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Invoices** — input (`put=1`, `what=invoice`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_arved.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "invoice" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Invoices** — input (`put=1`, `what=invoice`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_arved.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "invoice" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Receipts (receipt) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Receipts** — output (`get=1`, `what=receipt`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laekumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "receipt" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "paymentmode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Receipts** — output (`get=1`, `what=receipt`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laekumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "receipt" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "paymentmode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Receipts (receipt) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Receipts** — input (`put=1`, `what=receipt`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laekumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "receipt" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Receipts** — input (`put=1`, `what=receipt`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laekumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "receipt" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Price formula rows (priceformularow) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price formula rows** — output (`get=1`, `what=priceformularow`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnavalemid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "priceformularow" }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplieritem", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price formula rows** — output (`get=1`, `what=priceformularow`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnavalemid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "priceformularow" }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplieritem", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Price formula rows (priceformularow) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price formula rows** — input (`put=1`, `what=priceformularow`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hinnavalemid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "priceformularow" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price formula rows** — input (`put=1`, `what=priceformularow`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hinnavalemid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "priceformularow" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Sales Budgets (salesbudget) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Sales Budgets** — output (`get=1`, `what=salesbudget`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_myygi_eelarved.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "salesbudget" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "artikkel", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Sales Budgets** — output (`get=1`, `what=salesbudget`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_myygi_eelarved.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "salesbudget" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "artikkel", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "Purchase", "description": "Purchase components. Each component shows its get and put requests together.", "item": [ { "name": "Purchaseorders (purchaseorder) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchaseorders** — output (`get=1`, `what=purchaseorder`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_otellimused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "purchaseorder" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchaseorders** — output (`get=1`, `what=purchaseorder`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_otellimused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "purchaseorder" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Purchaseorders (purchaseorder) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchaseorders** — input (`put=1`, `what=purchaseorder`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_otellimused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "purchaseorder" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchaseorders** — input (`put=1`, `what=purchaseorder`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_otellimused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "purchaseorder" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stockreceipts (stockreceipt) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stockreceipts** — output (`get=1`, `what=stockreceipt`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_sissetulekud.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stockreceipt" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stockreceipts** — output (`get=1`, `what=stockreceipt`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_sissetulekud.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stockreceipt" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Stockreceipts (stockreceipt) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stockreceipts** — input (`put=1`, `what=stockreceipt`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_sissetulekud.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "stockreceipt" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stockreceipts** — input (`put=1`, `what=stockreceipt`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. Confirmed documents can be modified only when `xd_updateconfirmed=1` (supported here).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_sissetulekud.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "stockreceipt" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Purchase invoices (purchase) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchase invoices** — output (`get=1`, `what=purchase`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_oarved.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "purchase" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchase invoices** — output (`get=1`, `what=purchase`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_oarved.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "purchase" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Purchase invoices (purchase) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchase invoices** — input (`put=1`, `what=purchase`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_oarved.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "purchase" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Purchase invoices** — input (`put=1`, `what=purchase`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_oarved.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "purchase" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "Stock", "description": "Stock components. Each component shows its get and put requests together.", "item": [ { "name": "Order to delivery (order2delivery) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Order to delivery** — input (`put=1`, `what=order2delivery`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimus2lahetus.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "order2delivery" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Order to delivery** — input (`put=1`, `what=order2delivery`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tellimus2lahetus.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "order2delivery" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Items (item) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Items** — output (`get=1`, `what=item`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "item" }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplieritem", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Items** — output (`get=1`, `what=item`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "item" }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplieritem", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Items (item) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Items** — input (`put=1`, `what=item`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_artiklid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "item" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Items** — input (`put=1`, `what=item`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_artiklid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "item" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Item stock limits (itemstocklimit) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item stock limits** — output (`get=1`, `what=itemstocklimit`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemstocklimit" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "shelf", "value": "X", "description": "optional filter", "disabled": true }, { "key": "variant", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item stock limits** — output (`get=1`, `what=itemstocklimit`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_laolimiidid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemstocklimit" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "shelf", "value": "X", "description": "optional filter", "disabled": true }, { "key": "variant", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Item packages (itempackage) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item packages** — output (`get=1`, `what=itempackage`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itempackage" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item packages** — output (`get=1`, `what=itempackage`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_pakendid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itempackage" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Item related items (itemrelitem) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item related items** — output (`get=1`, `what=itemrelitem`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemrelitem" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item related items** — output (`get=1`, `what=itemrelitem`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_seotud.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemrelitem" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Item accounts & vat codes (itemaccountvatcode) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item accounts & vat codes** — output (`get=1`, `what=itemaccountvatcode`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_kontod_kmkoodid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemaccountvatcode" }, { "key": "item", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item accounts & vat codes** — output (`get=1`, `what=itemaccountvatcode`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artiklid_kontod_kmkoodid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemaccountvatcode" }, { "key": "item", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Item classes (itemclass) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item classes** — output (`get=1`, `what=itemclass`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikliklassid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemclass" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "master", "value": "X", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item classes** — output (`get=1`, `what=itemclass`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikliklassid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemclass" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "master", "value": "X", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Item history (itemhistoryrow) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item history** — output (`get=1`, `what=itemhistoryrow`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikli_ajalugu.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemhistoryrow" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Item history** — output (`get=1`, `what=itemhistoryrow`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_artikli_ajalugu.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "itemhistoryrow" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Price changes (pricechange) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price changes** — output (`get=1`, `what=pricechange`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnamuutused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "pricechange" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price changes** — output (`get=1`, `what=pricechange`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_hinnamuutused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "pricechange" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Price changes (pricechange) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price changes** — input (`put=1`, `what=pricechange`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hinnamuutused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "pricechange" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Price changes** — input (`put=1`, `what=pricechange`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hinnamuutused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "pricechange" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stocks (stock) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stocks** — output (`get=1`, `what=stock`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laod.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stock" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stocks** — output (`get=1`, `what=stock`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laod.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stock" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stock levels (stocklevel) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock levels** — output (`get=1`, `what=stocklevel`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stocklevel" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock levels** — output (`get=1`, `what=stocklevel`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stocklevel" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stocklevels with Variants and/or SNs (stocklevel_variant_sn) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stocklevels with Variants and/or SNs** — output (`get=1`, `what=stocklevel_variant_sn`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_variandid_sn.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stocklevel_variant_sn" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "variant", "value": "X", "description": "optional filter", "disabled": true }, { "key": "sn", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stocklevels with Variants and/or SNs** — output (`get=1`, `what=stocklevel_variant_sn`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_variandid_sn.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stocklevel_variant_sn" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "variant", "value": "X", "description": "optional filter", "disabled": true }, { "key": "sn", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stock level allocations (allocation) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock level allocations** — output (`get=1`, `what=allocation`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_arvut.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "allocation" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "variant", "value": "X", "description": "optional filter", "disabled": true }, { "key": "sn", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock level allocations** — output (`get=1`, `what=allocation`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laoseis_arvut.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "allocation" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "variant", "value": "X", "description": "optional filter", "disabled": true }, { "key": "sn", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Recipes (recipe) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Recipes** — output (`get=1`, `what=recipe`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_retseptid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "recipe" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Recipes** — output (`get=1`, `what=recipe`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_retseptid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "recipe" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Recipes (recipe) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Recipes** — input (`put=1`, `what=recipe`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_retseptid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "recipe" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Recipes** — input (`put=1`, `what=recipe`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_retseptid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "recipe" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Deliveries (delivery) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Deliveries** — output (`get=1`, `what=delivery`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_lahetused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "delivery" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "ordernumber", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Deliveries** — output (`get=1`, `what=delivery`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_lahetused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "delivery" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "ordernumber", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Deliveries (delivery) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Deliveries** — input (`put=1`, `what=delivery`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_lahetused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "delivery" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Deliveries** — input (`put=1`, `what=delivery`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_lahetused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "delivery" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stock returns (stockreturn) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock returns** — output (`get=1`, `what=stockreturn`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_tagastused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stockreturn" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock returns** — output (`get=1`, `what=stockreturn`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_tagastused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stockreturn" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Stock returns (stockreturn) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock returns** — input (`put=1`, `what=stockreturn`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tagastused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "stockreturn" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock returns** — input (`put=1`, `what=stockreturn`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tagastused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "stockreturn" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Movements (movement) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Movements** — output (`get=1`, `what=movement`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_liikumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "movement" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "fromstock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "tostock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Movements** — output (`get=1`, `what=movement`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_liikumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "movement" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "fromstock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "tostock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Movements (movement) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Movements** — input (`put=1`, `what=movement`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_liikumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "movement" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Movements** — input (`put=1`, `what=movement`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_liikumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "movement" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Stock orders (stockorder) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock orders** — output (`get=1`, `what=stockorder`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laotellimused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stockorder" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "fromstock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "tostock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "order", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock orders** — output (`get=1`, `what=stockorder`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_laotellimused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "stockorder" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "fromstock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "tostock", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "order", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Stock orders (stockorder) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock orders** — input (`put=1`, `what=stockorder`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laotellimused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "stockorder" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Stock orders** — input (`put=1`, `what=stockorder`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_laotellimused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "stockorder" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Takings (taking) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Takings** — output (`get=1`, `what=taking`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_inventuurid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "taking" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "chain", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Takings** — output (`get=1`, `what=taking`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_inventuurid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "taking" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "chain", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Takings (taking) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Takings** — input (`put=1`, `what=taking`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_inventuurid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "taking" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Takings** — input (`put=1`, `what=taking`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_inventuurid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "taking" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Writeoffs (writeoff) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Writeoffs** — output (`get=1`, `what=writeoff`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_mahakandmised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "writeoff" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Writeoffs** — output (`get=1`, `what=writeoff`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_mahakandmised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "writeoff" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "stock", "value": "PL", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Writeoffs (writeoff) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Writeoffs** — input (`put=1`, `what=writeoff`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_mahakandmised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "writeoff" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Writeoffs** — input (`put=1`, `what=writeoff`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_mahakandmised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "writeoff" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Productions (production) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Productions** — output (`get=1`, `what=production`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_tootmised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "production" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true }, { "key": "productiondate", "value": "X", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Productions** — output (`get=1`, `what=production`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_tootmised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "production" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true }, { "key": "productiondate", "value": "X", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Productions (production) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Productions** — input (`put=1`, `what=production`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tootmised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "production" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Productions** — input (`put=1`, `what=production`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_tootmised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "production" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "Partners", "description": "Partners components. Each component shows its get and put requests together.", "item": [ { "name": "Customers (customer) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Customers** — output (`get=1`, `what=customer`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "customer" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "loyaltycard", "value": "X", "description": "optional filter", "disabled": true }, { "key": "regno", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "phone", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Customers** — output (`get=1`, `what=customer`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kliendid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "customer" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "loyaltycard", "value": "X", "description": "optional filter", "disabled": true }, { "key": "regno", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "phone", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Customers (customer) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Customers** — input (`put=1`, `what=customer`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kliendid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "customer" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Customers** — input (`put=1`, `what=customer`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kliendid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "customer" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Suppliers (supplier) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Suppliers** — output (`get=1`, `what=supplier`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_hankijad.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "supplier" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "regno", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Suppliers** — output (`get=1`, `what=supplier`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_hankijad.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "supplier" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "regno", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Suppliers (supplier) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Suppliers** — input (`put=1`, `what=supplier`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hankijad.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "supplier" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Suppliers** — input (`put=1`, `what=supplier`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_hankijad.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "supplier" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Contacts (contact) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contacts** — output (`get=1`, `what=contact`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kontaktid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "contact" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "suppliercode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "pid", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contacts** — output (`get=1`, `what=contact`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kontaktid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "contact" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "suppliercode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "pid", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Contacts (contact) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contacts** — input (`put=1`, `what=contact`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kontaktid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "contact" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contacts** — input (`put=1`, `what=contact`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kontaktid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "contact" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "Finance", "description": "Finance components. Each component shows its get and put requests together.", "item": [ { "name": "Expenses (expense) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Expenses** — output (`get=1`, `what=expense`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kulutused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "expense" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "expender", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Expenses** — output (`get=1`, `what=expense`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kulutused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "expense" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "expender", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Expenses (expense) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Expenses** — input (`put=1`, `what=expense`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kulutused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "expense" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Expenses** — input (`put=1`, `what=expense`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kulutused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "expense" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Fin accounts (account) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin accounts** — output (`get=1`, `what=account`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kontod.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "account" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin accounts** — output (`get=1`, `what=account`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kontod.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "account" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "class", "value": "X", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Fin objects (object) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin objects** — output (`get=1`, `what=object`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_objektid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "object" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "master", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "level", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin objects** — output (`get=1`, `what=object`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_objektid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "object" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "master", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "level", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Fin objects (object) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin objects** — input (`put=1`, `what=object`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_objektid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "object" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin objects** — input (`put=1`, `what=object`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_objektid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "object" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Assets (asset) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Assets** — output (`get=1`, `what=asset`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_inventar.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "asset" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "sn", "value": "X", "description": "optional filter", "disabled": true }, { "key": "user", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "item", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Assets** — output (`get=1`, `what=asset`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_inventar.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "asset" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "sn", "value": "X", "description": "optional filter", "disabled": true }, { "key": "user", "value": "X", "description": "optional filter", "disabled": true }, { "key": "barcode", "value": "X", "description": "optional filter", "disabled": true }, { "key": "item", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Assets (asset) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Assets** — input (`put=1`, `what=asset`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_inventar.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "asset" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Assets** — input (`put=1`, `what=asset`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_inventar.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "asset" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Fin transactions (transaction) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin transactions** — output (`get=1`, `what=transaction`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanded.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "transaction" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin transactions** — output (`get=1`, `what=transaction`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanded.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "transaction" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Fin transactions (transaction) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin transactions** — input (`put=1`, `what=transaction`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kanded.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "transaction" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin transactions** — input (`put=1`, `what=transaction`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kanded.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "transaction" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Fin Transaction rows (transactionrow) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin Transaction rows** — output (`get=1`, `what=transactionrow`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanderead.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "transactionrow" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "object", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "rowdate1", "value": "X", "description": "optional filter", "disabled": true }, { "key": "rowdate2", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Fin Transaction rows** — output (`get=1`, `what=transactionrow`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kanderead.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "transactionrow" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "object", "value": "X", "description": "optional filter", "disabled": true }, { "key": "project", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "rowdate1", "value": "X", "description": "optional filter", "disabled": true }, { "key": "rowdate2", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "Project", "description": "Project components. Each component shows its get and put requests together.", "item": [ { "name": "Contracts (contract) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contracts** — output (`get=1`, `what=contract`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_lepingud.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "contract" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contracts** — output (`get=1`, `what=contract`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_lepingud.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "contract" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Contracts (contract) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contracts** — input (`put=1`, `what=contract`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_lepingud.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "contract" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Contracts** — input (`put=1`, `what=contract`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_lepingud.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "contract" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Projects (project) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Projects** — output (`get=1`, `what=project`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_projektid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "project" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "orderer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "contract", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Projects** — output (`get=1`, `what=project`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_projektid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "project" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "supplier", "value": "X", "description": "optional filter", "disabled": true }, { "key": "orderer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "contract", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Projects (project) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Projects** — input (`put=1`, `what=project`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_projektid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "project" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Projects** — input (`put=1`, `what=project`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_projektid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "project" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Events (event) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Events** — output (`get=1`, `what=event`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_syndmused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "event" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "extid", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Events** — output (`get=1`, `what=event`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_syndmused.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "event" }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "extid", "value": "X", "description": "optional filter", "disabled": true }, { "key": "customercode", "value": "10001", "description": "optional filter", "disabled": true }, { "key": "type", "value": "X", "description": "optional filter", "disabled": true }, { "key": "status", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Events (event) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Events** — input (`put=1`, `what=event`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_syndmused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "event" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Events** — input (`put=1`, `what=event`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_syndmused.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "event" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Resources (resource) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Resources** — output (`get=1`, `what=resource`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_ressursid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "resource" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "employee", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Resources** — output (`get=1`, `what=resource`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_ressursid.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "resource" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "date1", "value": "01.04.2025", "description": "optional filter", "disabled": true }, { "key": "date2", "value": "30.04.2025", "description": "optional filter", "disabled": true }, { "key": "customer", "value": "X", "description": "optional filter", "disabled": true }, { "key": "employee", "value": "X", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Resources (resource) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Resources** — input (`put=1`, `what=resource`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_ressursid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "resource" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Resources** — input (`put=1`, `what=resource`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_ressursid.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "resource" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "HR", "description": "HR components. Each component shows its get and put requests together.", "item": [ { "name": "Users/employees (user) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Users/employees** — output (`get=1`, `what=user`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kasutajad.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "user" }, { "key": "group", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "employee", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Users/employees** — output (`get=1`, `what=user`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kasutajad.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "user" }, { "key": "group", "value": "X", "description": "optional filter", "disabled": true }, { "key": "code", "value": "DEMO", "description": "optional filter", "disabled": true }, { "key": "employee", "value": "X", "description": "optional filter", "disabled": true }, { "key": "email", "value": "X", "description": "optional filter", "disabled": true }, { "key": "closed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Users/employees (user) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Users/employees** — input (`put=1`, `what=user`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kasutajad.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "user" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Users/employees** — input (`put=1`, `what=user`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_kasutajad.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "user" }, { "key": "xmldata", "value": "\n\n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Absences (absence) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Absences** — output (`get=1`, `what=absence`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_puudumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "absence" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "employee", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Absences** — output (`get=1`, `what=absence`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_puudumised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "absence" }, { "key": "number", "value": "100001", "description": "optional filter", "disabled": true }, { "key": "confirmed", "value": "X", "description": "optional filter", "disabled": true }, { "key": "employee", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n \n \n \n \n" } ] }, { "name": "Absences (absence) — put", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Absences** — input (`put=1`, `what=absence`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_puudumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "absence" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (success)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Absences** — input (`put=1`, `what=absence`).\n\nCreates a new document or updates an existing one (matched by external key / number).\n\n**Modify:** requires `xd_update=1` and posting the **whole document**. A confirmed document cannot be modified (response `Type=14`).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/xml_IN_puudumised.xsd\n\n**Body:** `xmldata` = XML (see example).\n\n**Response:** ``; `docid` = document number. On error `Type != 0`.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "put", "value": "1" }, { "key": "what", "value": "absence" }, { "key": "xmldata", "value": "\n\n \n \n \n \n \n", "description": "Whole document as XML" } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] }, { "name": "Admin", "description": "Admin components. Each component shows its get and put requests together.", "item": [ { "name": "Replacement logs (replacementlog) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Replacement logs** — output (`get=1`, `what=replacementlog`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_int_asenda_log.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "replacementlog" }, { "key": "document", "value": "X", "description": "optional filter", "disabled": true }, { "key": "old", "value": "X", "description": "optional filter", "disabled": true }, { "key": "new", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Replacement logs** — output (`get=1`, `what=replacementlog`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_int_asenda_log.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "replacementlog" }, { "key": "document", "value": "X", "description": "optional filter", "disabled": true }, { "key": "old", "value": "X", "description": "optional filter", "disabled": true }, { "key": "new", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] }, { "name": "Deleted documents (delete) — get", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Deleted documents** — output (`get=1`, `what=delete`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kustutamised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "delete" }, { "key": "document", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "response": [ { "name": "Example response (schema shape)", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "description": "**Deleted documents** — output (`get=1`, `what=delete`).\n\nReturns all records; narrow with the optional filters below (disabled by default). `ts` = changed-since (for syncing).\n\n**Data schema (XSD):** https://login.directo.ee/xmlcore/cap_xml_direct/ws_kustutamised.xsd\n\n**Response:** component XML (see the saved example) or, on error, ``.", "body": { "mode": "urlencoded", "urlencoded": [ { "key": "token", "value": "{{token}}" }, { "key": "get", "value": "1" }, { "key": "what", "value": "delete" }, { "key": "document", "value": "X", "description": "optional filter", "disabled": true }, { "key": "ts", "value": "15.04.2025 10:01:01", "description": "optional filter", "disabled": true } ] }, "url": { "raw": "{{baseURL}}/xmlcore.asp", "host": [ "{{baseURL}}" ], "path": [ "xmlcore.asp" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "xml", "header": [ { "key": "Content-Type", "value": "text/xml; charset=utf-8" } ], "body": "\n\n \n" } ] } ] } ], "variable": [ { "key": "baseURL", "value": "https://login.directo.ee/xmlcore/cap_xml_direct" }, { "key": "token", "value": "" } ], "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "pm.test('HTTP 200', ()=>pm.response.to.have.status(200));", "pm.test('Response is XML', ()=>pm.expect(pm.response.text()).to.match(/<\\/?[a-zA-Z]+>/));" ] } } ] }