API V2 - eOtpremnica
API Version 2 eOtrpemnica - Integrators Manual
Send - Otpremnica
Send electronic DespatchAdvice to recipient.
Send action will upload a DespatchAdvice to moj-eracun.rs server, validate it, digitally sign it, timestamp the document, register it on SEF and then send an email notification to the customer.
Send Parameters
Send Example Request
Send Example response
Send Example response Xml
384503 C102890-1 200 Otpremnica 20 Pending 110712050 Docloop doo 2016-04-18T08:23:08.5879877+02:00 2016-04-18T08:13:03.177 2016-04-18T08:23:09.6840519+02:00 null
Error responses
In case of an unsuccessful request to our API the "Error" field contains a description of the issue and may vary depending on where in the processing the error occurred. The response will follow this format:
Send - Prijemnica
Send electronic ReceiptAdvice to recipient.
Send action will upload a ReceiptAdvice to moj-eracun.rs server, validate it, digitally sign it, timestamp the document, register it on SEF and then send an email notification to the customer.
Send Parameters
Send Example Request
Send Example response
Send Example response Xml
384503 C102890-1 201 Prijemnica 20 Pending 110712050 Docloop doo 2016-04-18T08:23:08.5879877+02:00 2016-04-18T08:13:03.177 2016-04-18T08:23:09.6840519+02:00 null
Error responses
In case of an unsuccessful request to our API the "Error" field contains a description of the issue and may vary depending on where in the processing the error occurred. The response will follow this format:
Send - Izmena posiljke
Send electronic ApplicationResponse to recipient.
Send action will upload a ApplicationResponse to moj-eracun.rs server, validate it, digitally sign it, timestamp the document, register it on SEF and then send an email notification to the customer.
Send Parameters
Send Example Request
Send Example response
Send Example response Xml
384503 C102890-1 200 Otpremnica 20 Pending 110712050 Docloop doo 2016-04-18T08:23:08.5879877+02:00 2016-04-18T08:13:03.177 2016-04-18T08:23:09.6840519+02:00 null
Error responses
In case of an unsuccessful request to our API the "Error" field contains a description of the issue and may vary depending on where in the processing the error occurred. The response will follow this format:
Query
Query document status
Status description
20 In validation - Document is successfully uploaded, pending recipient company data validation.
30 Sent - Document is successfully uploaded, digitally signed and time stamped. Notification email is sent to customer.
40 Delivered - Customer accepted and downloaded digital invoice.
45 Canceled - Sender canceled digital invoicing process, as customer didn't accept invoice. Customer can no longer download document.
50 Unsuccessful - The document was not successfully registered in the SEF.
Query Inbox
Query inbox is used to discover new documents addressed to your company or business unit.
Header: "content-type:application/json; charset:utf-8"
* For json requests
Query Inbox Parameters
Query Inbox Example
Query inbox is used to monitor received documents statuses.
Query Inbox Example Response Xml
394162 1753169928656 3-1-1 200 Otpremnica 30 Sent 0 Sent 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 110712050 Docloop doo 394163 1753169928657 3-1-2 200 Otpremnica 30 Sent 0 Sent 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 110712050 Docloop doo 394164 1753169928658 3-1-3 200 Otpremnica 30 Sent 0 Sent 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 110712050 Docloop doo
Query Inbox Example Json
Example error responses
This error indicates that CompanyId parameter do not exist in the system:
Query Outbox
Query outbox is used to discover new statuses of sent documents. For this method, the API returns 10.000 results.
Query Outbox Parameters
Query Outbox Example
Query Outbox Example Response XML
394162 1753169928656 3-1-1 200 Otpremnica 30 Sent 0 Sent 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 110712050 Docloop doo 394163 1753169928657 3-1-2 200 Otpremnica 30 Sent 0 Sent 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 110712050 Docloop doo 394164 1753169928658 3-1-3 200 Otpremnica 30 Sent 0 Sent 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 2025-07-22 09:38:39.913 110712050 Docloop doo
Query Outbox Example Json
Example error responses