Downloading and Environment Setup The ZIP file containing the drivers is located in the Downloads section. The application is run via the Command Line interface. Before running, be sure to check the configuration to target the desired environment:
- Open the folder where the drivers are located (e.g., “drivers V1.0.0.4”).
- Find and open the MojEracun.Drivers.dll.config and App.config files using Notepad++ or a similar text editor.
- To work in the DEMO environment: inside the endpoint change ‘www’ to ‘demo’.
- To work in PRODUCTION: inside the endpoint change ‘demo’ to ‘www’.
- Run PowerShell/CMD on your computer.
- Within the initial screen, navigate to the folder where the driver is located using the cd command.
Example: cd “C:\Users\ivan.horvat\Documents\ER d.o.o\L2\Programi\MojEracunDrivers\MojEracunDrivers\MojEracunDriveri”
Universal (Mandatory) ParametersEvery call to the driver through the Command Line must contain the following parameters (they are implied in all the methods listed below and must be present):
Downloading eInvoices
- Downloading eInvoices in a specific time period (Receive)
- Method: receive
- Response: invoicearray.xml
- Additional parameters: -container inbox/outbox, -startdate (format: yyyy-MM-ddTHH:mm:ss), -enddate (format: yyyy-MM-ddTHH:mm:ss).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method receive -container inbox -startdate 2026-04-15T16:00:00 -enddate 2026-04-25T12:00:00 -outputdir "putanja"
- Downloading by EID (ReceiveById)
- Method: receivebyid
- Response: invoice.xml
- Additional parameters: -paramid (Electronic ID).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method receivebyid -paramid "EID" -outputdir "putanja"
- Downloading new eInvoices (ReceiveNew)
- Method: receivenew
- Response: invoicearray.xml
- Additional parameters: -container inbox/outbox.
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method receivenew -container inbox -outputdir "putanja"
Fetching Status
- Fetching status in a period (GetStatus)
- Method: getstatus
- Response: data.xml
- Additional parameters: -container inbox/outbox, -startdate, -enddate.
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method getstatus -container outbox -startdate 2026-03-20T12:00:00 -enddate 2026-03-30T16:00:00 -outputdir "putanja"
- Fetching status by ID (GetStatusById)
- Method: getstatusbyid
- Response: data.xml
- Additional parameters: -paramid (Electronic ID).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method getstatusbyid -paramid "EID" -outputdir "putanja"
Fiscalization and eReporting
- Fetching fiscal status (inbound and outbound fiscalization) by EID or time period.
- Methods: fiscalizationinbox / fiscalizationoutbox
- Response: response.xml
- Additional parameters: -paramid, -startdate, -enddate.
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method fiscalizationinbox -paramid "EletronicID" -outputdir "putanja"
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method fiscalizationoutbox -startdate "2026-04-15T16:00:00" -enddate "2026-04-25T12:00:00" -outputdir "putanja"
- Sending eInvoice to eReporting
- Method: fiscalizationereporting
- Response: response.xml
- Additional parameters: -filename (Path to the eInvoice).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method fiscalizationereporting -filename "putanja eRačuna" -outputdir "putanja"
- Sending MarkPaid to Fiscalization
- Method: fiscalizationmarkpaid
- Response: response.xml
- Additional parameters: -paramid, -paiddate (yyyy-MM-ddTHH:mm:ss), -paymentamount, -paymentmethod (T=Transactional, O=Accounting, Z=Other).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method fiscalizationmarkpaid -paramid "EletronicID" -paiddate 2026-04-08T15:00:00 -paymentamount 44.44 -paymentmethod T -outputdir "putanja"
- Sending Reject to Fiscalization
- Method: fiscalizationreject
- Response: response.xml
- Additional parameters: -paramid, -rejectiondate (yyyy-MM-ddTHH:mm:ss), -rejectionreasontype (N=Discrepancy without tax impact, U=Discrepancy with tax impact, O=Other), -rejectiondescription.
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method fiscalizationreject -paramid "EletronicID" -rejectiondate 2026-02-15T12:00:00 -rejectionreasontype N -rejectiondescription "Razlog odbijanja" -outputdir "putanja"
Other methods
- Fetching entity data (GetSubjekt)
- Method: getsubjekt
- Response: data.xml
- Additional parameters: -query (PIN/OIB of the requested entity).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method getsubjekt -query "OIB traženog subjekta" -outputdir "putanja"
- Marking Import on the eInvoice (NotifyImport)
- Method: notifyimport
- Response: response.xml
- Additional parameters: -paramid (EID).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method notifyimport -paramid "EID" -outputdir "putanja"
- Changing the process status to “Paid” (MarkPaid)Note: This method only changes the process status and is NOT sent to the Tax Administration.
- Method: markpaid
- Response: response.xml
- Additional parameters: -paramid, -paiddate (yyyy-MM-ddTHH:mm:ss).
.\mojeracun.drivers.exe -id 10144 -pass testlozinka123 -oib 99999999927 -softwareid Test-002 -method markpaid -paramid "EID" -paiddate "2026-04-01T12:00:00" -outputdir "putanja"