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.

POST /apis/v2/send
Header: "content-type:application/json; charset:utf-8"
* For json requests

Send Parameters

Send Example Request

Send Example response

Send Example response Xml

        
        <?xml version="1.0" encoding="utf-8" standalone="no" ?>
        <SendDocumentResponse>
        <ElectronicId>384503</ElectronicId>
        <DocumentNr>C102890-1</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <StatusId>20</StatusId>
        <StatusName>Pending</StatusName>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
        <Created>2016-04-18T08:23:08.5879877+02:00</Created>
        <Sent>2016-04-18T08:13:03.177</Sent>
        <Modified>2016-04-18T08:23:09.6840519+02:00</Modified>
        <Delivered>null</Delivered>
        </SendDocumentResponse>
    

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.

POST /apis/v2/send
Header: "content-type:application/json; charset:utf-8"
* For json requests

Send Parameters

Send Example Request

Send Example response

Send Example response Xml

        
        <?xml version="1.0" encoding="utf-8" standalone="no" ?>
        <SendDocumentResponse>
        <ElectronicId>384503</ElectronicId>
        <DocumentNr>C102890-1</DocumentNr>
        <DocumentTypeId>201</DocumentTypeId>
        <DocumentTypeName>Prijemnica</DocumentTypeName>
        <StatusId>20</StatusId>
        <StatusName>Pending</StatusName>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
        <Created>2016-04-18T08:23:08.5879877+02:00</Created>
        <Sent>2016-04-18T08:13:03.177</Sent>
        <Modified>2016-04-18T08:23:09.6840519+02:00</Modified>
        <Delivered>null</Delivered>
        </SendDocumentResponse>
    

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.

POST /apis/v2/send
Header: "content-type:application/json; charset:utf-8"
* For json requests

Send Parameters

Send Example Request

Send Example response

Send Example response Xml

        
        <?xml version="1.0" encoding="utf-8" standalone="no" ?>
        <SendDocumentResponse>
        <ElectronicId>384503</ElectronicId>
        <DocumentNr>C102890-1</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <StatusId>20</StatusId>
        <StatusName>Pending</StatusName>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
        <Created>2016-04-18T08:23:08.5879877+02:00</Created>
        <Sent>2016-04-18T08:13:03.177</Sent>
        <Modified>2016-04-18T08:23:09.6840519+02:00</Modified>
        <Delivered>null</Delivered>
        </SendDocumentResponse>
    

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

10 In preparation - Document is successfully uploaded, but pending validation and sending.
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.

POST /apis/v2/QueryRequestInbox
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.

POST /apis/v2/QueryRequestInbox
Header: "content-type:application/json; charset:utf-8"

Query Inbox Example Response Xml


<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<InboxDocumentHeaders>
        <InboxDocumentHeader>
        <ElectronicId>394162</ElectronicId>
        <DocumentId>1753169928656</DocumentId>
        <DocumentNr>3-1-1</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <RelatedDocumentId></RelatedDocumentId>
        <StatusId>30</StatusId>
        <StatusName>Sent</StatusName>
        <DocumentProcessStatusId>0</DocumentProcessStatusId>
        <DocumentProcessStatusName>Sent</DocumentProcessStatusName>
        <RejectReason></RejectReason>
        <StornoComment></StornoComment>
        <CreatedDate>2025-07-22 09:38:39.913</CreatedDate>
        <UpdatedDate>2025-07-22 09:38:39.913</UpdatedDate>
        <SentDate>2025-07-22 09:38:39.913</SentDate>
        <TransportationStartDate>2025-07-22 09:38:39.913</TransportationStartDate>
        <DeliveryConfirmationDate>2025-07-22 09:38:39.913</DeliveryConfirmationDate>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
    </InboxDocumentHeader>
        <InboxDocumentHeader>
        <ElectronicId>394163</ElectronicId>
        <DocumentId>1753169928657</DocumentId>
        <DocumentNr>3-1-2</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <RelatedDocumentId></RelatedDocumentId>
        <StatusId>30</StatusId>
        <StatusName>Sent</StatusName>
        <DocumentProcessStatusId>0</DocumentProcessStatusId>
        <DocumentProcessStatusName>Sent</DocumentProcessStatusName>
        <RejectReason></RejectReason>
        <StornoComment></StornoComment>
        <CreatedDate>2025-07-22 09:38:39.913</CreatedDate>
        <UpdatedDate>2025-07-22 09:38:39.913</UpdatedDate>
        <SentDate>2025-07-22 09:38:39.913</SentDate>
        <TransportationStartDate>2025-07-22 09:38:39.913</TransportationStartDate>
        <DeliveryConfirmationDate>2025-07-22 09:38:39.913</DeliveryConfirmationDate>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
    </InboxDocumentHeader>
        <InboxDocumentHeader>
        <ElectronicId>394164</ElectronicId>
        <DocumentId>1753169928658</DocumentId>
        <DocumentNr>3-1-3</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <RelatedDocumentId></RelatedDocumentId>
        <StatusId>30</StatusId>
        <StatusName>Sent</StatusName>
        <DocumentProcessStatusId>0</DocumentProcessStatusId>
        <DocumentProcessStatusName>Sent</DocumentProcessStatusName>
        <RejectReason></RejectReason>
        <StornoComment></StornoComment>
        <CreatedDate>2025-07-22 09:38:39.913</CreatedDate>
        <UpdatedDate>2025-07-22 09:38:39.913</UpdatedDate>
        <SentDate>2025-07-22 09:38:39.913</SentDate>
        <TransportationStartDate>2025-07-22 09:38:39.913</TransportationStartDate>
        <DeliveryConfirmationDate>2025-07-22 09:38:39.913</DeliveryConfirmationDate>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
    </InboxDocumentHeader>
