API V1
API Version 1 - Integrators Manual
Send
Send Electronic Document to recipient.
Send Parameters
Send Example Request
Send Example response
If document is valid, it gets saved, signed and email notification is sent to customer. API returns DocumentId
Example error responses
This error indicates that either Username and/or Password are not correct:
This error indicates that a user doesn't have sufficient privileges to send eInvoice:
This error indicates that there is an error with SoftwareId parameter:
All of this errors should be parsed in order for user to be able to read the error description.
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 - Customer didn't accept invoice, so digital invoicing process is canceled. Customer can no longer download document.
50 Unsuccessful – Customer did not accept (download) invoice in 5 days – from this point usual flow is to resend document
Query Single
Query Single Parameters
Query Single Example
Query Single Example Response
189919 966/1/1 Tvrtka d.o.o. 015185234370 40 1 0966/1/1 2015-09-30T00:00:00 2015-10-01T07:18:14.117 false
Query Inbox
Query Inbox Parameters
Query Inbox Example
Query Inbox Example response
38077 4-01-91 Test Klising 2 01234554321 40 1 4 2014-03-24T00:00:00 2015-08-27T11:30:29.66 false 46938 7-01-91 Test Klising 2 01234554321 40 1 7 2014-03-24T00:00:00 2014-09-23T13:15:01.783 false 35642 13-01-91 Test Klising 2 01234554321 40 1 13 2014-07-14T00:00:00 2015-08-27T11:30:14.297 false
Query Outbox
Query Outbox Parameters
Query Outbox Example
Query Outbox Example response
38077 4-01-91 Test Klising 2 01234554321 40 1 4 2014-03-24T00:00:00 2015-08-27T11:30:29.66 false 46938 7-01-91 Test Klising 2 01234554321 40 1 7 2014-03-24T00:00:00 2014-09-23T13:15:01.783 false 35642 13-01-91 Test Klising 2 01234554321 40 1 13 2014-07-14T00:00:00 2015-08-27T11:30:14.297 false
Receive
Receive method is used for downloading documents. Both sent and incoming, eg. Inbox and Outbox documents.
Receive Document
Receive Parameters
Receive Document Example
Following examples show how to POST a receive request using all possible values for CompanyBu parameter.
Example with no Business Unit:
Example with GLN Code:
Example with Moj-eRačun Subject ID:
Example with the name of the Business Unit:
Receive Document Response Document
Receive Document Respnse contains XML document containing electronic Invoice.
...
Error responses for this method are the same as the error responses for the send method.
NotifyImport
Notify import method is used for sending an information that an invoice is imported into an ERP solution, to the Moj-eRačun service.
NotifyImport
NotifyImport Parameters
NotifyImport Example
MarkPaid
Mark Paid method is used for sending an information that an invoice is paid, to the Moj-eRačun service.
MarkPaid Parameters
MarkPaid Example
MarkPaid Response Example
Resend
Resend method will resend notification email to customer.
Query Single Parameters
Resend Example
Cancel
Cancel method will stop Electronic Document delivery.
After cancel method, customer can no longer download document and no further processing can be implemented.