{
  "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=<component>` + optional filters. **Put:** `put=1&what=<component>&xmldata=<XML>`.\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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`. 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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<quotations>\n  <quotation number=\"100001\" customercode=\"10001\" version=\"X\" type=\"X\" validity=\"X\" ourrep=\"X\" ordercomment=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" quantity=\"1\"/>\n    </rows>\n  </quotation>\n</quotations>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<quotations>\n  <quotation number=\"100001\" customercode=\"10001\" ext_unique_id=\"X\" version=\"X\" type=\"X\" validity=\"X\" ourrep=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" quantity=\"1\"/>\n    </rows>\n  </quotation>\n</quotations>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<quotations>\n  <quotation number=\"100001\" customercode=\"10001\" ext_unique_id=\"X\" version=\"X\" type=\"X\" validity=\"X\" ourrep=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" quantity=\"1\"/>\n    </rows>\n  </quotation>\n</quotations>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"QUOTATION\" submit=\"Quotations\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<orders>\n  <order number=\"100001\" date=\"2025-04-15\" delivery=\"X\" reqdelivery=\"X\" vatzone=\"X\" paymentterm=\"X\" quotation=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" delivery=\"X\"/>\n    </rows>\n  </order>\n</orders>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<orders>\n  <order number=\"100001\" customercode=\"10001\" customername=\"Näidis\" date=\"2025-04-15\" address1=\"X\" address2=\"X\" address3=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" quantity=\"1\"/>\n    </rows>\n  </order>\n</orders>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<orders>\n  <order number=\"100001\" customercode=\"10001\" customername=\"Näidis\" date=\"2025-04-15\" address1=\"X\" address2=\"X\" address3=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" quantity=\"1\"/>\n    </rows>\n  </order>\n</orders>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"ORDER\" submit=\"Orders\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoices>\n  <invoice number=\"100001\" date=\"2025-04-15\" duedate=\"2025-04-15\" transactiondate=\"2025-04-15\" vatzone=\"X\" paymentterm=\"X\" ordernumber=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" price=\"10.00\" discount=\"X\"/>\n    </rows>\n  </invoice>\n</invoices>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoices>\n  <invoice number=\"100001\" customercode=\"10001\" date=\"2025-04-15\" duedate=\"2025-04-15\" transactiondate=\"2025-04-15\" vatzone=\"X\" paymentterm=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" variant=\"X\" price=\"10.00\"/>\n    </rows>\n  </invoice>\n</invoices>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoices>\n  <invoice number=\"100001\" customercode=\"10001\" date=\"2025-04-15\" duedate=\"2025-04-15\" transactiondate=\"2025-04-15\" vatzone=\"X\" paymentterm=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" variant=\"X\" price=\"10.00\"/>\n    </rows>\n  </invoice>\n</invoices>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"INVOICE\" submit=\"Invoices\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<receipts>\n  <receipt number=\"100001\" paymentmode=\"X\" aeg=\"X\" confirmed=\"X\" ts=\"X\">\n    <rows>\n      <row invoice=\"X\" order=\"X\" aeg=\"X\" customer=\"X\"/>\n    </rows>\n  </receipt>\n</receipts>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<receipts>\n  <receipt number=\"100001\" date=\"2025-04-15\" description=\"X\" paymentmode=\"X\" user=\"X\" reference=\"X\" object=\"VEEB\">\n    <rows>\n      <row invoice=\"X\" aeg=\"X\" customer=\"X\" order=\"X\"/>\n    </rows>\n  </receipt>\n</receipts>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<receipts>\n  <receipt number=\"100001\" date=\"2025-04-15\" description=\"X\" paymentmode=\"X\" user=\"X\" reference=\"X\" object=\"VEEB\">\n    <rows>\n      <row invoice=\"X\" aeg=\"X\" customer=\"X\" order=\"X\"/>\n    </rows>\n  </receipt>\n</receipts>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"RECEIPT\" submit=\"Receipts\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<priceformularows>\n  <priceformularow code=\"DEMO\" class=\"X\" item=\"DEMO\" type=\"X\" decimalplaces=\"X\" discount=\"X\" supplier=\"10001\"/>\n</priceformularows>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<priceformulas>\n  <priceformula code=\"DEMO\" project=\"X\" name=\"Näidis\" text1=\"X\" text2=\"X\" currency=\"EUR\" object=\"VEEB\">\n    <rows>\n      <row class=\"X\" item=\"DEMO\" name=\"Näidis\" type=\"X\"/>\n    </rows>\n  </priceformula>\n</priceformulas>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<priceformulas>\n  <priceformula code=\"DEMO\" project=\"X\" name=\"Näidis\" text1=\"X\" text2=\"X\" currency=\"EUR\" object=\"VEEB\">\n    <rows>\n      <row class=\"X\" item=\"DEMO\" name=\"Näidis\" type=\"X\"/>\n    </rows>\n  </priceformula>\n</priceformulas>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"PRICEFORMULAROW\" submit=\"Price formula rows\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<salesbudgets>\n  <salesbudget number=\"100001\" type=\"X\" date=\"2025-04-15\" date2=\"2025-04-15\" description=\"X\" rowdate=\"2025-04-15\" item=\"DEMO\"/>\n</salesbudgets>"
            }
          ]
        }
      ]
    },
    {
      "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<purchaseorders>\n  <purchaseorder number=\"100001\" supplier=\"10001\" payterm=\"X\" suppliername=\"Näidis\" country=\"X\" date=\"2025-04-15\" comment=\"X\">\n    <rows>\n      <row code=\"DEMO\" unit=\"X\" qty=\"1\" name=\"Näidis\"/>\n    </rows>\n  </purchaseorder>\n</purchaseorders>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<purchaseorders>\n  <purchaseorder number=\"100001\" supplier=\"10001\" payterm=\"X\" suppliername=\"Näidis\" country=\"X\" date=\"2025-04-15\" comment=\"X\">\n    <rows>\n      <row code=\"DEMO\" unit=\"X\" price=\"10.00\" qty=\"1\"/>\n    </rows>\n  </purchaseorder>\n</purchaseorders>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<purchaseorders>\n  <purchaseorder number=\"100001\" supplier=\"10001\" payterm=\"X\" suppliername=\"Näidis\" country=\"X\" date=\"2025-04-15\" comment=\"X\">\n    <rows>\n      <row code=\"DEMO\" unit=\"X\" price=\"10.00\" qty=\"1\"/>\n    </rows>\n  </purchaseorder>\n</purchaseorders>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"PURCHASEORDER\" submit=\"Purchaseorders\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockreceipts>\n  <stockreceipt number=\"100001\" date=\"2025-04-15\" supplier=\"10001\" suppliername=\"Näidis\" purchaseorder=\"X\" stock=\"PL\" text=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" content=\"X\" price=\"10.00\"/>\n    </rows>\n  </stockreceipt>\n</stockreceipts>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockreceipts>\n  <stockreceipt number=\"100001\" date=\"2025-04-15\" supplier=\"10001\" suppliername=\"Näidis\" purchaseorder=\"X\" stock=\"PL\" text=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" content=\"X\" price=\"10.00\"/>\n    </rows>\n  </stockreceipt>\n</stockreceipts>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockreceipts>\n  <stockreceipt number=\"100001\" date=\"2025-04-15\" supplier=\"10001\" suppliername=\"Näidis\" purchaseorder=\"X\" stock=\"PL\" text=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" content=\"X\" price=\"10.00\"/>\n    </rows>\n  </stockreceipt>\n</stockreceipts>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"STOCKRECEIPT\" submit=\"Stockreceipts\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<purchases>\n  <purchase number=\"100001\" date=\"2025-04-15\" duedate=\"2025-04-15\" sum=\"10.00\" supplierinvoiceno=\"X\" paymentterm=\"X\" supplier=\"10001\">\n    <rows>\n      <row account=\"X\" object=\"VEEB\" quantity=\"1\" name=\"Näidis\"/>\n    </rows>\n  </purchase>\n</purchases>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<purchases>\n  <purchase number=\"100001\" date=\"2025-04-15\" duedate=\"2025-04-15\" sum=\"10.00\" supplierinvoiceno=\"X\" paymentterm=\"X\" suppliercode=\"DEMO\">\n    <rows>\n      <row account=\"X\" object=\"VEEB\" name=\"Näidis\" linetotalwovat=\"X\"/>\n    </rows>\n  </purchase>\n</purchases>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<purchases>\n  <purchase number=\"100001\" date=\"2025-04-15\" duedate=\"2025-04-15\" sum=\"10.00\" supplierinvoiceno=\"X\" paymentterm=\"X\" suppliercode=\"DEMO\">\n    <rows>\n      <row account=\"X\" object=\"VEEB\" name=\"Näidis\" linetotalwovat=\"X\"/>\n    </rows>\n  </purchase>\n</purchases>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"PURCHASE\" submit=\"Purchase invoices\"/>\n</results>"
            }
          ]
        }
      ]
    },
    {
      "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<order2deliveries>\n  <order2delivery number=\"100001\" status=\"X\"/>\n</order2deliveries>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<order2deliveries>\n  <order2delivery number=\"100001\" status=\"X\"/>\n</order2deliveries>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"ORDER2DELIVERY\" submit=\"Order to delivery\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<items>\n  <item code=\"DEMO\" name=\"Näidis\" description=\"X\" class=\"X\" class_name=\"Näidis\" sntracking=\"X\" barcode=\"DEMO\"/>\n</items>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<items>\n  <item code=\"DEMO\" name=\"Näidis\" class=\"X\" barcode=\"DEMO\" areacode=\"DEMO\" unit=\"X\" salesprice=\"10.00\"/>\n</items>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<items>\n  <item code=\"DEMO\" name=\"Näidis\" class=\"X\" barcode=\"DEMO\" areacode=\"DEMO\" unit=\"X\" salesprice=\"10.00\"/>\n</items>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"ITEM\" submit=\"Items\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<itemstocklimits>\n  <itemstocklimit code=\"DEMO\" stock=\"PL\" shelf=\"X\" variant=\"X\" minlevel=\"X\" maxlevel=\"X\" ts=\"X\"/>\n</itemstocklimits>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<itempackages>\n  <itempackage code=\"DEMO\" class=\"X\" type=\"X\" height=\"X\" width=\"X\" length=\"X\" volume=\"X\"/>\n</itempackages>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<itemrelitems>\n  <itemrelitem code=\"DEMO\" relateditem=\"X\" name=\"Näidis\" ts=\"X\"/>\n</itemrelitems>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<itemaccountsvatcodes>\n  <itemaccountvatcode item=\"DEMO\" code=\"DEMO\" account=\"X\" vatcode=\"DEMO\"/>\n</itemaccountsvatcodes>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<itemclasses>\n  <itemclass code=\"DEMO\" name=\"Näidis\" master=\"X\"/>\n</itemclasses>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<itemhistoryrows>\n  <itemhistoryrow type=\"X\" number=\"100001\" id=\"X\" code=\"DEMO\" stock=\"PL\" date=\"2025-04-15\" qty=\"1\"/>\n</itemhistoryrows>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<pricechanges>\n  <pricechange number=\"100001\" date=\"2025-04-15\" project=\"X\" object=\"VEEB\" stock=\"PL\" sum1=\"10.00\" sum2=\"10.00\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" quantity=\"1\" price1=\"10.00\"/>\n    </rows>\n  </pricechange>\n</pricechanges>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<pricechanges>\n  <pricechange number=\"100001\" stock=\"PL\" date=\"2025-04-15\" account=\"X\" comment=\"X\" confirm=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" stockprice=\"10.00\" newstockprice=\"10.00\"/>\n    </rows>\n  </pricechange>\n</pricechanges>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<pricechanges>\n  <pricechange number=\"100001\" stock=\"PL\" date=\"2025-04-15\" account=\"X\" comment=\"X\" confirm=\"X\">\n    <rows>\n      <row item=\"DEMO\" description=\"X\" stockprice=\"10.00\" newstockprice=\"10.00\"/>\n    </rows>\n  </pricechange>\n</pricechanges>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"PRICECHANGE\" submit=\"Price changes\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stocks>\n  <stock code=\"DEMO\" name=\"Näidis\" address=\"X\" address2=\"X\" address3=\"X\" contact=\"X\" phone=\"X\"/>\n</stocks>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stocklevels>\n  <stocklevel code=\"DEMO\" stock=\"PL\" freequantity=\"1\" ts=\"X\"/>\n</stocklevels>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stocklevels_variant_sn>\n  <stocklevel_variant_sn code=\"DEMO\" stock=\"PL\" variant=\"X\" sn=\"X\" level=\"X\" nz=\"X\" bestbefore=\"X\"/>\n</stocklevels_variant_sn>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<allocations>\n  <allocation code=\"DEMO\" variant=\"X\" sn=\"X\" stock=\"PL\" orders_out=\"X\" stock_orders_out=\"X\" stock_orders_in=\"X\"/>\n</allocations>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<recipes>\n  <recipe code=\"DEMO\" name=\"Näidis\" date=\"2025-04-15\" snfilter=\"X\" producer=\"X\" gtyout=\"X\" cu=\"X\">\n    <rows>\n      <reciperow code=\"DEMO\" item=\"DEMO\" name=\"Näidis\" qty=\"1\"/>\n    </rows>\n  </recipe>\n</recipes>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<recipes>\n  <recipe code=\"DEMO\" name=\"Näidis\" date=\"2025-04-15\" qtyout=\"1\" costprice=\"10.00\" total=\"X\" type=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" qty=\"1\" content=\"X\"/>\n    </rows>\n  </recipe>\n</recipes>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<recipes>\n  <recipe code=\"DEMO\" name=\"Näidis\" date=\"2025-04-15\" qtyout=\"1\" costprice=\"10.00\" total=\"X\" type=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" qty=\"1\" content=\"X\"/>\n    </rows>\n  </recipe>\n</recipes>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"RECIPE\" submit=\"Recipes\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deliveries>\n  <delivery number=\"100001\" ordernumber=\"X\" date=\"2025-04-15\" stock=\"PL\" status=\"X\" customercode=\"10001\" customername=\"Näidis\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" description=\"X\" variant=\"X\"/>\n    </rows>\n  </delivery>\n</deliveries>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deliveries>\n  <delivery number=\"100001\" status=\"X\" datafield1=\"X\" datafield2=\"X\" datafield3=\"X\" datafield4=\"X\" datafield5=\"X\">\n    <rows>\n      <row item=\"DEMO\" serialnumber=\"X\" variant=\"X\" qty=\"1\"/>\n    </rows>\n  </delivery>\n</deliveries>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deliveries>\n  <delivery number=\"100001\" status=\"X\" datafield1=\"X\" datafield2=\"X\" datafield3=\"X\" datafield4=\"X\" datafield5=\"X\">\n    <rows>\n      <row item=\"DEMO\" serialnumber=\"X\" variant=\"X\" qty=\"1\"/>\n    </rows>\n  </delivery>\n</deliveries>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"DELIVERY\" submit=\"Deliveries\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockreturns>\n  <stockreturn number=\"100001\" order=\"X\" date=\"2025-04-15\" customercode=\"10001\" customername=\"Näidis\" comment=\"X\" status=\"X\">\n    <rows>\n      <row itemcode=\"DEMO\" sn=\"X\" quantity=\"1\" shelf=\"X\"/>\n    </rows>\n  </stockreturn>\n</stockreturns>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockreturns>\n  <stockreturn number=\"100001\" order=\"X\" date=\"2025-04-15\" customercode=\"10001\" comment=\"X\" status=\"X\" object=\"VEEB\">\n    <rows>\n      <row itemcode=\"DEMO\" sn=\"X\" quantity=\"1\" shelf=\"X\"/>\n    </rows>\n  </stockreturn>\n</stockreturns>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockreturns>\n  <stockreturn number=\"100001\" order=\"X\" date=\"2025-04-15\" customercode=\"10001\" comment=\"X\" status=\"X\" object=\"VEEB\">\n    <rows>\n      <row itemcode=\"DEMO\" sn=\"X\" quantity=\"1\" shelf=\"X\"/>\n    </rows>\n  </stockreturn>\n</stockreturns>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"STOCKRETURN\" submit=\"Stock returns\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<movements>\n  <movement number=\"100001\" date=\"2025-04-15\" fromstock=\"X\" tostock=\"X\" datafield1=\"X\" datafield2=\"X\" datafield3=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" receivedqty=\"1\" serialnumber=\"X\"/>\n    </rows>\n  </movement>\n</movements>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<movements>\n  <movement number=\"100001\" date=\"2025-04-15\" datafield1=\"X\" datafield2=\"X\" datafield3=\"X\" datafield4=\"X\" datafield5=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" receivedqty=\"1\" serialnumber=\"X\"/>\n    </rows>\n  </movement>\n</movements>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<movements>\n  <movement number=\"100001\" date=\"2025-04-15\" datafield1=\"X\" datafield2=\"X\" datafield3=\"X\" datafield4=\"X\" datafield5=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" receivedqty=\"1\" serialnumber=\"X\"/>\n    </rows>\n  </movement>\n</movements>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"MOVEMENT\" submit=\"Movements\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockorders>\n  <stockorder number=\"100001\" text=\"X\" user=\"X\" fromstock=\"X\" tostock=\"X\" date=\"2025-04-15\" project=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" moved=\"X\" name=\"Näidis\"/>\n    </rows>\n  </stockorder>\n</stockorders>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockorders>\n  <stockorder number=\"100001\" text=\"X\" user=\"X\" fromstock=\"X\" tostock=\"X\" date=\"2025-04-15\" project=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" moved=\"X\" name=\"Näidis\"/>\n    </rows>\n  </stockorder>\n</stockorders>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<stockorders>\n  <stockorder number=\"100001\" text=\"X\" user=\"X\" fromstock=\"X\" tostock=\"X\" date=\"2025-04-15\" project=\"X\">\n    <rows>\n      <row item=\"DEMO\" qty=\"1\" moved=\"X\" name=\"Näidis\"/>\n    </rows>\n  </stockorder>\n</stockorders>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"STOCKORDER\" submit=\"Stock orders\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<takings>\n  <taking number=\"100001\" date=\"2025-04-15\" startdate=\"2025-04-15\" chain=\"X\" stock=\"PL\" description=\"X\" project=\"X\">\n    <rows>\n      <row itemcode=\"DEMO\" sn=\"X\" quantity=\"1\" rn=\"X\"/>\n    </rows>\n  </taking>\n</takings>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<takings>\n  <taking number=\"100001\" date=\"2025-04-15\" startdate=\"2025-04-15\" chain=\"X\" stock=\"PL\" project=\"X\" shelf=\"X\">\n    <rows>\n      <row itemcode=\"DEMO\" sn=\"X\" variant=\"X\" quantity=\"1\"/>\n    </rows>\n  </taking>\n</takings>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<takings>\n  <taking number=\"100001\" date=\"2025-04-15\" startdate=\"2025-04-15\" chain=\"X\" stock=\"PL\" project=\"X\" shelf=\"X\">\n    <rows>\n      <row itemcode=\"DEMO\" sn=\"X\" variant=\"X\" quantity=\"1\"/>\n    </rows>\n  </taking>\n</takings>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"TAKING\" submit=\"Takings\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<writeoffs>\n  <writeoff number=\"100001\" date=\"2025-04-15\" comment=\"X\" account=\"X\" object=\"VEEB\" stock=\"PL\" type=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" qty=\"1\" price=\"10.00\"/>\n    </rows>\n  </writeoff>\n</writeoffs>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<writeoffs>\n  <writeoff number=\"100001\" date=\"2025-04-15\" comment=\"X\" account=\"X\" object=\"VEEB\" stock=\"PL\" type=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" qty=\"1\" price=\"10.00\"/>\n    </rows>\n  </writeoff>\n</writeoffs>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<writeoffs>\n  <writeoff number=\"100001\" date=\"2025-04-15\" comment=\"X\" account=\"X\" object=\"VEEB\" stock=\"PL\" type=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" qty=\"1\" price=\"10.00\"/>\n    </rows>\n  </writeoff>\n</writeoffs>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"WRITEOFF\" submit=\"Writeoffs\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<productions>\n  <production number=\"100001\" stock=\"PL\" date=\"2025-04-15\" productiondate=\"2025-04-15\" orderno=\"X\" project=\"X\" customer=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" sn=\"X\" totalqty=\"1\"/>\n    </rows>\n  </production>\n</productions>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<productions>\n  <production number=\"100001\" stock=\"PL\" date=\"2025-04-15\" productiondate=\"2025-04-15\" orderno=\"X\" project=\"X\" customer=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" sn=\"X\" totalqty=\"1\"/>\n    </rows>\n  </production>\n</productions>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<productions>\n  <production number=\"100001\" stock=\"PL\" date=\"2025-04-15\" productiondate=\"2025-04-15\" orderno=\"X\" project=\"X\" customer=\"X\">\n    <rows>\n      <row item=\"DEMO\" name=\"Näidis\" sn=\"X\" totalqty=\"1\"/>\n    </rows>\n  </production>\n</productions>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"PRODUCTION\" submit=\"Productions\"/>\n</results>"
            }
          ]
        }
      ]
    },
    {
      "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<customers>\n  <customer code=\"DEMO\" name=\"Näidis\" object=\"VEEB\" address1=\"X\" address2=\"X\" address3=\"X\" deliveryaddress1=\"X\"/>\n</customers>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<customers>\n  <customer code=\"DEMO\" email=\"nimi@example.com\" name=\"Näidis\" object=\"VEEB\" address1=\"X\" address2=\"X\" address3=\"X\"/>\n</customers>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<customers>\n  <customer code=\"DEMO\" email=\"nimi@example.com\" name=\"Näidis\" object=\"VEEB\" address1=\"X\" address2=\"X\" address3=\"X\"/>\n</customers>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"CUSTOMER\" submit=\"Customers\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<suppliers>\n  <supplier code=\"DEMO\" name=\"Näidis\" contact=\"X\" address1=\"X\" address2=\"X\" address3=\"X\" phone=\"X\"/>\n</suppliers>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<suppliers>\n  <supplier code=\"DEMO\" name=\"Näidis\" contact=\"X\" address1=\"X\" address2=\"X\" address3=\"X\" phone=\"X\"/>\n</suppliers>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<suppliers>\n  <supplier code=\"DEMO\" name=\"Näidis\" contact=\"X\" address1=\"X\" address2=\"X\" address3=\"X\" phone=\"X\"/>\n</suppliers>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"SUPPLIER\" submit=\"Suppliers\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<contacts>\n  <contact code=\"DEMO\" customercode=\"10001\" suppliercode=\"DEMO\" name=\"Näidis\" address1=\"X\" address2=\"X\" address3=\"X\"/>\n</contacts>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<contacts>\n  <contact code=\"DEMO\" customercode=\"10001\" customername=\"Näidis\" suppliercode=\"DEMO\" suppliername=\"Näidis\" name=\"Näidis\" address1=\"X\"/>\n</contacts>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<contacts>\n  <contact code=\"DEMO\" customercode=\"10001\" customername=\"Näidis\" suppliercode=\"DEMO\" suppliername=\"Näidis\" name=\"Näidis\" address1=\"X\"/>\n</contacts>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"CONTACT\" submit=\"Contacts\"/>\n</results>"
            }
          ]
        }
      ]
    },
    {
      "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<expenses>\n  <expense number=\"100001\" date=\"2025-04-15\" expender=\"X\" comment=\"X\" source_id=\"X\" total=\"X\" expendername=\"Näidis\">\n    <rows>\n      <row date=\"2025-04-15\" documentnumber=\"X\" supplier=\"10001\" suppliername=\"Näidis\"/>\n    </rows>\n  </expense>\n</expenses>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<expenses>\n  <expense number=\"100001\" date=\"2025-04-15\" expender=\"X\" comment=\"X\" datafield1=\"X\" total=\"X\" expenderidnumber=\"X\">\n    <rows>\n      <row date=\"2025-04-15\" documentnumber=\"X\" supplier=\"10001\" suppliername=\"Näidis\"/>\n    </rows>\n  </expense>\n</expenses>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<expenses>\n  <expense number=\"100001\" date=\"2025-04-15\" expender=\"X\" comment=\"X\" datafield1=\"X\" total=\"X\" expenderidnumber=\"X\">\n    <rows>\n      <row date=\"2025-04-15\" documentnumber=\"X\" supplier=\"10001\" suppliername=\"Näidis\"/>\n    </rows>\n  </expense>\n</expenses>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"EXPENSE\" submit=\"Expenses\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<accounts>\n  <account code=\"DEMO\" name=\"Näidis\" class=\"X\" closed=\"X\" correspondancecode=\"DEMO\" objects=\"X\"/>\n</accounts>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<objects>\n  <object code=\"DEMO\" name=\"Näidis\" master=\"X\" masters=\"X\" type=\"X\" closed=\"X\" level=\"X\"/>\n</objects>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<objects>\n  <object code=\"DEMO\" name=\"Näidis\" type=\"X\" closed=\"X\" master=\"X\" info=\"X\" purchasevatcode=\"DEMO\"/>\n</objects>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<objects>\n  <object code=\"DEMO\" name=\"Näidis\" type=\"X\" closed=\"X\" master=\"X\" info=\"X\" purchasevatcode=\"DEMO\"/>\n</objects>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"OBJECT\" submit=\"Fin objects\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<assets>\n  <asset code=\"DEMO\" sn=\"X\" project=\"X\" name=\"Näidis\" date=\"2025-04-15\" date2=\"2025-04-15\" purchaseprice=\"10.00\"/>\n</assets>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<assets>\n  <asset code=\"DEMO\" comment=\"X\" sn=\"X\" department=\"X\" customer=\"X\" customername=\"Näidis\" project=\"X\"/>\n</assets>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<assets>\n  <asset code=\"DEMO\" comment=\"X\" sn=\"X\" department=\"X\" customer=\"X\" customername=\"Näidis\" project=\"X\"/>\n</assets>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"ASSET\" submit=\"Assets\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions>\n  <transaction number=\"100001\" type=\"X\" date=\"2025-04-15\" reference=\"X\" comment=\"X\" ts=\"X\">\n    <rows>\n      <row account=\"X\" object=\"VEEB\" project=\"X\" description=\"X\"/>\n    </rows>\n  </transaction>\n</transactions>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions>\n  <transaction number=\"100001\" date=\"2025-04-15\" reference=\"X\" comment=\"X\" type=\"X\">\n    <rows>\n      <row account=\"X\" object=\"VEEB\" description=\"X\" vatcode=\"DEMO\"/>\n    </rows>\n  </transaction>\n</transactions>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions>\n  <transaction number=\"100001\" date=\"2025-04-15\" reference=\"X\" comment=\"X\" type=\"X\">\n    <rows>\n      <row account=\"X\" object=\"VEEB\" description=\"X\" vatcode=\"DEMO\"/>\n    </rows>\n  </transaction>\n</transactions>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"TRANSACTION\" submit=\"Fin transactions\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactionrows>\n  <transactionrow number=\"100001\" type=\"X\" date=\"2025-04-15\" comment=\"X\" description=\"X\" account=\"X\" object=\"VEEB\"/>\n</transactionrows>"
            }
          ]
        }
      ]
    },
    {
      "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<contracts>\n  <contract number=\"100001\" salestart=\"X\" salesperiod=\"X\" salesperiodtype=\"X\" purchasestart=\"X\" purchaseperiod=\"X\" purchaseperiodtype=\"X\">\n    <rows>\n      <row type=\"X\" code=\"DEMO\" name=\"Näidis\" qty=\"1\"/>\n    </rows>\n  </contract>\n</contracts>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<contracts>\n  <contract number=\"100001\" salestart=\"X\" salesperiod=\"X\" salesperiodtype=\"X\" purchasestart=\"X\" purchaseperiod=\"X\" purchaseperiodtype=\"X\">\n    <rows>\n      <row type=\"X\" code=\"DEMO\" name=\"Näidis\" qty=\"1\"/>\n    </rows>\n  </contract>\n</contracts>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<contracts>\n  <contract number=\"100001\" salestart=\"X\" salesperiod=\"X\" salesperiodtype=\"X\" purchasestart=\"X\" purchaseperiod=\"X\" purchaseperiodtype=\"X\">\n    <rows>\n      <row type=\"X\" code=\"DEMO\" name=\"Näidis\" qty=\"1\"/>\n    </rows>\n  </contract>\n</contracts>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"CONTRACT\" submit=\"Contracts\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projects>\n  <project code=\"DEMO\" name=\"Näidis\" manager=\"X\" object=\"VEEB\" type=\"X\" start=\"X\" end=\"X\"/>\n</projects>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projects>\n  <project code=\"DEMO\" name=\"Näidis\" manager=\"X\" members=\"X\" start=\"X\" end=\"X\" currency=\"EUR\">\n    <rows>\n      <row action=\"X\" start=\"X\" manager=\"X\" workers=\"X\"/>\n    </rows>\n  </project>\n</projects>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projects>\n  <project code=\"DEMO\" name=\"Näidis\" manager=\"X\" members=\"X\" start=\"X\" end=\"X\" currency=\"EUR\">\n    <rows>\n      <row action=\"X\" start=\"X\" manager=\"X\" workers=\"X\"/>\n    </rows>\n  </project>\n</projects>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"PROJECT\" submit=\"Projects\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<events>\n  <event code=\"DEMO\" type=\"X\" status=\"X\" startdate=\"2025-04-15\" enddate=\"2025-04-15\" eventcontacttype=\"X\" eventcontactcode=\"DEMO\"/>\n</events>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<events>\n  <event ext_unique_id=\"X\" code=\"DEMO\" type=\"X\" status=\"X\" startdate=\"2025-04-15\" enddate=\"2025-04-15\" eventcontacttype=\"X\"/>\n</events>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<events>\n  <event ext_unique_id=\"X\" code=\"DEMO\" type=\"X\" status=\"X\" startdate=\"2025-04-15\" enddate=\"2025-04-15\" eventcontacttype=\"X\"/>\n</events>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"EVENT\" submit=\"Events\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<resources>\n  <resource number=\"100001\" confirmed=\"X\" date=\"2025-04-15\" customer=\"X\" employee=\"X\" comment=\"X\" object=\"VEEB\">\n    <rows>\n      <row employee=\"X\" itemcode=\"DEMO\" customer=\"X\" quantity=\"1\"/>\n    </rows>\n  </resource>\n</resources>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<resources>\n  <resource number=\"100001\" date=\"2025-04-15\" comment=\"X\" customer=\"X\" employee=\"X\" stock=\"PL\" project=\"X\">\n    <rows>\n      <row item=\"DEMO\" quantity=\"1\" date=\"2025-04-15\" description=\"X\"/>\n    </rows>\n  </resource>\n</resources>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<resources>\n  <resource number=\"100001\" date=\"2025-04-15\" comment=\"X\" customer=\"X\" employee=\"X\" stock=\"PL\" project=\"X\">\n    <rows>\n      <row item=\"DEMO\" quantity=\"1\" date=\"2025-04-15\" description=\"X\"/>\n    </rows>\n  </resource>\n</resources>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"RESOURCE\" submit=\"Resources\"/>\n</results>"
            }
          ]
        }
      ]
    },
    {
      "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<users>\n  <user code=\"DEMO\" name=\"Näidis\" object=\"VEEB\" idnumber=\"X\" email=\"nimi@example.com\" mobilephone=\"X\" gender=\"X\"/>\n</users>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<users>\n  <user code=\"DEMO\" name=\"Näidis\" group=\"X\" email=\"nimi@example.com\" stock=\"PL\" series=\"X\" object=\"VEEB\"/>\n</users>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<users>\n  <user code=\"DEMO\" name=\"Näidis\" group=\"X\" email=\"nimi@example.com\" stock=\"PL\" series=\"X\" object=\"VEEB\"/>\n</users>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"USER\" submit=\"Users/employees\"/>\n</results>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<absences>\n  <absence number=\"100001\" confirmed=\"X\" date1=\"2025-04-15\" date2=\"2025-04-15\" comment=\"X\" employee=\"X\" ts=\"X\">\n    <rows>\n      <row employee=\"X\" absencetype=\"X\" date1=\"2025-04-15\" date2=\"2025-04-15\"/>\n    </rows>\n  </absence>\n</absences>"
            }
          ]
        },
        {
          "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<absences>\n  <absence number=\"100001\" date1=\"2025-04-15\" date2=\"2025-04-15\" comment=\"X\" employeecode=\"DEMO\" delete=\"X\">\n    <rows>\n      <row employeecode=\"DEMO\" absencetype=\"X\" date1=\"2025-04-15\" date2=\"2025-04-15\"/>\n    </rows>\n  </absence>\n</absences>",
                  "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:** `<results><Result Type=\"0\" docid=\"...\"/></results>`; `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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<absences>\n  <absence number=\"100001\" date1=\"2025-04-15\" date2=\"2025-04-15\" comment=\"X\" employeecode=\"DEMO\" delete=\"X\">\n    <rows>\n      <row employeecode=\"DEMO\" absencetype=\"X\" date1=\"2025-04-15\" date2=\"2025-04-15\"/>\n    </rows>\n  </absence>\n</absences>",
                      "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<results>\n  <Result Type=\"0\" Desc=\"Created\" docid=\"100001\" doctype=\"ABSENCE\" submit=\"Absences\"/>\n</results>"
            }
          ]
        }
      ]
    },
    {
      "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<replacementlogs>\n  <replacementlog nr=\"X\" document=\"X\" old=\"X\" new=\"X\" ts=\"X\"/>\n</replacementlogs>"
            }
          ]
        },
        {
          "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, `<results><Result Type=\"...\"/></results>`.",
            "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, `<results><Result Type=\"...\"/></results>`.",
                "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deletes>\n  <delete document=\"X\" number=\"100001\" code=\"DEMO\" user=\"X\" description=\"X\" ts=\"X\"/>\n</deletes>"
            }
          ]
        }
      ]
    }
  ],
  "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]+>/));"
        ]
      }
    }
  ]
}