{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"f7e2a0a8-c0b4-49bf-8b09-95b7bb391fe8","name":"DocForward API ","description":"DocForward API is a set of services developers use to integrate DocForward functionality into their products. DocForward API is REST based. Requests and responses are mostly JSON formatted.\n\nIn a nutshell, REST APIs (which are a type of web API) involve requests and responses, not too unlike visiting a web page. You make a request to a resource stored on a server, and the server responds with the requested information. The protocol used to transport the data is HTTP. “REST” stands for representational state transfer.\n\n\nDOCUMENT STATUSES\n-----------------\n\n|status|descriptions\n|--------|---------|\n|SAVED | New document|\n|DOWNLOADED BY RECEIVER | Document downloaded by receiver|\n|DOWNLOADED BY SENDER | Document downloaded by sender|\n|MODIFIED BY RECEIVER | Document modified by receiver|\n|MODIFIED BY SENDER | Document modified by sender|\n|APPROVED BY RECEIVER | Document approved by receiver|\n|APPROVED BY SENDER | Document approved by sender|\n|CANCELED BY RECEIVER | Document canceled by receiver|\n|CANCLED BY SENDER | Document canceled by sender|\n\nDOCUMENT FLOW EXAMPLES\n---------------------\n\n- APPROVED BY RECEIVER\n\n\n|Step | Document status|\n|--------|---------|\n|1. Sender creates new document  | SAVED|\n|2. Receiver downloads new document  | DOWNLOADED BY RECEIVER|\n|3. Sender approves new document  | APPRVOED BY RECEIVER|\n\n- MODIFIED BY RECEIVER\n\nIn this example, sender has 3 options to choose from in step 5. He can either approve, cancel or modify the document. If he cancels or approves the document then the document exchange is stopped. In case he modifies document then receiver can respond with one of the 3 options. This cycles conitiues untill one party cancles or approves the document.\n\n|Step | Document status|\n|--------|---------|\n|1. Sender creates new document  | SAVED|\n|2. Receiver downloads document  | DOWNLOADED BY RECEIVER|\n|3. Receiver modifies document (item not in stock)  | MODIFIED BY RECEIVER|\n|4. Sender downloads document  | DOWNLOADED BY SENDER|\n|5. Sender canceled document  | CANCELED BY SENDER|\n|5. Sender approved document  | APPROVED BY SENDER|\n|*5. Sender modifed document  | MODIFIED BY SENDER|\n|*6. Receiver downloads document  | DOWNLOADED BY RECEIVER|\n|*7. Receiver approves document  | APPROVED BY RECEIVER|\n\n\n\n\nDEVELOPMENT\n-----------\n\n1. Always develop and test your integration on the test platform, available at **http://test.api.docforward.com** - this is the {{url}} found in documentation.\n2. Use the following users for test sending/receiving documents:\n\n|username|password|VAT|\n|--------|--------|---|\n|narocnik1@cent.si|Narocnik1!|SINAR1|\n|dobavitelj1@cent.si|Dobavitelj1!|SIDOB1|\n\n3. Use the test integrator key, used in the header of the requests: TestPublicKey\n\nSTART INTEGRATION\n-----------------\n\nStart integration by calling **ping** method. It is the easiest method that does not require any authentication. After **ping** method is successfully executed, next step is to authenticate user to get token that would be used for all further API calls. Use the **token** method and provide username and password in the header parameters. After the user is authenticated, you will receive token. Store it in locally as you will use it with all other calls. Once you get the token, you can check if you are able to call methods that require authorization token by executing **ping authorized** method. Put the token inside header and also not forget to put ApplicationKey which is 'TestPublicKey' on the development system.\n\nAUTHENTICATION HEADER\n---------------------\nWhen calling methods that require authentication you need to provide header with user authentication token and your integration key (ApplicationPublicKey).\n\nHeader:\n\n\n|Key|Value|\n|---|-----|\n|Accept|application/json|\n|Authorization|Bearer {{token}}|\n|Content-Type|application/json|\n|ApplicationPublicKey|{{applicationPublicKey}}|\n\nInstead of the {{token}} and {{applicationPublicKey}} provide the token received from the **token** method and the ApplicationPublicKey that was sent to you when we registered you as an integrator.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"4611240","team":235372,"collectionId":"f7e2a0a8-c0b4-49bf-8b09-95b7bb391fe8","publishedId":"SWLh6SWx","public":true,"publicUrl":"https://documenter-api.postman.tech/view/4611240/SWLh6SWx","privateUrl":"https://go.postman.co/documentation/4611240-f7e2a0a8-c0b4-49bf-8b09-95b7bb391fe8","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2020-07-01T05:58:19.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/7841c550f63a1fbb823e1161ea96f3ac7f0aab590abefe09b3194d78213912ac","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/SWLh6SWx"}