</InboxDocumentHeaders>

Query Inbox Example Json

POST /apis/v2/QueryRequestInbox
Header: "content-type:application/json; charset:utf-8"

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.

POST /apis/v2/QueryRequestOutbox
Header: "content-type:application/json; charset:utf-8"

Query Outbox Parameters

Query Outbox Example

POST /apis/v2/QueryRequestOutbox
Header: "content-type:application/json; charset:utf-8"

Query Outbox Example Response XML


<?xml version="1.0" encoding="utf-8" ?>
<OutboxDocumentHeaders>
        <OutboxDocumentHeaders>
        <ElectronicId>394162</ElectronicId>
        <DocumentId>1753169928656</DocumentId>
        <DocumentNr>3-1-1</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <RelatedDocumentId></RelatedDocumentId>
        <StatusId>30</StatusId>
        <StatusName>Sent</StatusName>
        <DocumentProcessStatusId>0</DocumentProcessStatusId>
        <DocumentProcessStatusName>Sent</DocumentProcessStatusName>
        <RejectReason></RejectReason>
        <StornoComment></StornoComment>
        <CreatedDate>2025-07-22 09:38:39.913</CreatedDate>
        <UpdatedDate>2025-07-22 09:38:39.913</UpdatedDate>
        <SentDate>2025-07-22 09:38:39.913</SentDate>
        <TransportationStartDate>2025-07-22 09:38:39.913</TransportationStartDate>
        <DeliveryConfirmationDate>2025-07-22 09:38:39.913</DeliveryConfirmationDate>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
    </OutboxDocumentHeaders>
        <OutboxDocumentHeaders>
        <ElectronicId>394163</ElectronicId>
        <DocumentId>1753169928657</DocumentId>
        <DocumentNr>3-1-2</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <RelatedDocumentId></RelatedDocumentId>
        <StatusId>30</StatusId>
        <StatusName>Sent</StatusName>
        <DocumentProcessStatusId>0</DocumentProcessStatusId>
        <DocumentProcessStatusName>Sent</DocumentProcessStatusName>
        <RejectReason></RejectReason>
        <StornoComment></StornoComment>
        <CreatedDate>2025-07-22 09:38:39.913</CreatedDate>
        <UpdatedDate>2025-07-22 09:38:39.913</UpdatedDate>
        <SentDate>2025-07-22 09:38:39.913</SentDate>
        <TransportationStartDate>2025-07-22 09:38:39.913</TransportationStartDate>
        <DeliveryConfirmationDate>2025-07-22 09:38:39.913</DeliveryConfirmationDate>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
    </OutboxDocumentHeaders>
        <OutboxDocumentHeaders>
        <ElectronicId>394164</ElectronicId>
        <DocumentId>1753169928658</DocumentId>
        <DocumentNr>3-1-3</DocumentNr>
        <DocumentTypeId>200</DocumentTypeId>
        <DocumentTypeName>Otpremnica</DocumentTypeName>
        <RelatedDocumentId></RelatedDocumentId>
        <StatusId>30</StatusId>
        <StatusName>Sent</StatusName>
        <DocumentProcessStatusId>0</DocumentProcessStatusId>
        <DocumentProcessStatusName>Sent</DocumentProcessStatusName>
        <RejectReason></RejectReason>
        <StornoComment></StornoComment>
        <CreatedDate>2025-07-22 09:38:39.913</CreatedDate>
        <UpdatedDate>2025-07-22 09:38:39.913</UpdatedDate>
        <SentDate>2025-07-22 09:38:39.913</SentDate>
        <TransportationStartDate>2025-07-22 09:38:39.913</TransportationStartDate>
        <DeliveryConfirmationDate>2025-07-22 09:38:39.913</DeliveryConfirmationDate>
        <SenderBusinessNumber>110712050</SenderBusinessNumber>
        <SenderBusinessUnit></SenderBusinessUnit>
        <SenderBusinessName>Docloop doo</SenderBusinessName>
    </OutboxDocumentHeaders>
</OutboxDocumentHeaders>

Query Outbox Example Json

POST /apis/v2/QueryRequestOutbox
Header: "content-type:application/json; charset:utf-8"

Example error responses

This error indicates that CompanyId parameter do not exist in the system: