{"info":{"_postman_id":"a5812d21-18c4-4a4b-a686-c428f0126efb","name":"Sors API","description":"<html><head></head><body><p>This API is used for communication with the <strong>Sors</strong> application database. It is based on REST principles – all data is exchanged using standard HTTP methods (<code>GET</code>, <code>POST</code>, <code>PUT</code>, <code>DELETE</code>) and JSON format. Use the described endpoints and instructions to interact with the data successfully.</p>\n<p>Before testing, make sure to:</p>\n<ul>\n<li><p>Use the correct base URL.</p>\n</li>\n<li><p>Provide a valid API key in your requests.</p>\n</li>\n</ul>\n<h2 id=\"base-url\">Base URL</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.sors.rs\n\n</code></pre><h2 id=\"authentication\">Authentication</h2>\n<p>The API uses <strong>API Key authentication</strong>.</p>\n<p>Each request must include the <strong>Authorization</strong> header in the following format:</p>\n<ul>\n<li><p><strong>Header:</strong> <code>Authorization</code></p>\n</li>\n<li><p><strong>Header Sheme:</strong> <code>ApiKey</code></p>\n</li>\n<li><p><strong>Header Parameter:</strong> <code>{your_api_key}</code></p>\n</li>\n</ul>\n<p><strong>Important:</strong> The value must start with the word <code>ApiKey</code>, followed by a space, and then your actual key. You will receive your API key from <strong>Softkom d.o.o.</strong></p>\n<h5 id=\"example\">Example:</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: ApiKey abcd1234efgh567\n\n</code></pre><h2 id=\"access-to-multiple-databases\"><strong>Access to multiple databases</strong></h2>\n<p>Since a single user can have access to multiple databases, the API key is associated with <strong>all databases</strong> available to that user.</p>\n<p><strong>Example:</strong><br>When a user creates a financial year closing, a new database is generated for each year.<br>For instance:</p>\n<ul>\n<li><p><code>MyDatabase2023</code></p>\n</li>\n<li><p><code>MyDatabase2024</code></p>\n</li>\n<li><p><code>MyDatabase2025</code></p>\n</li>\n</ul>\n<p>With the same API key, the user can access all of these databases.</p>\n<h2 id=\"database-for-testing-purposes\"><strong>Database for testing purposes</strong></h2>\n<p>For testing purposes, the <em>Demo2</em> database is provided. Please note that you do <strong>not</strong> have exclusive access to this database. It is shared by multiple users, which means that data may be added, modified, or deleted at any time without your knowledge.</p>\n<h2 id=\"response-envelope\">Response Envelope</h2>\n<p>All responses are returned in a unified JSON envelope that always contains the <strong><code>success</code></strong> field.</p>\n<h3 id=\"successful-response\">Successful Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": { }\n}\n\n</code></pre>\n<h5 id=\"fields\">Fields</h5>\n<ul>\n<li><p><strong><code>success</code></strong> <em>(boolean)</em> — always <code>true</code> for successful responses.</p>\n</li>\n<li><p><strong><code>data</code></strong> <em>(object | array | string | number | null)</em> — the operation result. Can contain a single object, a list, a primitive value, or <code>null</code>.</p>\n</li>\n</ul>\n<h5 id=\"example-object\">Example (object)</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"Id\": 1,\n    \"Name\": \"Kupac DOO\",\n    \"VATNumber\": \"123456789\",\n    \"Address\": \"Bulevar 1, Beograd\",\n    \"PhoneNumber\": \"+38111222333\"\n  }\n}\n\n</code></pre>\n<h5 id=\"example-list\"><strong>Example (list)</strong></h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": [\n    { \"Id\": 1, \"Name\": \"Kupac DOO\" },\n    { \"Id\": 2, \"Name\": \"Firma d.o.o.\" }\n  ]\n}\n\n</code></pre>\n<h3 id=\"error-response\">Error Response</h3>\n<p>All error responses are returned in the same envelope.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"errorMessage\": \"Error description\",\n  \"errorCode\": 400,\n  \"localErrorCode\": 1001\n}\n\n</code></pre>\n<h5 id=\"fields-1\">Fields</h5>\n<ul>\n<li><p><strong><code>success</code></strong> <em>(boolean)</em> — always <code>false</code> for error responses.</p>\n</li>\n<li><p><strong><code>errorMessage</code></strong> <em>(string)</em> — error message.</p>\n</li>\n<li><p><strong><code>errorCode</code></strong> <em>(number)</em> — HTTP status code (e.g., <code>400</code>, <code>401</code>, <code>404</code>, <code>500</code>).</p>\n</li>\n<li><p><strong><code>localErrorCode</code></strong> <em>(number)</em> — internal error code (e.g., <code>1001</code>, <code>4001</code>, <code>4002</code>).</p>\n<ul>\n<li>Numeric value, see the complete list in the <strong>Local error code</strong> folder at the bottom of the page.</li>\n</ul>\n</li>\n</ul>\n<p><strong>Example</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"errorMessage\": \"Parameter 'Name' is required.\",\n  \"errorCode\": 400,\n  \"localErrorCode\": 1001\n}\n\n</code></pre>\n<h2 id=\"limitations\">Limitations</h2>\n<h3 id=\"request-rate-limit\">Request rate limit</h3>\n<p>The API enforces a request rate limit to ensure system stability and fair usage among all clients.<br><strong>Maximum allowed:</strong> 20 requests per second per API key.</p>\n<p>When the limit is exceeded, the API returns <strong>HTTP status code 406 – NotAcceptable</strong> and <strong>Local error code 4029</strong> with the following message:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Too many requests – the maximum request rate limit has been exceeded.\n\n</code></pre><p><strong>Recommendation:</strong> Implement a mechanism in your application that prevents sending more than 20 requests per second per API key.</p>\n<h3 id=\"request-limit-for-heavy-operations\">Request limit for heavy operations</h3>\n<p>The API enforces a request limit for heavy operations to ensure system stability and fair usage among all clients. Certain API requests are considered <strong>heavy operations</strong> due to their complexity or the amount of data they process.<br><strong>Maximum allowed:</strong> 60 requests per hour per API key.</p>\n<p>When the limit is exceeded, the API returns <strong>HTTP status code 406 – Not Acceptable</strong> and <strong>local error code 4030</strong> with the following message:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-antlr4\">Too many requests for a heavy operation – the request limit for a heavy operations has been exceeded.\n\n</code></pre>\n<p><strong>Definition of heavy operations:</strong><br>Only requests that perform database <strong>read operations</strong> (select) can be considered heavy operations. However, not all read requests are heavy operations. Requests that are likely to return a list containing more than 100 items are considered heavy operations.<br>Any request that perform database <strong>write operation</strong> (insert, update, delete) <strong>is</strong> <strong>not</strong> considered a heavy operation.</p>\n<p>For example:</p>\n<ul>\n<li><p>The <em>InventoryAllBU</em> request is considered a heavy operation because it <strong>is</strong> likely to return more than 100 items.</p>\n</li>\n<li><p>The <em>GetBusinessUnits</em> request <strong>is</strong> <strong>not</strong> considered a heavy operation, since it typically returns only a small number of items.</p>\n</li>\n</ul>\n<p>For each request described in this guide, it is specified whether the request is considered a heavy operation.</p>\n<p><strong>Recommendation:</strong> Implement a mechanism in your application that tracks and limits the number of calls to heavy operations to a maximum of 60 per hour per API key.</p>\n<h3 id=\"other-limitations\">Other limitations</h3>\n<p>If the server receives a large number of invalid or malformed requests, your requests may be temporarily blocked to protect the system from abuse.</p>\n<p><strong>Note:</strong><br>Repeated violations may result in longer suspension or permanent blocking of access.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"34472906","collectionId":"a5812d21-18c4-4a4b-a686-c428f0126efb","publishedId":"2sB3HrkHMa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-10-31T12:15:53.000Z"},"item":[{"name":"Databases","item":[{"name":"GetDatabases","id":"b2536a44-d75d-42e4-8f28-cccf312cc63c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[],"url":"/Databases/GetDatabases","description":"<p>Returns the list of databases that can be accessed with your API key.</p>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><code>Authorization: ApiKey</code></li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<ul>\n<li>None</li>\n</ul>\n","urlObject":{"path":["Databases","GetDatabases"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"8376b3dd-90e0-4be5-a563-d6c1f9b74471","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"/Databases/GetDatabases"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"DatabaseName\": \"Sors2014\",\r\n            \"IsDatabaseActive\": true\r\n        },\r\n        {\r\n            \"DatabaseName\": \"Baza2\",\r\n            \"IsDatabaseActive\": false\r\n        },\r\n        {\r\n            \"DatabaseName\": \"Baza3\",\r\n            \"IsDatabaseActive\": false\r\n        },\r\n        {\r\n            \"DatabaseName\": \"Baza4\",\r\n            \"IsDatabaseActive\": true\r\n        }\r\n    ]\r\n}"}],"_postman_id":"b2536a44-d75d-42e4-8f28-cccf312cc63c"},{"name":"SetDatabaseStatus","id":"901c3d8b-ad2f-4b02-b5d4-8a14a457f96f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"DatabaseName\": \"Baza4\",\r\n    \"IsDatabaseActive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"/Databases/SetDatabaseStatus","description":"<p>Changes the status of a database (active / inactive) based on the provided JSON payload.</p>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><code>Authorization: ApiKey</code></li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<ul>\n<li>None</li>\n</ul>\n<p><strong>Body:</strong></p>\n<ul>\n<li>JSON</li>\n</ul>\n","urlObject":{"path":["Databases","SetDatabaseStatus"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"0123f407-13d2-4580-8961-d6e945de923f","name":"200 OK","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"DatabaseName\": \"Baza4\",\r\n    \"IsDatabaseActive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"/Databases/SetDatabaseStatus"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": \"Database status updated successfully.\"\r\n}"},{"id":"482efab2-dcbe-4e77-9a2f-5c9f2815e864","name":"403 Bad request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"DatabaseName\": \"Baza44\",\r\n    \"IsDatabaseActive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"/Databases/SetDatabaseStatus"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": false,\r\n    \"errorMessage\": \"Failed to set database status.\",\r\n    \"errorCode\": 400,\r\n    \"localErrorCode\": 3002\r\n}"}],"_postman_id":"901c3d8b-ad2f-4b02-b5d4-8a14a457f96f"}],"id":"7a90bf97-bfce-4340-94ab-37e71b3bfb7d","_postman_id":"7a90bf97-bfce-4340-94ab-37e71b3bfb7d","description":""},{"name":"Business units","item":[{"name":"GetBusinessUnits","id":"dd2b24f0-17de-4794-ae00-9db59123d026","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/BusinessUnits/GetBusinessUnits","description":"<p>Returns the list of business units from the selected database. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database-Name: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<ul>\n<li>None</li>\n</ul>\n","urlObject":{"path":["BusinessUnits","GetBusinessUnits"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"50be04ea-b847-4813-9dd7-78ac758a9eff","name":"Get business units","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":"/BusinessUnits/GetBusinessUnits"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 3,\r\n            \"Name\": \"poslovna jedinica 2\",\r\n            \"City\": \"Beograd\",\r\n            \"GLN\": \"8958666POI1s\",\r\n            \"KEPIsWithoutVAT\": false,\r\n            \"KEPSeparateWireTransferInvoices\": true,\r\n            \"KEPIsBeforeDiscount\": false,\r\n            \"KEPDiscountsAsSeparateItem\": false,\r\n            \"PriceType\": 1,\r\n            \"PriceTypeText\": \"Price in inventory list is without VAT\",\r\n            \"DocumentPostingMethod\": 0,\r\n            \"DocumentPostingMethodText\": \"Documents are posted with VAT\",\r\n            \"GeneralLedgerAccounts\": {\r\n                \"GoodsInWarehouseAccount\": {\r\n                    \"ID\": 1139,\r\n                    \"Code\": \"13441\",\r\n                    \"Name\": \"Roba u poslovnoj jedinici 1\"\r\n                },\r\n                \"InventoryVATAccount\": {\r\n                    \"ID\": 1140,\r\n                    \"Code\": \"13442\",\r\n                    \"Name\": \"Ukalkulisani prorez u poslovnioj jedinic 1\"\r\n                },\r\n                \"InventoryPriceMarginAccount\": {\r\n                    \"ID\": 1141,\r\n                    \"Code\": \"13491\",\r\n                    \"Name\": \"Ukalkulasiani ruc u PJ 1\"\r\n                },\r\n                \"VATPaidToFarmerAccount\": {\r\n                    \"ID\": 1176,\r\n                    \"Code\": \"27951\",\r\n                    \"Name\": \"PDV isplaćen poljoprivredniku\"\r\n                },\r\n                \"VATNotPaidToFarmerAccount\": {\r\n                    \"ID\": 1177,\r\n                    \"Code\": \"27945\",\r\n                    \"Name\": \"PDV NIJE isplaćen poljoprivredniku\"\r\n                },\r\n                \"SalesOfGoodsAccount\": {\r\n                    \"ID\": 861,\r\n                    \"Code\": \"6210\",\r\n                    \"Name\": \"Prihodi po osnovu upotrebe proizvoda i usluga za nematerijalna ulaganja \"\r\n                },\r\n                \"SalesOfServicesAccount\": {\r\n                    \"ID\": 847,\r\n                    \"Code\": \"6122\",\r\n                    \"Name\": \"Prihodi od vršenja usluga na domaćem tržištu\"\r\n                },\r\n                \"SalesOfExportedGoodsAccount\": {\r\n                    \"ID\": 851,\r\n                    \"Code\": \"6130\",\r\n                    \"Name\": \"Prihodi od prodaje proizvoda - neposredno \"\r\n                },\r\n                \"SalesOfExportedServicesAccount\": {\r\n                    \"ID\": 853,\r\n                    \"Code\": \"6132\",\r\n                    \"Name\": \"Prihodi od vršenja usluga na inostranom tržištu \"\r\n                },\r\n                \"CostsOfGoodsSoldAccount\": {\r\n                    \"ID\": 513,\r\n                    \"Code\": \"5010\",\r\n                    \"Name\": \"Nabavna vrednost prodate robe na malo \"\r\n                },\r\n                \"StandardVATRateAccount\": {\r\n                    \"ID\": 437,\r\n                    \"Code\": \"4700\",\r\n                    \"Name\": \"PDV obračunat po oštoj stopi\"\r\n                },\r\n                \"ReducedVATRateAccount\": {\r\n                    \"ID\": 441,\r\n                    \"Code\": \"4710\",\r\n                    \"Name\": \"Pdv obračunat po posebnoj sopi\"\r\n                },\r\n                \"CustomerPrepaymentsAccount\": {\r\n                    \"ID\": 292,\r\n                    \"Code\": \"4300\",\r\n                    \"Name\": \"Primljeni avansi od kupaca u zemlji\"\r\n                },\r\n                \"StandardVatRateOnPrepaymentsAccount\": {\r\n                    \"ID\": 445,\r\n                    \"Code\": \"4720\",\r\n                    \"Name\": \"PDV obračunat u avansnim računima izdatim poreskim obveznicima iz RS po stopi od 20%\"\r\n                },\r\n                \"ReducedVatRateOnPrepaymentsAccount\": {\r\n                    \"ID\": 447,\r\n                    \"Code\": \"4730\",\r\n                    \"Name\": \"PDV obračunat u avansnim računima izdatim poreskim obveznicima iz RS po stopi od 10%\"\r\n                },\r\n                \"DailyCashSalesAccount\": {\r\n                    \"ID\": 1144,\r\n                    \"Code\": \"24191\",\r\n                    \"Name\": \"Gotovina\"\r\n                },\r\n                \"DailyCheckSalesAccount\": {\r\n                    \"ID\": 177,\r\n                    \"Code\": \"2405\",\r\n                    \"Name\": \"Čekovi dati na naplatu\"\r\n                },\r\n                \"DailyCardSalesAccount\": {\r\n                    \"ID\": 1142,\r\n                    \"Code\": \"2486\",\r\n                    \"Name\": \"Kartice\"\r\n                },\r\n                \"DailyWireTransferSalesAccount\": {\r\n                    \"ID\": 112,\r\n                    \"Code\": \"2040\",\r\n                    \"Name\": \"Potraživanja od kupaca - preduzeća u zemlji \"\r\n                },\r\n                \"DailyVoucherSalesAccount\": {\r\n                    \"ID\": 1191,\r\n                    \"Code\": \"2045\",\r\n                    \"Name\": \"Vaučer\"\r\n                },\r\n                \"DailyInstantPaymentSalesAccount\": {\r\n                    \"ID\": 1192,\r\n                    \"Code\": \"2046\",\r\n                    \"Name\": \"Instant\"\r\n                },\r\n                \"DailyOtherSalesAccount\": {\r\n                    \"ID\": 1193,\r\n                    \"Code\": \"2047\",\r\n                    \"Name\": \"Drugo plaćanje\"\r\n                },\r\n                \"CashDeskAccount\": {\r\n                    \"ID\": 188,\r\n                    \"Code\": \"2430\",\r\n                    \"Name\": \"Glavna dinarska blagajna\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"ID\": 2,\r\n            \"Name\": \"Poslovna jedinica 1\",\r\n            \"City\": \"Beograd2\",\r\n            \"GLN\": \"rtzh992817777\",\r\n            \"KEPIsWithoutVAT\": false,\r\n            \"KEPSeparateWireTransferInvoices\": true,\r\n            \"KEPIsBeforeDiscount\": false,\r\n            \"KEPDiscountsAsSeparateItem\": true,\r\n            \"PriceType\": 0,\r\n            \"PriceTypeText\": \"Price in inventory list is with VAT\",\r\n            \"DocumentPostingMethod\": 0,\r\n            \"DocumentPostingMethodText\": \"Documents are posted with VAT\",\r\n            \"GeneralLedgerAccounts\": {\r\n                \"GoodsInWarehouseAccount\": {\r\n                    \"ID\": 90,\r\n                    \"Code\": \"1340\",\r\n                    \"Name\": \"Roba u prometu na malo - prodajna vrednost\"\r\n                },\r\n                \"InventoryVATAccount\": {\r\n                    \"ID\": 91,\r\n                    \"Code\": \"1344\",\r\n                    \"Name\": \"Ukalkulisani porez na promet u prometu na malo\"\r\n                },\r\n                \"InventoryPriceMarginAccount\": {\r\n                    \"ID\": 92,\r\n                    \"Code\": \"1349\",\r\n                    \"Name\": \"Ukalkulisana razlika u ceni robe u prometu na malo\"\r\n                },\r\n                \"VATPaidToFarmerAccount\": {\r\n                    \"ID\": 220,\r\n                    \"Code\": \"2795\",\r\n                    \"Name\": \"PDV isplaćen poljoprivredniku\"\r\n                },\r\n                \"VATNotPaidToFarmerAccount\": {\r\n                    \"ID\": 219,\r\n                    \"Code\": \"2794\",\r\n                    \"Name\": \"PDV koji NIJE isplaćen poljoprivredniku\"\r\n                },\r\n                \"SalesOfGoodsAccount\": {\r\n                    \"ID\": 845,\r\n                    \"Code\": \"6120\",\r\n                    \"Name\": \"Prihodi od prodaje proizvoda na malo na domaćem tržištu \"\r\n                },\r\n                \"SalesOfServicesAccount\": {\r\n                    \"ID\": 847,\r\n                    \"Code\": \"6122\",\r\n                    \"Name\": \"Prihodi od vršenja usluga na domaćem tržištu\"\r\n                },\r\n                \"SalesOfExportedGoodsAccount\": {\r\n                    \"ID\": 851,\r\n                    \"Code\": \"6130\",\r\n                    \"Name\": \"Prihodi od prodaje proizvoda - neposredno \"\r\n                },\r\n                \"SalesOfExportedServicesAccount\": {\r\n                    \"ID\": 853,\r\n                    \"Code\": \"6132\",\r\n                    \"Name\": \"Prihodi od vršenja usluga na inostranom tržištu \"\r\n                },\r\n                \"CostsOfGoodsSoldAccount\": {\r\n                    \"ID\": 513,\r\n                    \"Code\": \"5010\",\r\n                    \"Name\": \"Nabavna vrednost prodate robe na malo \"\r\n                },\r\n                \"StandardVATRateAccount\": {\r\n                    \"ID\": 437,\r\n                    \"Code\": \"4700\",\r\n                    \"Name\": \"PDV obračunat po oštoj stopi\"\r\n                },\r\n                \"ReducedVATRateAccount\": {\r\n                    \"ID\": 441,\r\n                    \"Code\": \"4710\",\r\n                    \"Name\": \"Pdv obračunat po posebnoj sopi\"\r\n                },\r\n                \"CustomerPrepaymentsAccount\": {\r\n                    \"ID\": 292,\r\n                    \"Code\": \"4300\",\r\n                    \"Name\": \"Primljeni avansi od kupaca u zemlji\"\r\n                },\r\n                \"StandardVatRateOnPrepaymentsAccount\": {\r\n                    \"ID\": 445,\r\n                    \"Code\": \"4720\",\r\n                    \"Name\": \"PDV obračunat u avansnim računima izdatim poreskim obveznicima iz RS po stopi od 20%\"\r\n                },\r\n                \"ReducedVatRateOnPrepaymentsAccount\": {\r\n                    \"ID\": 447,\r\n                    \"Code\": \"4730\",\r\n                    \"Name\": \"PDV obračunat u avansnim računima izdatim poreskim obveznicima iz RS po stopi od 10%\"\r\n                },\r\n                \"DailyCashSalesAccount\": {\r\n                    \"ID\": 1144,\r\n                    \"Code\": \"24191\",\r\n                    \"Name\": \"Gotovina\"\r\n                },\r\n                \"DailyCheckSalesAccount\": {\r\n                    \"ID\": 177,\r\n                    \"Code\": \"2405\",\r\n                    \"Name\": \"Čekovi dati na naplatu\"\r\n                },\r\n                \"DailyCardSalesAccount\": {\r\n                    \"ID\": 1142,\r\n                    \"Code\": \"2486\",\r\n                    \"Name\": \"Kartice\"\r\n                },\r\n                \"DailyWireTransferSalesAccount\": {\r\n                    \"ID\": 112,\r\n                    \"Code\": \"2040\",\r\n                    \"Name\": \"Potraživanja od kupaca - preduzeća u zemlji \"\r\n                },\r\n                \"DailyVoucherSalesAccount\": {\r\n                    \"ID\": 1191,\r\n                    \"Code\": \"2045\",\r\n                    \"Name\": \"Vaučer\"\r\n                },\r\n                \"DailyInstantPaymentSalesAccount\": {\r\n                    \"ID\": 1192,\r\n                    \"Code\": \"2046\",\r\n                    \"Name\": \"Instant\"\r\n                },\r\n                \"DailyOtherSalesAccount\": {\r\n                    \"ID\": 1193,\r\n                    \"Code\": \"2047\",\r\n                    \"Name\": \"Drugo plaćanje\"\r\n                },\r\n                \"CashDeskAccount\": {\r\n                    \"ID\": 188,\r\n                    \"Code\": \"2430\",\r\n                    \"Name\": \"Glavna dinarska blagajna\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"}],"_postman_id":"dd2b24f0-17de-4794-ae00-9db59123d026"}],"id":"248c9658-1fb5-434b-ba43-bceb3476a6b4","_postman_id":"248c9658-1fb5-434b-ba43-bceb3476a6b4","description":""},{"name":"Products","item":[{"name":"GetProductGroups","id":"83d34846-48af-4aeb-8dbe-648cbf2d5263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Products/GetProductGroups?type=1 or 2","description":"<p>Returns the list of product groups. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey {apiKey}</code></p>\n</li>\n<li><p><code>Database-Name: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li><p><strong>Type</strong> <em>(number, required)</em> — specifies the group level:</p>\n<ul>\n<li><p><code>1</code> = First product group</p>\n</li>\n<li><p><code>2</code> = Second product group</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["Products","GetProductGroups"],"host":[""],"query":[{"key":"type","value":"1 or 2"}],"variable":[]}},"response":[{"id":"24b74610-71f1-49ec-b849-dbcf5183b630","name":"Get primary product groups","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Products/GetProductGroups?Type=1","host":[""],"path":["Products","GetProductGroups"],"query":[{"key":"Type","value":"1"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 3,\r\n            \"ProductGroupName\": \"Roba\"\r\n        },\r\n        {\r\n            \"ID\": 4,\r\n            \"ProductGroupName\": \"SFK\"\r\n        },\r\n        {\r\n            \"ID\": 7,\r\n            \"ProductGroupName\": \"q\"\r\n        },\r\n        {\r\n            \"ID\": 9,\r\n            \"ProductGroupName\": \"Grupa 12\"\r\n        },\r\n        {\r\n            \"ID\": 14,\r\n            \"ProductGroupName\": \"roba 2\"\r\n        },\r\n        {\r\n            \"ID\": 17,\r\n            \"ProductGroupName\": \"1w\"\r\n        },\r\n        {\r\n            \"ID\": 19,\r\n            \"ProductGroupName\": \"Nova 4\"\r\n        },\r\n        {\r\n            \"ID\": 21,\r\n            \"ProductGroupName\": \"Slatkiši 2\"\r\n        },\r\n        {\r\n            \"ID\": 22,\r\n            \"ProductGroupName\": \"Rinfuz\"\r\n        },\r\n        {\r\n            \"ID\": 23,\r\n            \"ProductGroupName\": \"pica alkoholna\"\r\n        },\r\n        {\r\n            \"ID\": 27,\r\n            \"ProductGroupName\": \"Kartoni\"\r\n        },\r\n        {\r\n            \"ID\": 34,\r\n            \"ProductGroupName\": \"Dobavljac 1\"\r\n        },\r\n        {\r\n            \"ID\": 35,\r\n            \"ProductGroupName\": \"et\"\r\n        },\r\n        {\r\n            \"ID\": 36,\r\n            \"ProductGroupName\": \"Metco\"\r\n        },\r\n        {\r\n            \"ID\": 39,\r\n            \"ProductGroupName\": \"Papir\"\r\n        },\r\n        {\r\n            \"ID\": 42,\r\n            \"ProductGroupName\": \"sw\"\r\n        },\r\n        {\r\n            \"ID\": 45,\r\n            \"ProductGroupName\": \"88\"\r\n        },\r\n        {\r\n            \"ID\": 47,\r\n            \"ProductGroupName\": \"Grupa Test1\"\r\n        },\r\n        {\r\n            \"ID\": 160,\r\n            \"ProductGroupName\": \"grupa 100\"\r\n        },\r\n        {\r\n            \"ID\": 162,\r\n            \"ProductGroupName\": \"Grupa 200\"\r\n        },\r\n        {\r\n            \"ID\": 163,\r\n            \"ProductGroupName\": \"Grupa 201\"\r\n        }\r\n    ]\r\n}"},{"id":"af3543d9-89af-490a-83e9-1be4a0fd5535","name":"Get secondary product groups","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Products/GetProductGroups?Type=2","host":[""],"path":["Products","GetProductGroups"],"query":[{"key":"Type","value":"2"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 7,\r\n            \"ProductGroupName\": \"RG2\"\r\n        },\r\n        {\r\n            \"ID\": 8,\r\n            \"ProductGroupName\": \"rg3\"\r\n        },\r\n        {\r\n            \"ID\": 9,\r\n            \"ProductGroupName\": \"test\"\r\n        },\r\n        {\r\n            \"ID\": 13,\r\n            \"ProductGroupName\": \"Sokovi\"\r\n        },\r\n        {\r\n            \"ID\": 14,\r\n            \"ProductGroupName\": \"11et1\"\r\n        },\r\n        {\r\n            \"ID\": 16,\r\n            \"ProductGroupName\": \"Admini 6\"\r\n        },\r\n        {\r\n            \"ID\": 18,\r\n            \"ProductGroupName\": \"Cigare 7\"\r\n        },\r\n        {\r\n            \"ID\": 20,\r\n            \"ProductGroupName\": \"Grupa test 11\"\r\n        },\r\n        {\r\n            \"ID\": 34,\r\n            \"ProductGroupName\": \"Grupa 100\"\r\n        },\r\n        {\r\n            \"ID\": 74,\r\n            \"ProductGroupName\": \"Grupa 1000\"\r\n        },\r\n        {\r\n            \"ID\": 76,\r\n            \"ProductGroupName\": \"Grupa 2000\"\r\n        },\r\n        {\r\n            \"ID\": 77,\r\n            \"ProductGroupName\": \"Grupa 2001\"\r\n        },\r\n        {\r\n            \"ID\": 78,\r\n            \"ProductGroupName\": \"Grupa 3000\"\r\n        },\r\n        {\r\n            \"ID\": 79,\r\n            \"ProductGroupName\": \"grupa 3001\"\r\n        },\r\n        {\r\n            \"ID\": 80,\r\n            \"ProductGroupName\": \"Prodaja 2\"\r\n        },\r\n        {\r\n            \"ID\": 82,\r\n            \"ProductGroupName\": \"Izvo;z\"\r\n        },\r\n        {\r\n            \"ID\": 83,\r\n            \"ProductGroupName\": \"Dr\"\r\n        },\r\n        {\r\n            \"ID\": 84,\r\n            \"ProductGroupName\": \"Druga\"\r\n        },\r\n        {\r\n            \"ID\": 85,\r\n            \"ProductGroupName\": \"ALEVA\"\r\n        },\r\n        {\r\n            \"ID\": 86,\r\n            \"ProductGroupName\": \"\"\r\n        },\r\n        {\r\n            \"ID\": 87,\r\n            \"ProductGroupName\": \"CARLSBERG\"\r\n        },\r\n        {\r\n            \"ID\": 88,\r\n            \"ProductGroupName\": \"METRO\"\r\n        },\r\n        {\r\n            \"ID\": 89,\r\n            \"ProductGroupName\": \"NECTAR\"\r\n        },\r\n        {\r\n            \"ID\": 90,\r\n            \"ProductGroupName\": \"KVIKI DOO\"\r\n        },\r\n        {\r\n            \"ID\": 91,\r\n            \"ProductGroupName\": \"BOSIC\"\r\n        },\r\n        {\r\n            \"ID\": 92,\r\n            \"ProductGroupName\": \"VINDIJA \"\r\n        },\r\n        {\r\n            \"ID\": 93,\r\n            \"ProductGroupName\": \"PLANTAZE\"\r\n        },\r\n        {\r\n            \"ID\": 94,\r\n            \"ProductGroupName\": \"ATLANTIC BRANDS\"\r\n        },\r\n        {\r\n            \"ID\": 95,\r\n            \"ProductGroupName\": \"CARNEX\"\r\n        },\r\n        {\r\n            \"ID\": 97,\r\n            \"ProductGroupName\": \"DELTA  dmd\"\r\n        },\r\n        {\r\n            \"ID\": 98,\r\n            \"ProductGroupName\": \"ABC\"\r\n        },\r\n        {\r\n            \"ID\": 100,\r\n            \"ProductGroupName\": \"Ceo Broj 2a\"\r\n        },\r\n        {\r\n            \"ID\": 103,\r\n            \"ProductGroupName\": \"NRGT2\"\r\n        },\r\n        {\r\n            \"ID\": 104,\r\n            \"ProductGroupName\": \"Uvoz\"\r\n        },\r\n        {\r\n            \"ID\": 105,\r\n            \"ProductGroupName\": \"Test Grupa 2\"\r\n        },\r\n        {\r\n            \"ID\": 139,\r\n            \"ProductGroupName\": \"ng190\"\r\n        },\r\n        {\r\n            \"ID\": 140,\r\n            \"ProductGroupName\": \"ng191\"\r\n        },\r\n        {\r\n            \"ID\": 141,\r\n            \"ProductGroupName\": \"ng192\"\r\n        },\r\n        {\r\n            \"ID\": 142,\r\n            \"ProductGroupName\": \"ng193\"\r\n        },\r\n        {\r\n            \"ID\": 143,\r\n            \"ProductGroupName\": \"II grupa\"\r\n        },\r\n        {\r\n            \"ID\": 144,\r\n            \"ProductGroupName\": \"b\"\r\n        },\r\n        {\r\n            \"ID\": 145,\r\n            \"ProductGroupName\": \"II Grupa B\"\r\n        },\r\n        {\r\n            \"ID\": 146,\r\n            \"ProductGroupName\": \"PP1\"\r\n        },\r\n        {\r\n            \"ID\": 147,\r\n            \"ProductGroupName\": \"PP2\"\r\n        },\r\n        {\r\n            \"ID\": 148,\r\n            \"ProductGroupName\": \"Nestle\"\r\n        },\r\n        {\r\n            \"ID\": 149,\r\n            \"ProductGroupName\": \"RG2 - Dejan\"\r\n        },\r\n        {\r\n            \"ID\": 150,\r\n            \"ProductGroupName\": \"RG2 - Dejan2\"\r\n        },\r\n        {\r\n            \"ID\": 151,\r\n            \"ProductGroupName\": \"Usluga\"\r\n        },\r\n        {\r\n            \"ID\": 152,\r\n            \"ProductGroupName\": \"ng2100\"\r\n        },\r\n        {\r\n            \"ID\": 153,\r\n            \"ProductGroupName\": \"DELTA dms\"\r\n        },\r\n        {\r\n            \"ID\": 154,\r\n            \"ProductGroupName\": \"Grupa 1001\"\r\n        },\r\n        {\r\n            \"ID\": 155,\r\n            \"ProductGroupName\": \"-\"\r\n        },\r\n        {\r\n            \"ID\": 156,\r\n            \"ProductGroupName\": \"PIVA\"\r\n        },\r\n        {\r\n            \"ID\": 157,\r\n            \"ProductGroupName\": \"DG2\"\r\n        },\r\n        {\r\n            \"ID\": 158,\r\n            \"ProductGroupName\": \"1DRG\"\r\n        },\r\n        {\r\n            \"ID\": 159,\r\n            \"ProductGroupName\": \"22\"\r\n        },\r\n        {\r\n            \"ID\": 160,\r\n            \"ProductGroupName\": \"21\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"83d34846-48af-4aeb-8dbe-648cbf2d5263"},{"name":"GetProducts","id":"fe50ac0a-79eb-44f0-bde4-9fdfca1a7d31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Products/GetProducts","description":"<p>Returns the list of products. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey {apiKey}</code></p>\n</li>\n<li><p><code>Database-Name: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li>None</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>Code</strong> <em>(text)</em> – filter by product code</p>\n</li>\n<li><p><strong>ProductGroupID</strong> <em>(number)</em> – filter by first product group<br />  (can be obtained from request <em>GetProductGroups</em>)</p>\n</li>\n<li><p><strong>ProductGroup2ID</strong> <em>(number)</em> – filter by second product group<br />  (can be obtained from request <em>GetProductGroups</em>)</p>\n</li>\n</ul>\n<p><strong>Note</strong></p>\n<p>The field <strong><code>ProductTypeInt</code></strong> in response represents an enumeration of the product types:</p>\n<ul>\n<li><p><strong>1</strong> – Service</p>\n</li>\n<li><p><strong>2</strong> – Consignment</p>\n</li>\n<li><p><strong>3</strong> – Goods</p>\n</li>\n<li><p><strong>4</strong> – RawMaterial</p>\n</li>\n<li><p><strong>5</strong> – Product</p>\n</li>\n</ul>\n","urlObject":{"path":["Products","GetProducts"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Code","value":"text"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductGroupID","value":"number"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductGroup2ID","value":"number"}],"variable":[]}},"response":[{"id":"7a5ebf8d-d9cb-4bb3-92bc-8f1d25c19a46","name":"Returns all products","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Products/GetProducts","path":["Products","GetProducts"],"query":[{"key":"Code","value":null,"type":"text","disabled":true},{"key":"ProductGroupID","value":null,"type":"text","disabled":true},{"key":"ProductGroup2ID","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"ID\": 5,\n            \"ProductGroupID\": 283,\n            \"ProductGroup2ID\": 9,\n            \"UnitOfMeasure\": \"kom\",\n            \"ProductGroup\": \"14\",\n            \"ProductGroup2\": \"test\",\n            \"ProductType\": \"Goods\",\n            \"ProductTypeInt\": 3,\n            \"Name\": \"Čokolada milka 100g\",\n            \"Code\": \"1011\",\n            \"VatRate\": 20,\n            \"PrimaryBarcode\": \"555xx\",\n            \"AdditionalBarcodes\": [\n                {\n                    \"Barcode\": \"99\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"98\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"97\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"99xx\",\n                    \"AssortmentLabel\": \"\"\n                }\n            ],\n            \"Declaration\": {\n                \"QualityControl\": \"dejan\",\n                \"Manufacturer\": \"Sbox Limited Tehnology\",\n                \"Importer\": \"Pc Planet Doo, Podgorica  020/221-326 \",\n                \"CountryOfOrigin\": \"Kina\",\n                \"MaterialComposition\": \"Sastav\",\n                \"ProductionMethod\": \"\",\n                \"Purpose\": \"\",\n                \"Other\": \"2016\",\n                \"Instructions\": \"Otvoriti staviti u usta i zagristi. Ponavljati dok ima čokolade\",\n                \"Size\": \"\"\n            },\n            \"Note1\": \"\",\n            \"Note2\": \"\",\n            \"AgreedPrice\": 125,\n            \"AgreedDiscount\": 10,\n            \"PackageQuantity\": 5,\n            \"MinimumStock\": 100,\n            \"MaximumStock\": 0,\n            \"HasAssortment\": false,\n            \"DisallowDiscount\": false,\n            \"AdditionalDescription\": \"Milka chocolate 100g\",\n            \"Weight\": 0,\n            \"Pref\": \"\",\n            \"SubstituteGroupNumber\": 14,\n            \"RetailTaxRateCode\": \"\",\n            \"TaxCategorySEF\": \"S\",\n            \"TaxExemptionCode\": \"\",\n            \"TaxExemptionText\": \"\",\n            \"BillOfMaterials\": []\n        },\n        {\n            \"ID\": 34,\n            \"ProductGroupID\": 283,\n            \"ProductGroup2ID\": 9,\n            \"UnitOfMeasure\": \"kg\",\n            \"ProductGroup\": \"SFK\",\n            \"ProductGroup2\": \"11et1\",\n            \"ProductType\": \"Goods\",\n            \"ProductTypeInt\": 3,\n            \"Name\": \"Žvake orbit1\",\n            \"Code\": \"10\",\n            \"VatRate\": 20,\n            \"PrimaryBarcode\": \"789\",\n            \"AdditionalBarcodes\": [\n                {\n                    \"Barcode\": \"1222\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"2223\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"2224\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"2225\",\n                    \"AssortmentLabel\": \"\"\n                },\n                {\n                    \"Barcode\": \"8881\",\n                    \"AssortmentLabel\": \"ss\"\n                }\n            ],\n            \"Declaration\": {\n                \"QualityControl\": \"10 kvalitet\",\n                \"Manufacturer\": \"10 proizvođac\",\n                \"Importer\": \"10 uvoznik\",\n                \"CountryOfOrigin\": \"10 ZEmlja\",\n                \"MaterialComposition\": \"10 sastav\",\n                \"ProductionMethod\": \"10 izrada\",\n                \"Purpose\": \"10 namena\",\n                \"Other\": \"10 drugo\",\n                \"Instructions\": \"10 uputstvo\",\n                \"Size\": \"10 velicina\"\n            },\n            \"Note1\": \"\",\n            \"Note2\": \"\",\n            \"AgreedPrice\": 160.85,\n            \"AgreedDiscount\": 20,\n            \"PackageQuantity\": 11.4,\n            \"MinimumStock\": 4,\n            \"MaximumStock\": 6,\n            \"HasAssortment\": false,\n            \"DisallowDiscount\": false,\n            \"AdditionalDescription\": \"1234\",\n            \"Weight\": 0,\n            \"Pref\": \"\",\n            \"SubstituteGroupNumber\": 1,\n            \"RetailTaxRateCode\": \"\",\n            \"TaxCategorySEF\": \"S\",\n            \"TaxExemptionCode\": \"\",\n            \"TaxExemptionText\": \"\",\n            \"BillOfMaterials\": [\n                {\n                    \"ProductID\": 42,\n                    \"Description\": \"\",\n                    \"Quantity\": 1,\n                    \"Price\": 0\n                },\n                {\n                    \"ProductID\": 35,\n                    \"Description\": \"\",\n                    \"Quantity\": 2,\n                    \"Price\": 0\n                }\n            ]\n        }\n    ]\n}"},{"id":"76ccfff7-0d68-48a3-8649-ca4038790d00","name":"Returns a single product by its code.","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Products/GetProducts?Code=1011","host":[""],"path":["Products","GetProducts"],"query":[{"key":"Code","value":"1011"},{"key":"ProductGroupID","value":null,"type":"text","disabled":true},{"key":"ProductGroup2ID","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 5,\r\n            \"ProductGroupID\": 283,\r\n            \"ProductGroup2ID\": 9,\r\n            \"UnitOfMeasure\": \"kom\",\r\n            \"ProductGroup\": \"14\",\r\n            \"ProductGroup2\": \"test\",\r\n            \"ProductType\": \"Goods\",\r\n            \"ProductTypeInt\": 3,\r\n            \"Name\": \"Čokolada milka 100g\",\r\n            \"Code\": \"1011\",\r\n            \"VatRate\": 20.00,\r\n            \"PrimaryBarcode\": \"555xx\",\r\n            \"AdditionalBarcodes\": [\r\n                {\r\n                    \"Barcode\": \"99\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"98\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"97\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"99xx\",\r\n                    \"AssortmentLabel\": \"\"\r\n                }\r\n            ],\r\n            \"Declaration\": {\r\n                \"QualityControl\": \"dejan\",\r\n                \"Manufacturer\": \"Sbox Limited Tehnology\",\r\n                \"Importer\": \"Pc Planet Doo, Podgorica  020/221-326 \",\r\n                \"CountryOfOrigin\": \"Kina\",\r\n                \"MaterialComposition\": \"Sastav\",\r\n                \"ProductionMethod\": \"\",\r\n                \"Purpose\": \"\",\r\n                \"Other\": \"2016\",\r\n                \"Instructions\": \"Otvoriti staviti u usta i zagristi. Ponavljati dok ima čokolade\",\r\n                \"Size\": \"\"\r\n            },\r\n            \"Note1\": \"\",\r\n            \"Note2\": \"\",\r\n            \"AgreedPrice\": 125.00,\r\n            \"AgreedDiscount\": 10.0000,\r\n            \"PackageQuantity\": 5.0000,\r\n            \"MinimumStock\": 100.0000,\r\n            \"MaximumStock\": 0.0000,\r\n            \"HasAssortment\": false,\r\n            \"DisallowDiscount\": false,\r\n            \"AdditionalDescription\": \"Milka chocolate 100g\",\r\n            \"Weight\": 0.0000,\r\n            \"Pref\": \"\",\r\n            \"SubstituteGroupNumber\": 14,\r\n            \"RetailTaxRateCode\": \"\",\r\n            \"TaxCategorySEF\": \"S\",\r\n            \"TaxExemptionCode\": \"\",\r\n            \"TaxExemptionText\": \"\",\r\n            \"BillOfMaterials\": []\r\n        }\r\n    ]\r\n}"},{"id":"8c034425-dedc-4ef2-bb46-4d1e0360dce3","name":"Returns products filtered by product group","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Products/GetProducts?ProductGroupID=4","host":[""],"path":["Products","GetProducts"],"query":[{"key":"Code","value":null,"type":"text","disabled":true},{"key":"ProductGroupID","value":"4"},{"key":"ProductGroup2ID","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 34,\r\n            \"ProductGroupID\": 283,\r\n            \"ProductGroup2ID\": 9,\r\n            \"UnitOfMeasure\": \"kg\",\r\n            \"ProductGroup\": \"SFK\",\r\n            \"ProductGroup2\": \"11et1\",\r\n            \"ProductType\": \"Goods\",\r\n            \"ProductTypeInt\": 3,\r\n            \"Name\": \"Žvake orbit1\",\r\n            \"Code\": \"10\",\r\n            \"VatRate\": 20,\r\n            \"PrimaryBarcode\": \"789\",\r\n            \"AdditionalBarcodes\": [\r\n                {\r\n                    \"Barcode\": \"1222\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"2223\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"2224\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"2225\",\r\n                    \"AssortmentLabel\": \"\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"8881\",\r\n                    \"AssortmentLabel\": \"ss\"\r\n                }\r\n            ],\r\n            \"Declaration\": {\r\n                \"QualityControl\": \"10 kvalitet\",\r\n                \"Manufacturer\": \"10 proizvođac\",\r\n                \"Importer\": \"10 uvoznik\",\r\n                \"CountryOfOrigin\": \"10 ZEmlja\",\r\n                \"MaterialComposition\": \"10 sastav\",\r\n                \"ProductionMethod\": \"10 izrada\",\r\n                \"Purpose\": \"10 namena\",\r\n                \"Other\": \"10 drugo\",\r\n                \"Instructions\": \"10 uputstvo\",\r\n                \"Size\": \"10 velicina\"\r\n            },\r\n            \"Note1\": \"\",\r\n            \"Note2\": \"\",\r\n            \"AgreedPrice\": 160.85,\r\n            \"AgreedDiscount\": 20,\r\n            \"PackageQuantity\": 11.4,\r\n            \"MinimumStock\": 4,\r\n            \"MaximumStock\": 6,\r\n            \"HasAssortment\": false,\r\n            \"DisallowDiscount\": false,\r\n            \"AdditionalDescription\": \"1234\",\r\n            \"Weight\": 0,\r\n            \"Pref\": \"\",\r\n            \"SubstituteGroupNumber\": 1,\r\n            \"RetailTaxRateCode\": \"\",\r\n            \"TaxCategorySEF\": \"S\",\r\n            \"TaxExemptionCode\": \"\",\r\n            \"TaxExemptionText\": \"\",\r\n            \"BillOfMaterials\": [\r\n                {\r\n                    \"ProductID\": 42,\r\n                    \"Description\": \"\",\r\n                    \"Quantity\": 1,\r\n                    \"Price\": 0\r\n                },\r\n                {\r\n                    \"ProductID\": 35,\r\n                    \"Description\": \"\",\r\n                    \"Quantity\": 2,\r\n                    \"Price\": 0\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"ID\": 35,\r\n            \"ProductGroupID\": 283,\r\n            \"ProductGroup2ID\": 9,\r\n            \"UnitOfMeasure\": \"km\",\r\n            \"ProductGroup\": \"SFK\",\r\n            \"ProductGroup2\": \"test\",\r\n            \"ProductType\": \"Goods\",\r\n            \"ProductTypeInt\": 3,\r\n            \"Name\": \"Pantalone muške\",\r\n            \"Code\": \"12\",\r\n            \"VatRate\": 20,\r\n            \"PrimaryBarcode\": \"856444915\",\r\n            \"AdditionalBarcodes\": [\r\n                {\r\n                    \"Barcode\": \"9987\",\r\n                    \"AssortmentLabel\": \"S\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"9988\",\r\n                    \"AssortmentLabel\": \"L\"\r\n                },\r\n                {\r\n                    \"Barcode\": \"9989\",\r\n                    \"AssortmentLabel\": \"XS\"\r\n                }\r\n            ],\r\n            \"Declaration\": {\r\n                \"QualityControl\": \"1Kval1\",\r\n                \"Manufacturer\": \"1Pro\",\r\n                \"Importer\": \"1Uvo\",\r\n                \"CountryOfOrigin\": \"\",\r\n                \"MaterialComposition\": \"1Sas\",\r\n                \"ProductionMethod\": \"1Nac\",\r\n                \"Purpose\": \"1Nam\",\r\n                \"Other\": \"1Dru\",\r\n                \"Instructions\": \"1Uputst\",\r\n                \"Size\": \"1VEl\"\r\n            },\r\n            \"Note1\": \"\",\r\n            \"Note2\": \"\",\r\n            \"AgreedPrice\": 750.25,\r\n            \"AgreedDiscount\": 0,\r\n            \"PackageQuantity\": 0,\r\n            \"MinimumStock\": 0,\r\n            \"MaximumStock\": 0,\r\n            \"HasAssortment\": true,\r\n            \"DisallowDiscount\": false,\r\n            \"AdditionalDescription\": \"6549\",\r\n            \"Weight\": 0,\r\n            \"Pref\": \"\",\r\n            \"SubstituteGroupNumber\": 1,\r\n            \"RetailTaxRateCode\": \"\",\r\n            \"TaxCategorySEF\": \"S\",\r\n            \"TaxExemptionCode\": \"\",\r\n            \"TaxExemptionText\": \"\",\r\n            \"BillOfMaterials\": []\r\n        }\r\n    ]\r\n}"}],"_postman_id":"fe50ac0a-79eb-44f0-bde4-9fdfca1a7d31"},{"name":"GetProductImages","id":"f47207ec-6fd0-4f6c-8d6c-394f4f40de3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Products/GetProductImages?ProductID=number&Code=text","description":"<p>Returns a list of images for the selected product. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Recommendation:</strong></p>\n<p>In case it is necessary to return images for all products in the product registry, it is recommended to first obtain a list of products that actually have images using the <em>GetProductsWithImages</em> request. Since request <em>GetProductImages</em> is a heavy operation and frequent calls should be avoided (see the <em>Limitations</em> section), it is not recommended to call request <em>GetProductImages</em> for products that do not have images. Instead, first obtain a list of products that have images using the <em>GetProductsWithImages</em> request, and then call request <em>GetProductImages</em> only for products that actually have images.</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li>At least one of the parameters must be provided.</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><em><strong>ProductID</strong></em> <em>(number)</em> – represents the product ID.<br />  (ProductID can be obtained from request <em>GetProducts</em>)</p>\n</li>\n<li><p><strong>Code</strong> <em>(text)</em> – represents the product code.</p>\n</li>\n</ul>\n<p><strong>Note:</strong></p>\n<ul>\n<li><p>At least one of the following parameters must be provided: <code>ProductID</code> or <code>Code</code>. Both parameters can be sent, but at least one is required.</p>\n</li>\n<li><p>If list is empty, the product has no image or the product does not exist.</p>\n</li>\n<li><p>The image is returned as a Base64-encoded string.</p>\n</li>\n</ul>\n","urlObject":{"path":["Products","GetProductImages"],"query":[{"key":"ProductID","value":"number"},{"key":"Code","value":"text"}],"variable":[]}},"response":[{"id":"eb1edb46-4a1f-43ed-be24-f64bdf8ece8b","name":"GetProductImages","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"{{baseurl}}Products/GetProductImages?ProductID=6","host":["{{baseurl}}Products"],"path":["GetProductImages"],"query":[{"key":"ProductID","value":"6"},{"key":"Code","value":"","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 6,\r\n            \"Code\": \"1011\",\r\n            \"Name\": \"Čokolada milka 100g\",\r\n            \"BarCode\": \"555xx\",\r\n            \"Decription\": \"Cokolada sa lešnikom\",\r\n            \"ImageBase64\": \"/9j/4AAQSkZJRgABAQEAAAAAAAD/2wBDAAkGBxQSEhUUEhQWFBUXFBUVFRYVGBQcF...\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"f47207ec-6fd0-4f6c-8d6c-394f4f40de3c"},{"name":"GetProductsWithImages","id":"3e755088-2938-427e-9df2-36842da21173","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database>","type":"text"}],"url":"/Products/GetProductsWithImages","description":"<p>Returns a list of <code>ProductID</code> for products that have images. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p>This request can be used when it is necessary to return images for all products in the product registry. Since request <em>GetProductImages</em> is a heavy operation and frequent calls should be avoided (see the <em>Limitations</em> section), it is not recommended to call request <em>GetProductImages</em> for products that do not have images. Instead, it is recommended to first obtain a list of products that have images using <em>GetProductsWithImages</em> request, and then call <em>GetProductImages</em> request only for products that actually have images.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<ul>\n<li>None</li>\n</ul>\n","urlObject":{"path":["Products","GetProductsWithImages"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"d1d1f90d-2e10-44ca-9fca-be949ac8f3a6","name":"GetProductsWithImages","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":"Products/GetProductsWithImages"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 5\r\n        },\r\n        {\r\n            \"ProductID\": 6\r\n        },\r\n        {\r\n            \"ProductID\": 7\r\n        },\r\n        {\r\n            \"ProductID\": 8\r\n        },\r\n        {\r\n            \"ProductID\": 12\r\n        },\r\n        {\r\n            \"ProductID\": 13\r\n        }\r\n    ]\r\n}"}],"_postman_id":"3e755088-2938-427e-9df2-36842da21173"}],"id":"3234ae7c-448a-4b86-a8aa-8f5c83e6c0c0","_postman_id":"3234ae7c-448a-4b86-a8aa-8f5c83e6c0c0","description":""},{"name":"Customers","item":[{"name":"AddCustomer","id":"10e84cc6-aeb2-45f7-b313-342d2b3f34fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Database","value":"<your database name>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"ID\": 0,\r\n  \"Name\": \"string\",\r\n  \"Address\": \"string\",\r\n  \"City\": \"string\",\r\n  \"PostalCode\": \"string\",\r\n  \"VATNumber\": \"string\",\r\n  \"Note\": \"string\",\r\n  \"ContactName\": \"string\",\r\n  \"Phone1\": \"string\",\r\n  \"Phone2\": \"string\",\r\n  \"Phone3\": \"string\",\r\n  \"Email\": \"string\",\r\n  \"Code\": 0,\r\n  \"TypeAsInt\": 0,\r\n  \"TypeAsText\": \"string\",\r\n  \"RegistrationNumber\": \"string\",\r\n  \"Country\": \"string\",\r\n  \"JBKJS\": \"string\",\r\n  \"DefaultDiscount\": 0,\r\n  \"DaysUntilDueDate\": 0,\r\n  \"CustomerAccountManagerID\": 15,\r\n  \"IsActive\":true,\r\n  \"BusinessUnits\": [\r\n    {\r\n      \"CustomerBusinessUnitID\": 0,\r\n      \"Name\": \"string\",\r\n      \"GLN\": \"string\",\r\n      \"Address\": \"string\",\r\n      \"City\": \"string\",\r\n      \"PostalCode\": \"string\",\r\n      \"Note\": \"string\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/Customers/AddCustomer","description":"<p>Adds a new customer to the database based on the provided JSON. Data will be added to the database specified in the <code>Database</code> header.</p>\n<p>The customer name must be unique in the database. If an attempt is made to add a customer with a name that already exists, the request will return an error with <strong>HTTP status code 400 – BadRequest</strong> and <strong>Local error code 3100</strong> with the following message:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Customer with the specified name already exists in the database.\n\n</code></pre><p><strong>Recommendation:</strong> check whether the customer with the specified name already exists in the database by using the <em>CheckCustomer</em> request before adding a new customer.</p>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Body:</strong></p>\n<ul>\n<li>JSON</li>\n</ul>\n<h4 id=\"json-notes\"><strong>JSON notes:</strong></h4>\n<p>A sample JSON request is provided in the example section.</p>\n<p><strong>Required fields:</strong></p>\n<ul>\n<li><p><code>Name</code></p>\n</li>\n<li><p><code>TypeAsInt</code>Allowed values are:<br />  0 – Domestic legal entity<br />  1 – Foreign legal entity<br />  2 – Individual<br />  3 – Sole proprietor<br />  4 – Public sector entity</p>\n</li>\n</ul>\n<p>All other fields are optional.</p>\n<p><strong>Optional fields:</strong></p>\n<ul>\n<li><code>IsActive</code> - If not provided, it will be set to true.</li>\n</ul>\n<p><strong>Error notes:</strong></p>\n<ul>\n<li><p>Customer name must be unique. (field: <code>Name</code>)</p>\n</li>\n<li><p>Customer business unit name must be unique within the submitted list. (field: <code>BusinessUnits.Name</code>)</p>\n</li>\n<li><p>Customer business unit GLN must be unique within the submitted list. (field: <code>BusinessUnits.GLN</code>)</p>\n</li>\n<li><p>Email address must be in a valid format. (field: <code>Email</code>)</p>\n</li>\n<li><p>If the customer is a domestic legal entity or a public sector entity (<code>TypeAsInt</code> = 0 or <code>TypeAsInt</code> = 4) and a VAT number (field: <code>VATNumber</code>) is provided, the VAT number must have 9 digits.</p>\n</li>\n<li><p>If the customer is a sole proprietor (<code>TypeAsInt</code> = 3) and a VAT number (field: <code>VATNumber</code>) is provided, the VAT number must have 13 digits.</p>\n</li>\n<li><p>If the customer is a public sector entity (<code>TypeAsInt</code> = 4) and a JBKJS is provided (field: <code>JBKJS</code>), the JBKJS must have 5 digits</p>\n</li>\n<li><p>If the <code>CustomerAccountManagerID</code> is provided, it must reference an existing employee in the database.</p>\n</li>\n</ul>\n<p><strong>Maximum field lengths:</strong></p>\n<ul>\n<li><p><code>Name</code> – 200 characters</p>\n</li>\n<li><p><code>Address</code> – 100 characters</p>\n</li>\n<li><p><code>City</code> – 20 characters</p>\n</li>\n<li><p><code>PostalCode</code> – 50 characters</p>\n</li>\n<li><p><code>VATNumber</code> – 4000 characters</p>\n</li>\n<li><p><code>Note</code> – 100 characters</p>\n</li>\n<li><p><code>ContactName</code> – 50 characters</p>\n</li>\n<li><p><code>Phone1</code> – 50 characters</p>\n</li>\n<li><p><code>Phone2</code> – 50 characters</p>\n</li>\n<li><p><code>Phone3</code> – 100 characters</p>\n</li>\n<li><p><code>Email</code> – 100 characters (validated as an email address)</p>\n</li>\n<li><p><code>RegistrationNumber</code> – 50 characters</p>\n</li>\n<li><p><code>Country</code> – 50 characters</p>\n</li>\n<li><p><code>JBKJS</code> – 5 characters</p>\n</li>\n</ul>\n<p><strong>Fields ID, Code, TypeAsText and CustomerBusinessID:</strong></p>\n<p>Fields <code>ID</code>, <code>Code</code>, <code>TypeAsText</code> and <code>CustomerBusinessID</code> are not used when adding a new customer. Their values will be ignored. These fields are only used when returning customer data from the database in the GetCustomers and CheckCustomer methods.</p>\n<p><strong>Field JBKJS</strong></p>\n<p>JBKJS (srb. Jedinstveni broj korisnika javnih sredstava) is a unique identification number assigned to public fund beneficiaries in Serbia.</p>\n","urlObject":{"path":["Customers","AddCustomer"],"query":[],"variable":[]}},"response":[{"id":"5caf784d-28b2-4a9d-b6bb-5bcf70ab8b69","name":"AddCustomer","originalRequest":{"method":"POST","header":[{"key":"Database","value":"Sors2014","type":"text"}],"body":{"mode":"raw","raw":"{\r\n          \"ID\": 123,\r\n          \"Name\": \"TechnoSoft DOO\",\r\n          \"Address\": \"Bulevar Kralja Aleksandra 120\",\r\n          \"City\": \"Beograd\",\r\n          \"PostalCode\": \"11000\",\r\n          \"VATNumber\": \"108745321\",\r\n          \"Note\": \"Dugogodišnji partner i kupac u sistemu.\",\r\n          \"ContactName\": \"Marko Marković\",\r\n          \"Phone1\": \"+381112234567\",\r\n          \"Phone2\": \"+381641234567\",\r\n          \"Phone3\": \"\",\r\n          \"Email\": \"info@technosoft.rs\",\r\n          \"Code\": 1001,\r\n          \"TypeAsInt\": 1,\r\n          \"TypeAsText\": \"Pravno lice\",\r\n          \"RegistrationNumber\": \"07896543\",\r\n          \"Country\": \"Srbija\",\r\n          \"JBKJS\": \"12345\",\r\n          \"DefaultDiscount\": 0,\r\n          \"DaysUntilDueDate\": 0,\r\n          \"CustomerAccountManagerID\": 15,\r\n          \"IsActive\":true,\r\n          \"BusinessUnits\": [\r\n            {\r\n            \"CustomerBusinessUnitID\": 0,\r\n            \"Name\": \"string\",\r\n            \"GLN\": \"string\",\r\n            \"Address\": \"string\",\r\n            \"City\": \"string\",\r\n            \"PostalCode\": \"string\",\r\n            \"Note\": \"string\"\r\n            }\r\n        ]\r\n  }\r\n","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}Customers/AddCustomer"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n  \"success\": true,\r\n  \"data\": {\r\n    \"CustomerID\": 2286\r\n  }\r\n}"}],"_postman_id":"10e84cc6-aeb2-45f7-b313-342d2b3f34fe"},{"name":"GetCustomers","id":"568a59bc-1470-4a0b-b476-8b0fb1ba0045","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"/Customers/GetCustomers?CustomerID=number&Name=text&VATNumber=text&Phone=text&Email=text","description":"<p>Returns a list of customers based on the specified parameters. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li>None</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<p>Parameters Name, Phone and Email supports <strong>partial match search</strong> (substring search).<br />For example, if <code>Email = \"info\"</code> is provided, the results will include records like <em>\"<a href=\"mailto:info@company.com\">info@company.com</a>\"</em>, <em>\"<a href=\"mailto:sales.info@domain.rs\">sales.info@domain.rs</a>\"</em>, or <em>\"<a href=\"mailto:support@infotech.rs\">support@infotech.rs</a>\"</em>.</p>\n<ul>\n<li><p><strong>CustomerID</strong> <em>(number)</em> – filter by customer ID</p>\n</li>\n<li><p><strong>Name</strong> <em>(text, max length: 100)</em> – filter by partial match in customer name</p>\n</li>\n<li><p><strong>VATNumber</strong> <em>(text, max length: 20)</em> – filter by VAT number</p>\n</li>\n<li><p><strong>Phone</strong> <em>(text, max length: 50)</em> – filter by partial match in phone number</p>\n</li>\n<li><p><strong>Email</strong> <em>(text, max length: 100)</em> – filter by partial match in email address</p>\n</li>\n<li><p><strong>RegNumber</strong> (text, max length: 20) - filter by registration number</p>\n</li>\n</ul>\n","urlObject":{"path":["Customers","GetCustomers"],"query":[{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"CustomerID","value":"number"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Name","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"VATNumber","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Phone","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Email","value":"text"}],"variable":[]}},"response":[{"id":"a37638b8-33db-4aef-b18a-2f395f0ec007","name":"GetCustomers","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}Customers/GetCustomers?CustomerID=4","host":["{{baseUrl}}Customers"],"path":["GetCustomers"],"query":[{"key":"CustomerID","value":"4"},{"key":"Name","value":"Softkom","disabled":true},{"key":"VATNumber","value":"103592993","disabled":true},{"key":"Phone","value":"063","type":"text","disabled":true},{"key":"Email","value":"gmail","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 4,\r\n            \"Code\": 1575,\r\n            \"TypeAsText\": \"Domestic legal entity\",\r\n            \"Name\": \"Tehnohemija ad\",\r\n            \"Address\": \"Bul. Mihajla Pupina 256 \",\r\n            \"City\": \"Novi Beograd\",\r\n            \"PostalCode\": \"11000\",\r\n            \"VATNumber\": \"103592993\",\r\n            \"Note\": \"Napomena kupca\",\r\n            \"ContactName\": \"Petar Petrović\",\r\n            \"Phone1\": \"064/123-4567\",\r\n            \"Phone2\": \"\",\r\n            \"Phone3\": \"069/1234-56-78\",\r\n            \"Email\": \"info@softkom.rs\",\r\n            \"TypeAsInt\": 0,\r\n            \"RegistrationNumber\": \"\",\r\n            \"Country\": \"Srbija\",\r\n            \"JBKJS\": \"\",\r\n            \"DefaultDiscount\": 10.00,\r\n            \"DaysUntilDueDate\": 3,\r\n            \"CustomerAccountManagerID\": 15,\r\n            \"IsActive\":true,\r\n            \"BusinessUnits\": [\r\n                {\r\n                    \"CustomerBusinessUnitID\": 734,\r\n                    \"Name\": \"Poslovnica Niš\",\r\n                    \"GLN\": \"\",\r\n                    \"Address\": \"\",\r\n                    \"City\": \"\",\r\n                    \"PostalCode\": \"\",\r\n                    \"Note\": \"\"\r\n                },\r\n                {\r\n                    \"CustomerBusinessUnitID\": 747,\r\n                    \"Name\": \"Slađana Sivić\",\r\n                    \"GLN\": \"\",\r\n                    \"Address\": \"800569874\",\r\n                    \"City\": \"\",\r\n                    \"PostalCode\": \"\",\r\n                    \"Note\": \"\"\r\n                },\r\n                {\r\n                    \"CustomerBusinessUnitID\": 972,\r\n                    \"Name\": \"Poslovnica XY\",\r\n                    \"GLN\": \"GLN\",\r\n                    \"Address\": \"Adresa\",\r\n                    \"City\": \"Mesto\",\r\n                    \"PostalCode\": \"Postanski\",\r\n                    \"Note\": \"Napomena\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"}],"_postman_id":"568a59bc-1470-4a0b-b476-8b0fb1ba0045"},{"name":"CheckCustomer","id":"62b2f509-b5ad-4bac-80c0-97c2c7fa639d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Customers/CheckCustomer?CustomerID=number&Name=text&VatNumber=text&Phone=text&Email=text","description":"<p>This request is used to verify whether a customer is already present in the database before adding a new one. For example, when adding a document, it may be necessary to add a customer as part of the process, and performing this check helps prevent an error caused by attempting to add a customer that already exists.</p>\n<p>For the purpose of checking whether a customer already exists in the database, use the <em>CheckCustomer</em> request instead of <em>GetCustomers</em>, because <em>GetCustomers</em> is a heavy operation (heavy operations are limited, see <em>Limitation</em> section). Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Response notes:</strong></p>\n<p>If the request returns an empty list, it means that the customer does <strong>not</strong> exist in the database.</p>\n<p>If the request returns exactly one item in the list, the customer <strong>does</strong> exist, and the returned <code>ID</code> can be used for further operations (for example, when adding documents).</p>\n<p>If the request returns more than one item, it means that multiple customers in the database match the search criteria. In this case, it is necessary to determine which customer should be used. This can be resolved depending on the application logic — for example:</p>\n<ul>\n<li><p>automatically use the predefined customer for this scenario, so that it can be manually changed later,</p>\n</li>\n<li><p>manually selecting the correct customer in the application,</p>\n</li>\n<li><p>applying any other business rule defined by the client application.</p>\n</li>\n</ul>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li>At least one parameter must be provided in the request.</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<p>Parameters Name, Phone and Email supports <strong>partial match search</strong> (substring search).<br />For example, if <code>Email = \"info\"</code> is provided, the results will include records like <em>\"<a href=\"mailto:info@company.com\">info@company.com</a>\"</em>, <em>\"<a href=\"mailto:sales.info@domain.rs\">sales.info@domain.rs</a>\"</em>, or <em>\"<a href=\"mailto:support@infotech.rs\">support@infotech.rs</a>\"</em>.</p>\n<ul>\n<li><p><strong>ID</strong> <em>(number)</em> – filter by customer ID</p>\n</li>\n<li><p><strong>Name</strong> <em>(text, max length: 100)</em> – filter by partial match in customer name</p>\n</li>\n<li><p><strong>VATNumber</strong> <em>(text, max length: 20)</em> – filter by partial match in VAT number</p>\n</li>\n<li><p><strong>Phone</strong> <em>(text, max length: 50)</em> – filter by partial match in phone number</p>\n</li>\n<li><p><strong>Email</strong> <em>(text, max length: 100)</em> – filter by partial match in email address</p>\n</li>\n<li><p><strong>RegNumber</strong> (text, max length: 20) - filter by registration number</p>\n</li>\n</ul>\n<p><strong>Note:</strong></p>\n<p>All string-based parameters must contain a minimum of 5 characters. This limitation does not apply to the ID parameter, since it is an Integer.</p>\n","urlObject":{"path":["Customers","CheckCustomer"],"query":[{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"CustomerID","value":"number"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Name","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"VatNumber","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Phone","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"Email","value":"text"}],"variable":[]}},"response":[{"id":"f6eb890c-79c7-4d58-927e-9df848dd1799","name":"CheckCustomer","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"{{baseUrl}}Customers/CheckCustomer?Name=Softkom&VatNumber=103592993","host":["{{baseUrl}}Customers"],"path":["CheckCustomer"],"query":[{"key":"CustomerID","value":"4","description":"Optional","disabled":true},{"key":"Name","value":"Softkom","description":"Optional"},{"key":"VatNumber","value":"103592993","description":"Optional"},{"key":"Phone","value":"063","description":"Optional","disabled":true},{"key":"Email","value":"gmail","description":"Optional","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ID\": 1150,\r\n            \"Code\": 122223,\r\n            \"TypeAsText\": \"Domestic legal entity\",\r\n            \"Name\": \"Softkom doo\",\r\n            \"Address\": \"TAKOVSKA 20\",\r\n            \"City\": \"BEOGRAD (PALILULA)\",\r\n            \"PostalCode\": \"11060\",\r\n            \"VATNumber\": \"103592993\",\r\n            \"Note\": \"17587528\",\r\n            \"ContactName\": \"SAK\",\r\n            \"Phone1\": \"\",\r\n            \"Phone2\": \"\",\r\n            \"Phone3\": \"\",\r\n            \"Email\": \"\",\r\n            \"TypeAsInt\": 0,\r\n            \"RegistrationNumber\": \"17587528\",\r\n            \"Country\": \"Srbija\",\r\n            \"JBKJS\": \"\",\r\n            \"DefaultDiscount\": 0.00,\r\n            \"DaysUntilDueDate\": 0,\r\n            \"CustomerAccountManagerID\": 15,\r\n            \"IsActive\":true,\r\n            \"BusinessUnits\": []\r\n        },\r\n        {\r\n            \"ID\": 1301,\r\n            \"Code\": 1234568005,\r\n            \"TypeAsText\": \"Domestic legal entity\",\r\n            \"Name\": \"Dejan TEST SOFTKOM\",\r\n            \"Address\": \"\",\r\n            \"City\": \"\",\r\n            \"PostalCode\": \"\",\r\n            \"VATNumber\": \"103592993\",\r\n            \"Note\": \"\",\r\n            \"ContactName\": \"\",\r\n            \"Phone1\": \"\",\r\n            \"Phone2\": \"\",\r\n            \"Phone3\": \"\",\r\n            \"Email\": \"\",\r\n            \"TypeAsInt\": 0,\r\n            \"RegistrationNumber\": \"\",\r\n            \"Country\": \"\",\r\n            \"JBKJS\": \"\",\r\n            \"DefaultDiscount\": 0.00,\r\n            \"DaysUntilDueDate\": 0,\r\n            \"CustomerAccountManagerID\": 0,\r\n            \"BusinessUnits\": []\r\n        }\r\n    ]\r\n}"}],"_postman_id":"62b2f509-b5ad-4bac-80c0-97c2c7fa639d"},{"name":"GetCustomerBalance","id":"e137b6a9-0310-4e6a-afef-74c29e72dbf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database>","type":"text"}],"url":"/Customers/GetCustomerBalance?DueDate=date","description":"<p>Returns a customers balance based on the specified parameters. Data is retrieved from the database specified in the Database header.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li><code>DueDate</code> - Indicates the date on which the customer’s due balance is calculated. Must be a valid date in format <code>YYYY-MM-DD</code></li>\n</ul>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><code>CustomerID</code> - number<br />  (can be obtained from request <em>GetCustomers or CheckCustomer</em>)</li>\n</ul>\n","urlObject":{"path":["Customers","GetCustomerBalance"],"query":[{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"DueDate","value":"date"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"CustomerID","value":"number"}],"variable":[]}},"response":[{"id":"914144b7-1210-410f-b95b-fae8f030f8a3","name":"GetCustomerBalance","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"{{baseUrl}}Customers/GetCustomerBalance?DueDate=2025-01-01","host":["{{baseUrl}}Customers"],"path":["GetCustomerBalance"],"query":[{"key":"DueDate","value":"2025-01-01","description":"YYYY-MM-DD"},{"key":"CustomerID","value":"number","description":"Optional","type":"text","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"CustomerID\": 4,\r\n            \"CustomerName\": \"Tehnohemija ad\",\r\n            \"CustomerAccountManager\": \"Sarajevska 65\",\r\n            \"CustomerAccountManagerID\": 534,\r\n            \"BilledAmount\": 22671932600503.16,\r\n            \"PaidAmount\": 225801576.02,\r\n            \"CreditedRefundedAmount\": 670756.58,\r\n            \"TotalPaidAndCreditedAmount\": 226472332.6,\r\n            \"CustomerAccountBalance\": 22671706128170.56,\r\n            \"CustomerAccountBalanceDueOnDate\": 93138490.14\r\n        },\r\n        {\r\n            \"CustomerID\": 5,\r\n            \"CustomerName\": \"Royal add\",\r\n            \"CustomerAccountManager\": \"Dusan\",\r\n            \"CustomerAccountManagerID\": 271,\r\n            \"BilledAmount\": 104968878.63,\r\n            \"PaidAmount\": 5740071.41,\r\n            \"CreditedRefundedAmount\": 2935681.82,\r\n            \"TotalPaidAndCreditedAmount\": 8675753.23,\r\n            \"CustomerAccountBalance\": 96293125.4,\r\n            \"CustomerAccountBalanceDueOnDate\": 46569931\r\n        },\r\n        {\r\n            \"CustomerID\": 6,\r\n            \"CustomerName\": \"TIM Izolirka\",\r\n            \"CustomerAccountManager\": \"\",\r\n            \"CustomerAccountManagerID\": 0,\r\n            \"BilledAmount\": 24237884.24,\r\n            \"PaidAmount\": 8050386,\r\n            \"CreditedRefundedAmount\": 172273.68,\r\n            \"TotalPaidAndCreditedAmount\": 8222659.68,\r\n            \"CustomerAccountBalance\": 16015224.56,\r\n            \"CustomerAccountBalanceDueOnDate\": 10794035.92\r\n        }\r\n    ]\r\n}"}],"_postman_id":"e137b6a9-0310-4e6a-afef-74c29e72dbf9"}],"id":"9b625d08-6019-48a3-ab97-93baf5bbfa8a","_postman_id":"9b625d08-6019-48a3-ab97-93baf5bbfa8a","description":""},{"name":"Outbound documents","item":[{"name":"AddDocument","id":"76ad1d66-ade5-4b29-97ee-4bd39fa64330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Database","value":"<your database name>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"CustomerID\": 0,\r\n  \"CustomerBusinessUnitID\": 0,\r\n  \"BusinessUnitID\": 0,\r\n  \"IssueDate\": \"2025-11-27\",\r\n  \"DueDate\": \"2025-11-27\",\r\n  \"DeliveryDate\": \"2025-11-27\",\r\n  \"Note\": \"string\",\r\n  \"DocumentType\": \"RN\",\r\n  \"Items\": [\r\n    {\r\n      \"ProductID\": 0,\r\n      \"ProductCode\": \"string\",\r\n      \"Quantity\": 10.00,\r\n      \"Price\": 1000000.00,\r\n      \"PriceType\": 0,\r\n      \"Discount\": 0.00,\r\n      \"Description\": \"string\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/OutboundDocuments/AddDocument","description":"<p>Adds a new document to the database based on the provided JSON. Data will be added to the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> No</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Body:</strong></p>\n<ul>\n<li>JSON</li>\n</ul>\n<h4 id=\"json-notes\"><strong>JSON notes:</strong></h4>\n<p>A sample JSON request is provided in the example section.</p>\n<p><strong>Required fields:</strong></p>\n<ul>\n<li><p><code>CustomerID</code> (see <em>Required registry data</em> section and <em>Recommendations</em> section)</p>\n</li>\n<li><p><code>BusinessUnitID</code>(see <em>Required registry data</em> section and <em>Recommendations</em> section)</p>\n</li>\n<li><p><code>IssueDate</code></p>\n</li>\n<li><p><code>DueDate</code></p>\n</li>\n<li><p><code>DeliveryDate</code></p>\n</li>\n<li><p><code>DocumentType</code> (see <em>Document types</em> section)</p>\n</li>\n<li><p><code>Items</code><em>(for each item in</em> <code>Items</code> <em>list:)</em></p>\n<ul>\n<li><p><code>ProductID</code> or <code>ProductCode</code> (see <em>Required registry data</em> section and <em>Recommendations</em> section)</p>\n</li>\n<li><p><code>Quantity</code></p>\n</li>\n<li><p><code>Price</code> (see <em>Price and Price Type</em> section)</p>\n</li>\n<li><p><code>PriceType</code> (see <em>Price and Price Type</em> section)</p>\n</li>\n<li><p><code>Discount</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<hr />\n<p><strong>Maximum field lengths:</strong></p>\n<ul>\n<li><p><code>Note</code> – 4000 characters</p>\n</li>\n<li><p><code>Description</code><em>(inside</em> <code>Items</code><em>)</em> – 4000 characters</p>\n</li>\n</ul>\n<hr />\n<p><strong>Numeric ranges:</strong></p>\n<ul>\n<li><p><code>Quantity</code>(inside <code>Items</code>)– from -10.000.000 to 10.000.000, excluding zero.</p>\n</li>\n<li><p><code>Price</code>(inside <code>Items</code>)– from 0 to 100.000.000</p>\n</li>\n<li><p><code>Discount</code>(inside <code>Items</code>)– from 0 to 99.99</p>\n</li>\n</ul>\n<hr />\n<p><strong>Allowed values:</strong></p>\n<ul>\n<li><p><code>DocumentType</code> – one of the following values: <code>RN</code>, <code>AV</code>, <code>OT</code>, <code>O2</code>, <code>RZ</code>, <code>RV</code></p>\n</li>\n<li><p><code>PriceType</code>(inside <code>Items</code>) – one of the following values: <code>0</code> or <code>1</code></p>\n</li>\n</ul>\n<hr />\n<p><strong>List constraints:</strong></p>\n<ul>\n<li><code>Items</code> – must contain at least one element (<code>List cannot be empty</code>).</li>\n</ul>\n<hr />\n<p><strong>Required registry data:</strong></p>\n<p>For the request to be executed successfully, the following data must be provided:</p>\n<ol>\n<li><p><code>BussinesUnitID</code>- must exist in the Bussines units registry. If the specified <code>BussinesUnitID</code> does not exist in the registry, the request will return an error. This value can be obtained through the <em>GetBusinessUnits</em> request.</p>\n</li>\n<li><p><code>CustomerID</code> - must exist in the Customer registry. If the specified <code>CustomerID</code> does not exist in the registry, the request will return an error. If you are using an existing customer, this value can be obtained through the <em>CheckCustomer</em> or <em>GetCustomers</em> request (see response notes in <em>CheckCustomer</em> request). Note that you can also add a new customer using the <em>AddCustomer</em> request; in that case, the CustomerID will be returned by the request.</p>\n</li>\n<li><p><code>ProductID</code> or <code>ProductCode</code> - at least one of these two values must be provided. If both values are provided, <code>ProductID</code> will be used for product identification. The specified product must exist in the Products registry. If the product does not exist in the registry, the request will return an error. These values can be obtained through the <em>GetProducts</em> request.</p>\n</li>\n</ol>\n<p><strong>Recommendations:</strong></p>\n<p>To ensure faster server response, more efficient operation and to avoid errors, we recommend the following:</p>\n<p><code>BusinessUnitID</code><br />Since this value rarely changes, it is recommended to store the <code>BusinessUnitID</code> locally and retrieve it from local storage instead of requesting it repeatedly from the server.</p>\n<p><code>CustomerID</code><br />- Can be obtained through the <em>CheckCustomer</em> request.<br />- If the customer does not exist in the customer registry, it can be added using the <em>AddCustomer</em> request. In that case, the <em>AddCustomer</em> request will return the <code>CustomerID</code>.<br />- The customer registry, which contains the <code>CustomerID</code>, can be obtained through the <em>GetCustomers</em> request and stored locally. Note that <em>GetCustomers</em> is a heavy operation, and frequent calls should be avoided (see the Limitations section).</p>\n<p><code>ProductID</code> or <code>ProductCode</code><br />These product identifiers can be found in the Product registry. The Product registry can be obtained using the <em>GetProducts</em> request. The Product registry should be stored locally. The <em>GetProducts</em> request is a heavy operation, so frequent calls should be avoided (see the Limitations section). We recommend implementing a periodic Product registry refresh mechanism (e.g., daily, hourly, or whenever product data changes).</p>\n<p><strong>Optional registry data:</strong><br />The following data is optional; however, if provided, it must comply with the defined standards:</p>\n<p><code>CustomerBusinessUnitID</code> – if submitted, must exist in the customer business units registry and must be associated with the customer for which the document is being created (<code>CustomerID</code> field). If the submitted <code>CustomerBusinessUnitID</code> is not associated with the customer specified in the <code>CustomerID</code> field, the request will return an error. This value can be obtained through the <em>CheckCustomer</em> or <em>GetCustomers</em> request (see the response notes in the <em>CheckCustomer</em> request).</p>\n<p><strong>Document types:</strong></p>\n<p>This request can be used for adding different types of documents. The document type must be specified in the <code>DocumentType</code> field and can have one of the following values:</p>\n<ul>\n<li><p><code>RN</code> for Invoice with despatch advice (srb. račun-otpremnica)</p>\n</li>\n<li><p><code>AV</code> for Invoice (srb. račun)</p>\n</li>\n<li><p><code>OT</code> for Despatch advice (srb. otpremnica)</p>\n</li>\n<li><p><code>O2</code> for Pro forma despatch advice (srb. otpremnica PF)</p>\n</li>\n<li><p><code>RZ</code> for Reservation (srb. rezervacija)</p>\n</li>\n<li><p><code>RV</code> for Reversal (srb. revers)</p>\n</li>\n</ul>\n<p><strong>Situations in which product discount is not allowed:</strong></p>\n<p>If the request contains a product for which discount is not allowed in the Products registry, and the discount value in request is greater than zero, an error will be returned. The product registry can be obtained using the <em>GetProducts</em> request, and information about whether a discount is allowed can be found in the <code>DisallowDiscount</code> field.</p>\n<p>For example:</p>\n<ol>\n<li><p>Product X in the Product registry (<em>GetProducts</em> request) has field <code>DisallowDiscount</code> = true.</p>\n</li>\n<li><p>In the <em>AddDocument</em> request, product X is submitted with a field <code>Discount</code> &gt; 0.</p>\n</li>\n</ol>\n<p>In this case, an error will be returned.</p>\n<p><strong>Rounding rules:</strong></p>\n<p>To ensure consistent and predictable financial calculations next fields will be rounded:</p>\n<ol>\n<li><p><code>Quantity</code> – rounded to 3 decimal places</p>\n</li>\n<li><p><code>Price</code> – rounded to 2 decimal places</p>\n</li>\n<li><p><code>Discount</code> – rounded to 2 decimal places</p>\n</li>\n</ol>\n<p>These fields are rounded using <code>MidpointRounding.AwayFromZero</code>, meaning that values ending in <code>.5</code> are always rounded away from zero (1.5 → 2, 2.5 → 3, –1.5 → –2).</p>\n<p><strong>Tax exemptions:</strong></p>\n<p>In the following situation:</p>\n<ol>\n<li><p>The document being created is of type <code>AV</code> (Invoice, srb. račun) or <code>RN</code> (Invoice with despatch advice, srb. račun-otpremnica)</p>\n</li>\n<li><p>The issuer of the document is <strong>in the VAT system</strong></p>\n</li>\n<li><p>The VAT rate for the submitted product in the product registry is <strong>0%</strong></p>\n</li>\n</ol>\n<p>a VAT exemption reason must be specified in the product registry. In all other situations, the VAT exemption reason does not need to be specified in product registry. The product registry can be obtained using the <em>GetProducts</em> request, and information about tax exemptions is available in the following fields: <code>TaxCategorySEF</code>, <code>TaxExemptionCode</code>, <code>TaxExemptionText</code>.</p>\n<p><strong>Price and Price Type:</strong></p>\n<p>The <code>Price</code> field may contain either the product price with VAT or without VAT.<br />The type of price submitted in the <code>Price</code> field must be specified in the <code>PriceType</code> field:</p>\n<ol>\n<li><p>If the <code>Price</code> field contains the product price <em>with VAT</em>, the <code>PriceType</code> field must be set to 0.</p>\n</li>\n<li><p>If the <code>Price</code> field contains the product price <em>without VAT</em>, the <code>PriceType</code> field must be set to 1.</p>\n</li>\n</ol>\n<p>This field is essential for the correct calculation of document values. If it is set incorrectly, the calculated values in the document will be incorrect.</p>\n","urlObject":{"path":["OutboundDocuments","AddDocument"],"query":[],"variable":[]}},"response":[{"id":"332b931a-fd1f-4adb-a28f-0f7832d8af9f","name":"AddDocument","originalRequest":{"method":"POST","header":[{"key":"Database","value":"Sors2014","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"CustomerID\": 5,\r\n  \"CustomerBusinessUnitID\": 0,\r\n  \"BusinessUnitID\": 2,\r\n  \"IssueDate\": \"2025-11-05\",\r\n  \"DueDate\": \"2025-11-20\",\r\n  \"DeliveryDate\": \"2025-11-05\",\r\n  \"Note\": \"Prodaja robe kupcu na osnovu ponude br. 12\",\r\n  \"DocumentType\": \"RN\",\r\n  \"Items\": [\r\n    {\r\n      \"ProductID\": 6,\r\n      \"Quantity\": 2.00,\r\n      \"Price\": 120.00,\r\n      \"PriceType\": 0,\r\n      \"Discount\": 10.00,\r\n      \"Description\": \"Artikal A - opis\"\r\n    },\r\n    {\r\n      \"ProductID\": 5,\r\n      \"Quantity\": 1.00,\r\n      \"Price\": 250.00,\r\n      \"PriceType\": 0,\r\n      \"Discount\": 5.00,\r\n      \"Description\": \"Artikal B - opis\"\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}OutboundDocuments/AddDocument"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": {\r\n        \"DocumentID\": 28619,\r\n        \"DocumentType\": \"RN\",\r\n        \"CustomerID\": 5,\r\n        \"CustomerBusinessUnitID\": 0,\r\n        \"BusinessUnitID\": 2,\r\n        \"CustomerAccountManagerID\": 271,\r\n        \"BankAccountNumberID\": 38,\r\n        \"DocumentNumber\": \"975\",\r\n        \"IssueDate\": \"2025-11-05T00:00:00\",\r\n        \"DueDate\": \"2025-11-20T00:00:00\",\r\n        \"DeliveryDate\": \"2025-11-05T00:00:00\",\r\n        \"Note\": \"Prodaja robe kupcu broj 123\",\r\n        \"AmountWithoutVAT\": 395.91,\r\n        \"VATAmount\": 57.59,\r\n        \"AmountWithVAT\": 453.5,\r\n        \"Discount\": {\r\n            \"AmountWithoutVATBeforeItemDiscount\": 427.27,\r\n            \"ItemDiscountAmount\": 31.36,\r\n            \"AmountWithoutVATAfterItemDiscount\": 395.91,\r\n            \"DocumentDiscountPercent\": 0,\r\n            \"DocumentDiscountAmount\": 0\r\n        },\r\n        \"VATBreakdown\": {\r\n            \"StandardRate\": {\r\n                \"AmountWithoutVAT\": \"180.0000\",\r\n                \"VATAmount\": \"36.0000\"\r\n            },\r\n            \"ReducedRate\": {\r\n                \"AmountWithoutVAT\": \"215.9100\",\r\n                \"VATAmount\": \"21.5900\"\r\n            }\r\n        },\r\n        \"BreakdownByItemType\": {\r\n            \"AmountWithoutVATGoods\": 395.91,\r\n            \"AmountWithoutVATServices\": 0\r\n        },\r\n        \"ElectronicInvoiceData\": {\r\n            \"IsCustomerRegisteredOnSEF\": true,\r\n            \"VATPointDateCode\": \"35\",\r\n            \"IsEInvoiceSentToCRF\": false,\r\n            \"References\": {\r\n                \"BT10BuyerReference\": \"\",\r\n                \"BT11ProjectReference\": \"\",\r\n                \"BT12ContractDocumentReference\": \"\",\r\n                \"BT13OrderReference\": \"\",\r\n                \"BT14SalesOrderID\": \"\",\r\n                \"BT15ReceiptDocumentReference\": \"\",\r\n                \"BT16DespatchDocumentReference\": \"\",\r\n                \"BT17OriginatorDocumentReference\": \"\",\r\n                \"BT18AdditionalDocumentReference\": \"\",\r\n                \"BT19AccountingCost\": \"\",\r\n                \"BT20PaymentTerms\": \"\"\r\n            },\r\n            \"GLNIdentification\": {\r\n                \"BT29SellerPartyIdentification\": \"GLN Prodavac\",\r\n                \"BG5SellerAccountingSupplierParty\": \"\",\r\n                \"BT46BuyerPartyIdentification\": \"\",\r\n                \"BG8BuyerAccountingSupplierParty\": \"GLN Kupac\"\r\n            },\r\n            \"DeliveryLocation\": {\r\n                \"BT70PartyName\": \"\",\r\n                \"BT71DeliveryLocation\": \"\",\r\n                \"BT75StreetName\": \"\",\r\n                \"BT77CityName\": \"\",\r\n                \"BT78PostalZone\": \"\",\r\n                \"BT80CountryCode\": \"\"\r\n            }\r\n        },\r\n        \"RetailFiscalizationData\": {\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 0,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 453.5,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            },\r\n            \"AdvancePaymentDateTime\": null,\r\n            \"CustomerIdentifier\": \"\",\r\n            \"OperatorCode\": \"\",\r\n            \"PFRNumber\": null,\r\n            \"PFRReferenceDocumentNumber\": \"\",\r\n            \"PFRReferenceDocumentDate\": null,\r\n            \"CustomerData\": \"\",\r\n            \"AdvancePaidAmount\": 0,\r\n            \"AdvanceTax\": 0\r\n        },\r\n        \"Items\": [\r\n            {\r\n                \"ProductID\": 45,\r\n                \"IsService\": false,\r\n                \"Description\": \"Artikal A - opis\",\r\n                \"Quantity\": 2,\r\n                \"PriceWithoutVATBeforeDiscount\": 100,\r\n                \"AmountWithoutVATBeforeDiscount\": 200,\r\n                \"DiscountPercent\": 10,\r\n                \"DiscountAmount\": 20,\r\n                \"PriceWithoutVAT\": 90,\r\n                \"AmountWithoutVAT\": 180,\r\n                \"VATRate\": 20,\r\n                \"VATAmount\": 36,\r\n                \"PriceWithVAT\": 108,\r\n                \"PriceWithVATBeforeDiscount\": 120,\r\n                \"AmountWithVAT\": 216,\r\n                \"ElectronicInvoiceData\": {\r\n                    \"TaxCategory\": \"S\",\r\n                    \"VATExemptionReasonCode\": \"\",\r\n                    \"VATExemptionReasonText\": \"\"\r\n                }\r\n            },\r\n            {\r\n                \"ProductID\": 5,\r\n                \"IsService\": false,\r\n                \"Description\": \"Artikal B - opis\",\r\n                \"Quantity\": 1,\r\n                \"PriceWithoutVATBeforeDiscount\": 227.27,\r\n                \"AmountWithoutVATBeforeDiscount\": 227.27,\r\n                \"DiscountPercent\": 5,\r\n                \"DiscountAmount\": 11.36,\r\n                \"PriceWithoutVAT\": 215.91,\r\n                \"AmountWithoutVAT\": 215.91,\r\n                \"VATRate\": 10,\r\n                \"VATAmount\": 21.59,\r\n                \"PriceWithVAT\": 237.5,\r\n                \"PriceWithVATBeforeDiscount\": 250,\r\n                \"AmountWithVAT\": 237.5,\r\n                \"ElectronicInvoiceData\": {\r\n                    \"TaxCategory\": \"S\",\r\n                    \"VATExemptionReasonCode\": \"\",\r\n                    \"VATExemptionReasonText\": \"\"\r\n                }\r\n            }\r\n        ]\r\n    }\r\n}"}],"_postman_id":"76ad1d66-ade5-4b29-97ee-4bd39fa64330"}],"id":"4c1f523d-c780-46c1-871e-21ca5c2fadb2","_postman_id":"4c1f523d-c780-46c1-871e-21ca5c2fadb2","description":""},{"name":"Inventory","item":[{"name":"Inventory for specified business unit","id":"acd76d09-a0c2-4064-9cf4-35f3614e94f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Inventory/inventorySpecifiedBU?BusinessUnitID=number&PriceType=number or text&Date=<date YYYY:MM:DD>&QuantityInStock=number or text","description":"<p>Returns the inventory list for the specified date and business unit. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li><p><strong>BusinessUnitID</strong> <em>(number)</em> – ID of the business unit (can be obtained from request <em>GetBusinessUnits</em>).</p>\n</li>\n<li><p><strong>Date</strong> <em>(date)</em> – Inventory date - represents the date used to view or calculate the available inventory for that day. (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n<li><p><strong>PriceType</strong> <em>(text or number)</em> – price type can be number or text:</p>\n<ul>\n<li><p>As a number:</p>\n<ul>\n<li><p><code>0</code> = Purchase price</p>\n</li>\n<li><p><code>2</code> = Sales price without VAT</p>\n</li>\n<li><p><code>3</code> = Sales price with VAT</p>\n</li>\n</ul>\n</li>\n<li><p>As text: <code>\"Purchase\"</code>, <code>\"SalesWithoutVAT\"</code>, <code>\"SalesWithVAT\"</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>Code</strong> <em>(text)</em> – filter by product code<br />  (can be obtained from request <em>GetProducts</em>)</p>\n</li>\n<li><p><strong>ProductGroupID</strong> <em>(number)</em> – filter by first product group<br />  (can be obtained from request <em>GetProductGroups</em>)</p>\n</li>\n<li><p><strong>ProductGroup2ID</strong> <em>(number)</em> – filter by second product group<br />  (can be obtained from request <em>GetProductGroups</em>)</p>\n</li>\n<li><p><strong>QuantityInStock</strong> <em>(number or text)</em> – filter used to search products based on stock quantity.<br />  Possible values:</p>\n<ul>\n<li><p><code>0</code> – <strong>All</strong> (no filter, return all products)</p>\n</li>\n<li><p><code>1</code> – <strong>GreaterThanZero</strong> (only products with stock quantity greater than zero)</p>\n</li>\n<li><p><code>2</code> – <strong>NotEqualToZero</strong> (products with stock quantity not equal to zero)</p>\n</li>\n<li><p><code>3</code> – <strong>LessThanZero</strong> (products with negative stock quantity)</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["Inventory","inventorySpecifiedBU"],"query":[{"key":"BusinessUnitID","value":"number"},{"description":{"content":"<p>0 = Purchase\n2 = SalesWithoutVAT\n3 = SalesWithVAT</p>\n","type":"text/plain"},"key":"PriceType","value":"number or text"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductCode","value":"text"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductGroupID","value":"number"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductGroup2ID","value":"number"},{"key":"Date","value":"<date YYYY:MM:DD>"},{"description":{"content":"<p>0 = All\n1 = GreaterThanZero\n2 = NotEqualToZero\n3 = LessThanZero</p>\n","type":"text/plain"},"key":"QuantityInStock","value":"number or text"}],"variable":[]}},"response":[{"id":"d5e2a7bf-df29-44f7-8491-f735b40a866a","name":"Search without optional parameters","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/inventory/inventorySpecifiedBU?BusinessUnitID=2&PriceType=2&Date=2025-09-18","host":[""],"path":["inventory","inventorySpecifiedBU"],"query":[{"key":"BusinessUnitID","value":"2"},{"key":"PriceType","value":"2","description":"0 = Nabavna\n2 = ProdajnaBezPDV\n3 = ProdajnaSaPDV"},{"key":"ProductCode","value":"","description":"Opcionalno","type":"text","disabled":true},{"key":"ProductGroupID","value":"3","description":"Opcionalno","type":"text","disabled":true},{"key":"ProductGroup2ID","value":"16","description":"Opcionalno","type":"text","disabled":true},{"key":"Date","value":"2025-09-18"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 5,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 283,\r\n            \"ProductGroup2ID\": 9,\r\n            \"Group\": \"14 test\",\r\n            \"Barcode\": \"555xx\",\r\n            \"Code\": \"1011\",\r\n            \"Name\": \"Čokolada milka 100g\",\r\n            \"QuantityInStock\": 116839.2577,\r\n            \"QuantityReserved\": 1026,\r\n            \"QuantityAvailable\": 115813.2577,\r\n            \"Price\": 112.23,\r\n            \"StockValue\": 13112869.8917\r\n        },\r\n        {\r\n            \"ProductID\": 6,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"666\",\r\n            \"Code\": \"1012\",\r\n            \"Name\": \"Čokolada Milka 300g\",\r\n            \"QuantityInStock\": 3131.67,\r\n            \"QuantityReserved\": 6757,\r\n            \"QuantityAvailable\": -3625.33,\r\n            \"Price\": 112.23,\r\n            \"StockValue\": 351467.3241\r\n        },\r\n        {\r\n            \"ProductID\": 7,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 17,\r\n            \"ProductGroup2ID\": 9,\r\n            \"Group\": \"1w test\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"5001\",\r\n            \"Name\": \"Politika\",\r\n            \"QuantityInStock\": -3381.264,\r\n            \"QuantityReserved\": 60,\r\n            \"QuantityAvailable\": -3441.264,\r\n            \"Price\": 1487.39,\r\n            \"StockValue\": -5029258.261\r\n        },\r\n        {\r\n            \"ProductID\": 8,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 17,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"1w Admini 6\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"5002\",\r\n            \"Name\": \"Blic\",\r\n            \"QuantityInStock\": -495.039,\r\n            \"QuantityReserved\": 221.36,\r\n            \"QuantityAvailable\": -716.399,\r\n            \"Price\": 1487.39,\r\n            \"StockValue\": -736316.0582\r\n        },\r\n        {\r\n            \"ProductID\": 9,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"123\",\r\n            \"Name\": \"komision 1\",\r\n            \"QuantityInStock\": -620.6,\r\n            \"QuantityReserved\": 1,\r\n            \"QuantityAvailable\": -621.6,\r\n            \"Price\": 1487.39,\r\n            \"StockValue\": -923074.234\r\n        }\r\n    ]\r\n}"},{"id":"4c98f301-69eb-4762-9911-23d7bed8a116","name":"Search by code","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/inventory/inventorySpecifiedBU?PriceType=2&ProductCode=1011&Date=2025-09-18&BusinessUnitID=2","host":[""],"path":["inventory","inventorySpecifiedBU"],"query":[{"key":"PriceType","value":"2","description":"0 = Nabavna\n2 = ProdajnaBezPDV\n3 = ProdajnaSaPDV"},{"key":"ProductCode","value":"1011","description":"Opcionalno"},{"key":"ProductGroupID","value":"3","description":"Opcionalno","type":"text","disabled":true},{"key":"ProductGroup2ID","value":"16","description":"Opcionalno","type":"text","disabled":true},{"key":"Date","value":"2025-09-18"},{"key":"BusinessUnitID","value":"2"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 5,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 283,\r\n            \"ProductGroup2ID\": 9,\r\n            \"Group\": \"14 test\",\r\n            \"Barcode\": \"555xx\",\r\n            \"Code\": \"1011\",\r\n            \"Name\": \"Čokolada milka 100g\",\r\n            \"QuantityInStock\": 116839.2577,\r\n            \"QuantityReserved\": 1026.0000,\r\n            \"QuantityAvailable\": 115813.2577,\r\n            \"Price\": 112.2300,\r\n            \"StockValue\": 13112869.8917\r\n        }\r\n    ]\r\n}"},{"id":"f3cd84cd-239d-4793-8159-4697f2f40f60","name":"Search by product group","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/inventory/inventorySpecifiedBU?PriceType=2&ProductGroupID=3&ProductGroup2ID=16&Date=2025-09-18&BusinessUnitID=2","host":[""],"path":["inventory","inventorySpecifiedBU"],"query":[{"key":"PriceType","value":"2","description":"0 = Nabavna\n2 = ProdajnaBezPDV\n3 = ProdajnaSaPDV"},{"key":"ProductCode","value":"","description":"Opcionalno","type":"text","disabled":true},{"key":"ProductGroupID","value":"3","description":"Opcionalno"},{"key":"ProductGroup2ID","value":"16","description":"Opcionalno"},{"key":"Date","value":"2025-09-18"},{"key":"BusinessUnitID","value":"2"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 6,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"666\",\r\n            \"Code\": \"1012\",\r\n            \"Name\": \"Čokolada Milka 300g\",\r\n            \"QuantityInStock\": 3131.67,\r\n            \"QuantityReserved\": 6757,\r\n            \"QuantityAvailable\": -3625.33,\r\n            \"Price\": 112.23,\r\n            \"StockValue\": 351467.3241\r\n        },\r\n        {\r\n            \"ProductID\": 9,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"123\",\r\n            \"Name\": \"komision 1\",\r\n            \"QuantityInStock\": -620.6,\r\n            \"QuantityReserved\": 1,\r\n            \"QuantityAvailable\": -621.6,\r\n            \"Price\": 1487.39,\r\n            \"StockValue\": -923074.234\r\n        },\r\n        {\r\n            \"ProductID\": 26,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"11111\",\r\n            \"Code\": \"90010\",\r\n            \"Name\": \"21\",\r\n            \"QuantityInStock\": -56,\r\n            \"QuantityReserved\": 0,\r\n            \"QuantityAvailable\": -56,\r\n            \"Price\": 2775,\r\n            \"StockValue\": -155400\r\n        },\r\n        {\r\n            \"ProductID\": 31,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"8600939303016\",\r\n            \"Code\": \"90015\",\r\n            \"Name\": \"novine\",\r\n            \"QuantityInStock\": 97,\r\n            \"QuantityReserved\": 0,\r\n            \"QuantityAvailable\": 97,\r\n            \"Price\": 575.02,\r\n            \"StockValue\": 55776.94\r\n        },\r\n        {\r\n            \"ProductID\": 32,\r\n            \"BusinessUnitID\": 2,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"87776661\",\r\n            \"Code\": \"90016\",\r\n            \"Name\": \"1111\",\r\n            \"QuantityInStock\": 66,\r\n            \"QuantityReserved\": 0,\r\n            \"QuantityAvailable\": 66,\r\n            \"Price\": 10527.1,\r\n            \"StockValue\": 694788.6\r\n        }\r\n    ]\r\n}"}],"_postman_id":"acd76d09-a0c2-4064-9cf4-35f3614e94f5"},{"name":"Inventory for all business units","id":"f27ccd0a-fc4f-45e3-a7ec-f142650db877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/inventory/inventoryAllBU?PriceType=number or text&Date=<date YYYY:MM:DD>&BusinessUnitID=number&QuantityInStock=number or text","description":"<p>Returns the cumulative inventory list for all business units on the specified date. Data is retrieved from the database specified in the <code>Database</code> header.</p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li><p><strong>BusinessUnitID</strong> <em>(number)</em> –specifies the business unit ID used as the source for prices.<br />  (ID can be obtained from request <em>GetBusinessUnits</em>)</p>\n</li>\n<li><p><strong>Date</strong> <em>(date)</em> – inventory date - represents the date used to view or calculate the available inventory for that day (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n<li><p><strong>PriceType</strong> <em>(text or number)</em> – price type can be number or text:</p>\n<ul>\n<li><p>As a number:</p>\n<ul>\n<li><p><code>0</code> = Purchase price</p>\n</li>\n<li><p><code>2</code> = Sales price without VAT</p>\n</li>\n<li><p><code>3</code> = Sales price with VAT</p>\n</li>\n</ul>\n</li>\n<li><p>As text: <code>\"Purchase\"</code>, <code>\"SalesWithoutVAT\"</code>, <code>\"SalesWithVAT\"</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>Code</strong> <em>(text)</em> – filter by product code<br />  (can be obtained from request <em>GetProducts</em>)</p>\n</li>\n<li><p><strong>ProductGroupID</strong> <em>(number)</em> – filter by first product group<br />  (can be obtained from request <em>GetProductGroups</em>)</p>\n</li>\n<li><p><strong>ProductGroup2ID</strong> <em>(number)</em> – filter by second product group<br />  (can be obtained from request <em>GetProductGroups</em>)</p>\n</li>\n<li><p><strong>QuantityInStock</strong> <em>(number or text)</em> – filter used to search products based on stock quantity.<br />  Possible values:</p>\n<ul>\n<li><p><code>0</code> – <strong>All</strong> (no filter, return all products)</p>\n</li>\n<li><p><code>1</code> – <strong>GreaterThanZero</strong> (only products with stock quantity greater than zero)</p>\n</li>\n<li><p><code>2</code> – <strong>NotEqualToZero</strong> (products with stock quantity not equal to zero)</p>\n</li>\n<li><p><code>3</code> – <strong>LessThanZero</strong> (products with negative stock quantity)</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["inventory","inventoryAllBU"],"query":[{"description":{"content":"<p>0 = Purchase\n2 = SalesWithoutVAT\n3 = SalesWithVAT</p>\n","type":"text/plain"},"key":"PriceType","value":"number or text"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductCode","value":"text"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductGroupID","value":"number"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductGroup2ID","value":"number"},{"key":"Date","value":"<date YYYY:MM:DD>"},{"key":"BusinessUnitID","value":"number"},{"description":{"content":"<p>0 = All\n1 = GreaterThanZero\n2 = NotEqualToZero\n3 = LessThanZero</p>\n","type":"text/plain"},"key":"QuantityInStock","value":"number or text"}],"variable":[]}},"response":[{"id":"b8b2e2d2-4a68-4d66-b5e1-07163efc91e5","name":"Search without parameter","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/inventory/inventoryAllBU?PriceType=3&Date=2025-09-18&BusinessUnitID=2","host":[""],"path":["inventory","inventoryAllBU"],"query":[{"key":"PriceType","value":"3","description":"0 = Purchase\n2 = SalesWithoutVAT\n3 = SalesWithVAT"},{"key":"ProductCode","value":"string","description":"Opcional","type":"text","disabled":true},{"key":"ProductGroupID","value":"int","description":"Opcional","type":"text","disabled":true},{"key":"ProductGroup2ID","value":"int","description":"Opcional","type":"text","disabled":true},{"key":"Date","value":"2025-09-18"},{"key":"BusinessUnitID","value":"2"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 5,\r\n            \"BusinessUnitID\": 0,\r\n            \"ProductGroupID\": 283,\r\n            \"ProductGroup2ID\": 9,\r\n            \"Group\": \"14 test\",\r\n            \"Barcode\": \"555xx\",\r\n            \"Code\": \"1011\",\r\n            \"Name\": \"Čokolada milka 100g\",\r\n            \"QuantityInStock\": -1218221.2693,\r\n            \"QuantityReserved\": 1173,\r\n            \"QuantityAvailable\": -1219394.2693,\r\n            \"Price\": 123.45,\r\n            \"StockValue\": -150389415.6951\r\n        },\r\n        {\r\n            \"ProductID\": 6,\r\n            \"BusinessUnitID\": 0,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"666\",\r\n            \"Code\": \"1012\",\r\n            \"Name\": \"Čokolada Milka 300g\",\r\n            \"QuantityInStock\": 2213.19,\r\n            \"QuantityReserved\": 6771,\r\n            \"QuantityAvailable\": -4557.81,\r\n            \"Price\": 123.45,\r\n            \"StockValue\": 273218.3055\r\n        },\r\n        {\r\n            \"ProductID\": 7,\r\n            \"BusinessUnitID\": 0,\r\n            \"ProductGroupID\": 17,\r\n            \"ProductGroup2ID\": 9,\r\n            \"Group\": \"1w test\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"5001\",\r\n            \"Name\": \"Politika\",\r\n            \"QuantityInStock\": -10542.11,\r\n            \"QuantityReserved\": 128,\r\n            \"QuantityAvailable\": -10670.11,\r\n            \"Price\": 1770,\r\n            \"StockValue\": -18659534.7\r\n        },\r\n        {\r\n            \"ProductID\": 8,\r\n            \"BusinessUnitID\": 0,\r\n            \"ProductGroupID\": 17,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"1w Admini 6\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"5002\",\r\n            \"Name\": \"Blic\",\r\n            \"QuantityInStock\": -42.871,\r\n            \"QuantityReserved\": 223.36,\r\n            \"QuantityAvailable\": -266.231,\r\n            \"Price\": 1770,\r\n            \"StockValue\": -75881.67\r\n        },\r\n        {\r\n            \"ProductID\": 9,\r\n            \"BusinessUnitID\": 0,\r\n            \"ProductGroupID\": 3,\r\n            \"ProductGroup2ID\": 16,\r\n            \"Group\": \"Roba Admini 6\",\r\n            \"Barcode\": \"\",\r\n            \"Code\": \"123\",\r\n            \"Name\": \"komision 1\",\r\n            \"QuantityInStock\": -1713.6,\r\n            \"QuantityReserved\": 1,\r\n            \"QuantityAvailable\": -1714.6,\r\n            \"Price\": 1770,\r\n            \"StockValue\": -3033072\r\n        }\r\n    ]\r\n}"}],"_postman_id":"f27ccd0a-fc4f-45e3-a7ec-f142650db877"},{"name":"GetProductVariants","id":"5aae3a19-a897-4319-b802-187c8aa32d10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"DataBase","value":"<your database>","type":"text"}],"url":"/Inventory/GetProductVariants?Date=date","description":"<p>Returns the cumulative inventory list by product variants on the specified date. For detailed information, please refer to the documentation at: <a href=\"https://www.softkom.rs/baza-znanja/rad-sa-rasterima-i-serijskim-brojevima.html\">https://www.softkom.rs/baza-znanja/rad-sa-rasterima-i-serijskim-brojevima.html</a></p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Required:</strong></p>\n<ul>\n<li><strong>Date</strong> <em>(date)</em> – inventory date - represents the date used to view or calculate the available inventory for that day (format: <code>YYYY-MM-DD</code>).</li>\n</ul>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>ProductID</strong> <em>(number)</em> – filter by product ID.<br />  (can be obtained from request <em>GetProducts</em>)</p>\n</li>\n<li><p><strong>BusinessUnitID</strong> <em>(number)</em> – filter by business unit ID.<br />  (can be obtained from request <em>GetBusinessUnits</em>)</p>\n</li>\n</ul>\n","urlObject":{"path":["Inventory","GetProductVariants"],"query":[{"description":{"content":"","type":"text/plain"},"key":"Date","value":"date"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"BusinessUnitID","value":"number"},{"disabled":true,"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"ProductID","value":"number"}],"variable":[]}},"response":[{"id":"a0564d13-21aa-4cc5-959a-6b82f5f0355a","name":"GetProductVariants","originalRequest":{"method":"GET","header":[{"key":"DataBase","value":"Sors2014","type":"text"}],"url":{"raw":"/Inventory/GetProductVariants?Date=2026-03-23","path":["Inventory","GetProductVariants"],"query":[{"key":"Date","value":"2026-03-23","description":"<YYYY-MM-DD>"},{"key":"BusinessUnitID","value":null,"type":"text","disabled":true},{"key":"ProductID","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"ProductID\": 5,\r\n            \"Code\": \"1011\",\r\n            \"Variants\": [\r\n                {\r\n                    \"Variant\": \"2\",\r\n                    \"Quantity\": 0.00\r\n                },\r\n                {\r\n                    \"Variant\": \"A\",\r\n                    \"Quantity\": -1000007.00\r\n                },\r\n                {\r\n                    \"Variant\": \"Artikal je izdat bez oznake\",\r\n                    \"Quantity\": 165.59\r\n                },\r\n                {\r\n                    \"Variant\": \"B\",\r\n                    \"Quantity\": 1.00\r\n                },\r\n                {\r\n                    \"Variant\": \"S\",\r\n                    \"Quantity\": 99999.00\r\n                },\r\n                {\r\n                    \"Variant\": \"XL\",\r\n                    \"Quantity\": -100.00\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"ProductID\": 8,\r\n            \"Code\": \"5002\",\r\n            \"Variants\": [\r\n                {\r\n                    \"Variant\": \"1\",\r\n                    \"Quantity\": -232.00\r\n                },\r\n                {\r\n                    \"Variant\": \"5\",\r\n                    \"Quantity\": -1.00\r\n                },\r\n                {\r\n                    \"Variant\": \"a\",\r\n                    \"Quantity\": -1.00\r\n                },\r\n                {\r\n                    \"Variant\": \"Artikal je izdat bez oznake\",\r\n                    \"Quantity\": 50.36\r\n                },\r\n                {\r\n                    \"Variant\": \"B\",\r\n                    \"Quantity\": 0.00\r\n                },\r\n                {\r\n                    \"Variant\": \"C\",\r\n                    \"Quantity\": 0.00\r\n                },\r\n                {\r\n                    \"Variant\": \"s\",\r\n                    \"Quantity\": -152.36\r\n                },\r\n                {\r\n                    \"Variant\": \"Test\",\r\n                    \"Quantity\": 0.00\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"}],"_postman_id":"5aae3a19-a897-4319-b802-187c8aa32d10"}],"id":"def042aa-291d-477b-af2c-2b42d697c0e0","_postman_id":"def042aa-291d-477b-af2c-2b42d697c0e0","description":""},{"name":"Reports","item":[{"name":"Sales with documents and items","id":"aafc28ca-7a6b-4d9c-97b8-ff23e52e3280","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Reports/GetSalesWithDocumentsAndItems?DateFrom=<date YYYY:MM:DD>&DateTo=<date YYYY:MM:DD>","description":"<p>Provides a report of sales and goods returns grouped by day and business unit, including the corresponding documents and their line items. For detailed information, please refer to the documentation at: <a href=\"https://www.softkom.rs/baza-znanja/promet-robe-i-ostvarena-razlika-u-ceni.html#izvestaj_o_prometu_robe_sa_spiskom_artikala\">https://www.softkom.rs/baza-znanja/promet-robe-i-ostvarena-razlika-u-ceni.html#izvestaj_o_prometu_r…</a>  </p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>DateFrom</strong> <em>(date)</em> – specifies the start date of the period for which the report is generated (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n<li><p><strong>DateTo</strong> <em>(date)</em> – specifies the end date of the period for which the report is generated (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n</ul>\n<p><strong>Notice:</strong></p>\n<ul>\n<li><p>If no dates are provided, the current date is used.</p>\n</li>\n<li><p><strong>DateFrom</strong> and <strong>DateTo</strong> must either both be provided or both be null.</p>\n</li>\n</ul>\n","urlObject":{"path":["Reports","GetSalesWithDocumentsAndItems"],"query":[{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"DateFrom","value":"<date YYYY:MM:DD>"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"DateTo","value":"<date YYYY:MM:DD>"}],"variable":[]}},"response":[{"id":"e3a98de8-3ab9-4dc8-a0d3-dbbaa0f7a505","name":"Sales with documents and items","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Reports/GetSalesWithDocumentsAndItems","path":["Reports","GetSalesWithDocumentsAndItems"],"query":[{"key":"DateFrom","value":"2026-01-01","disabled":true},{"key":"DateTo","value":"2026-03-01","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"Date\": \"2026-03-02\",\r\n            \"AmountWithVAT\": 5188,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 5188,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 0,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            },\r\n            \"Documents\": [\r\n                {\r\n                    \"DocumentID\": 28631,\r\n                    \"DocumentName\": \"Promet - prodaja\",\r\n                    \"Time\": \"10:30:44.7370000\",\r\n                    \"User\": \"administrator\",\r\n                    \"DocumentNumber\": \"10\",\r\n                    \"Quantity\": 1,\r\n                    \"AmountWithVAT\": 400,\r\n                    \"PaymentMethods\": {\r\n                        \"Other\": 0,\r\n                        \"Cash\": 400,\r\n                        \"Card\": 0,\r\n                        \"Check\": 0,\r\n                        \"WireTransfer\": 0,\r\n                        \"Voucher\": 0,\r\n                        \"Instant\": 0,\r\n                        \"Change\": 0\r\n                    },\r\n                    \"Items\": [\r\n                        {\r\n                            \"ProductCode\": \"1\",\r\n                            \"ProductName\": \"1 Test 1\",\r\n                            \"UnitOfMeasure\": \"kom\",\r\n                            \"Quantity\": 1,\r\n                            \"PriceWithVat\": 400,\r\n                            \"AmountWithVAT\": 400\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    \"DocumentID\": 28632,\r\n                    \"DocumentName\": \"Promet - prodaja\",\r\n                    \"Time\": \"10:42:50.4900000\",\r\n                    \"User\": \"q\",\r\n                    \"DocumentNumber\": \"11\",\r\n                    \"Quantity\": 1,\r\n                    \"AmountWithVAT\": 300,\r\n                    \"PaymentMethods\": {\r\n                        \"Other\": 0,\r\n                        \"Cash\": 300,\r\n                        \"Card\": 0,\r\n                        \"Check\": 0,\r\n                        \"WireTransfer\": 0,\r\n                        \"Voucher\": 0,\r\n                        \"Instant\": 0,\r\n                        \"Change\": 0\r\n                    },\r\n                    \"Items\": [\r\n                        {\r\n                            \"ProductCode\": \"1\",\r\n                            \"ProductName\": \"1 Test 1\",\r\n                            \"UnitOfMeasure\": \"kom\",\r\n                            \"Quantity\": 1,\r\n                            \"PriceWithVat\": 300,\r\n                            \"AmountWithVAT\": 300\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"}],"_postman_id":"aafc28ca-7a6b-4d9c-97b8-ff23e52e3280"},{"name":"Sales by date","id":"7d2c2420-ba3d-4eed-ab64-0f169e915c0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Reports/GetSalesByDate?TimeFrom=<text HH:mm>&TimeTo=<text HH:mm>&User=text&DateFrom=<date YYYY:MM:DD>&DateTo=<date YYYY:MM:DD>","description":"<p>Provides a report of sales and goods returns grouped by day and business unit, including the corresponding documents and their line items. For detailed information, please refer to the documentation at: <a href=\"https://www.softkom.rs/baza-znanja/promet-robe-i-ostvarena-razlika-u-ceni.html#izvestaj_o_prometu_robe_po_danima\">https://www.softkom.rs/baza-znanja/promet-robe-i-ostvarena-razlika-u-ceni.html#izvestaj_o_prometu_r…</a></p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>TimeFrom</strong> (text) – specifies the start time of the period for which the report is generated (format: <code>HH:mm</code>)</p>\n</li>\n<li><p><strong>TimeTo</strong> (text) – specifies the end time of the period for which the report is generated (format: <code>HH:mm</code>)</p>\n</li>\n<li><p><strong>User</strong> (text) – specifies the user who created the document (maximum length: 50 characters).</p>\n</li>\n<li><p><strong>DateFrom</strong> <em>(date)</em> – specifies the start date of the period for which the report is generated (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n<li><p><strong>DateTo</strong> <em>(date)</em> – specifies the end date of the period for which the report is generated (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n</ul>\n<p><strong>Notice:</strong></p>\n<ul>\n<li><p><strong>TimeFrom</strong> and <strong>TimeTo</strong> must either both be provided or both be null.</p>\n</li>\n<li><p><strong>DateFrom</strong> and <strong>DateTo</strong> must either both be provided or both be null.</p>\n</li>\n</ul>\n","urlObject":{"path":["Reports","GetSalesByDate"],"query":[{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"TimeFrom","value":"<text HH:mm>"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"TimeTo","value":"<text HH:mm>"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"User","value":"text"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"DateFrom","value":"<date YYYY:MM:DD>"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"DateTo","value":"<date YYYY:MM:DD>"}],"variable":[]}},"response":[{"id":"7d8d1826-c977-44aa-8a1e-4bc9ee57b7f6","name":"Sales by date","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Reports/GetSalesByDate","host":[""],"path":["Reports","GetSalesByDate"],"query":[{"key":"TimeFrom","value":"<text HH:mm>","description":"Optional","disabled":true},{"key":"TimeTo","value":"<text HH:mm>","description":"Optional","disabled":true},{"key":"User","value":"text","description":"Optional","disabled":true},{"key":"DateFrom","value":"<date YYYY:MM:DD>","description":"Optional","disabled":true},{"key":"DateTo","value":"<date YYYY:MM:DD>","description":"Optional","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"BusinessUnitID\": 3,\r\n            \"BusinessUnitName\": \"poslovna jedinica 2\",\r\n            \"Date\": \"2026-02-25\",\r\n            \"AmountWithVAT\": 3567.09,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 916.99,\r\n                \"Cash\": 10,\r\n                \"Card\": 20,\r\n                \"Check\": 30,\r\n                \"WireTransfer\": 2480.1,\r\n                \"Voucher\": 60,\r\n                \"Instant\": 50,\r\n                \"Change\": 0\r\n            }\r\n        },\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"Date\": \"2026-02-25\",\r\n            \"AmountWithVAT\": 1220.05,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 0,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 1220.05,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            }\r\n        },\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"Date\": \"2026-02-26\",\r\n            \"AmountWithVAT\": 1770,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 1770,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 0,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            }\r\n        },\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"Date\": \"2026-02-27\",\r\n            \"AmountWithVAT\": 109896.55,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 66.66,\r\n                \"Cash\": 1358.48,\r\n                \"Card\": 11.11,\r\n                \"Check\": 22.22,\r\n                \"WireTransfer\": 210770.09,\r\n                \"Voucher\": 55.55,\r\n                \"Instant\": 44.44,\r\n                \"Change\": 0\r\n            }\r\n        },\r\n        {\r\n            \"BusinessUnitID\": 3,\r\n            \"BusinessUnitName\": \"poslovna jedinica 2\",\r\n            \"Date\": \"2026-02-27\",\r\n            \"AmountWithVAT\": 0,\r\n            \"PaymentMethods\": {\r\n                \"Other\": -3850.16,\r\n                \"Cash\": 6961.31,\r\n                \"Card\": -200.01,\r\n                \"Check\": -411.12,\r\n                \"WireTransfer\": -622.23,\r\n                \"Voucher\": -1044.45,\r\n                \"Instant\": -833.34,\r\n                \"Change\": 0\r\n            }\r\n        },\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"Date\": \"2026-02-28\",\r\n            \"AmountWithVAT\": 29.12,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 0,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 29.12,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            }\r\n        },\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"Date\": \"2026-03-02\",\r\n            \"AmountWithVAT\": 5188,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 5188,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 0,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            }\r\n        }\r\n    ]\r\n}"}],"_postman_id":"7d2c2420-ba3d-4eed-ab64-0f169e915c0f"},{"name":"Daily cash register report","id":"213632ac-99fb-4cdb-b5f9-dee740b4be5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{ApiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Database","value":"<your database name>","type":"text"}],"url":"/Reports/GetDailyCashRegisterReport?DateFrom=<date YYYY:MM:DD>&DateTo=<date YYYY:MM:DD>","description":"<p>Returns daily cash register report. For detailed information, please refer to the documentation at: <a href=\"https://www.softkom.rs/baza-znanja-kasa/dnevni-izvestaj.html\">https://www.softkom.rs/baza-znanja-kasa/dnevni-izvestaj.html</a></p>\n<p><strong>Heavy operation:</strong> Yes</p>\n<p><strong>Required headers:</strong></p>\n<ul>\n<li><p><code>Authorization: ApiKey</code></p>\n</li>\n<li><p><code>Database: {DatabaseName}</code><br />  (The database name can be obtained from request <em>GetDatabases</em>)</p>\n</li>\n</ul>\n<p><strong>Query parameters:</strong></p>\n<p><strong>Optional:</strong></p>\n<ul>\n<li><p><strong>DateFrom</strong> <em>(date)</em> – specifies the start date of the period for which the report is generated (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n<li><p><strong>DateTo</strong> <em>(date)</em> – specifies the end date of the period for which the report is generated (format: <code>YYYY-MM-DD</code>).</p>\n</li>\n</ul>\n<p><strong>Notice:</strong></p>\n<ul>\n<li><p>If no dates are provided, the current month is used.</p>\n</li>\n<li><p><strong>DateFrom</strong> and <strong>DateTo</strong> must either both be provided or both be null.</p>\n</li>\n</ul>\n","urlObject":{"path":["Reports","GetDailyCashRegisterReport"],"query":[{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"DateFrom","value":"<date YYYY:MM:DD>"},{"description":{"content":"<p>Optional</p>\n","type":"text/plain"},"key":"DateTo","value":"<date YYYY:MM:DD>"}],"variable":[]}},"response":[{"id":"aadcf910-8070-4b2d-adba-30d69c08f69c","name":"Daily cash register report","originalRequest":{"method":"GET","header":[{"key":"Database","value":"Sors2014","type":"text"}],"url":{"raw":"/Reports/GetDailyCashRegisterReport","host":[""],"path":["Reports","GetDailyCashRegisterReport"],"query":[{"key":"DateFrom","value":"<date YYYY:MM:DD>","description":"Optional","disabled":true},{"key":"DateTo","value":"<date YYYY:MM:DD>","description":"Optional","disabled":true}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": [\r\n        {\r\n            \"BusinessUnitID\": 2,\r\n            \"BusinessUnitName\": \"Poslovna jedinica 1\",\r\n            \"DocumentName\": \"Promet-prodaja\",\r\n            \"Date\": \"2026-03-02\",\r\n            \"AmountWithoutVAT\": 5189,\r\n            \"VatBreakDown\": {\r\n                \"StandardRate\": {\r\n                    \"AmountWithoutVAT\": 0,\r\n                    \"VATAmount\": 0\r\n                },\r\n                \"ReducedRate\": {\r\n                    \"AmountWithoutVAT\": 0,\r\n                    \"VATAmount\": 0\r\n                },\r\n                \"ZeroRate\": null\r\n            },\r\n            \"AmountWithVAT\": 5189,\r\n            \"BreakDownByItemType\": {\r\n                \"AmountWithoutVATGoods\": 5189,\r\n                \"AmountWithoutVATServices\": 0\r\n            },\r\n            \"AdvancePayments\": 0,\r\n            \"PaymentMethods\": {\r\n                \"Other\": 0,\r\n                \"Cash\": 5189,\r\n                \"Card\": 0,\r\n                \"Check\": 0,\r\n                \"WireTransfer\": 0,\r\n                \"Voucher\": 0,\r\n                \"Instant\": 0,\r\n                \"Change\": 0\r\n            }\r\n        }\r\n    ]\r\n}"}],"_postman_id":"213632ac-99fb-4cdb-b5f9-dee740b4be5e"}],"id":"585aa424-aee5-444f-9b49-87401850f2a9","_postman_id":"585aa424-aee5-444f-9b49-87401850f2a9","description":""},{"name":"Local error code","item":[],"id":"0d2c6df6-24aa-4369-a9c3-7ede68593626","description":"<p>Code – Desription</p>\n<p>1013 – Parameter <code>Type</code> is required.</p>\n<p>2013 – Parameter <code>Type</code> is not valid. Allowed values are: 1-First product group, 2-Second product group<br />2014 – Request body is not a valid JSON.<br />2017 – The provided parameters are not valid.<br />2100 – Error while validating parameters.</p>\n<p>3002 – Failed to set database status.<br />3100 – Adding customer error.<br />3101 – Adding document error.</p>\n<p>4001 – API key is missing.<br />4002 – Unsupported authorization scheme.<br />4003 – Header <code>Database</code> is missing.<br />4004 – API key and database not found.<br />4005 – API key is not active.<br />4006 – API key has expired.<br />4007 – Database is not active.<br />4029 – Too many requests – the maximum request rate limit has been exceeded.<br />4030 – Too many requests for a heavy operation – the request limit for a heavy operations has been exceeded.<br />4300 – Access forbidden.<br />4301 – Access forbidden - your IP is blacklisted.<br />4302 – Unable to determine IP address.</p>\n<p>5001 – Processing error.</p>\n","_postman_id":"0d2c6df6-24aa-4369-a9c3-7ede68593626"}],"variable":[{"key":"baseURL","value":"","type":"default"}]}