DocumentationHow-To GuideseFaktura & eOtpremnica
Compliance & Integration

eFaktura & eOtpremnica

Connect to Serbia's SEF system for e-invoice and e-delivery note management.

Connect Stogly to the Serbian e-Invoice system (SEF — Sistem eFaktura) to automatically receive and manage electronic invoices and delivery notes.

Overview

Stogly integrates with the Serbian government's eFaktura system to:

  • Automatically receive supplier invoices (eFaktura)
  • Accept or reject invoices directly from the portal
  • Send customer invoices to SEF
  • Manage e-delivery notes (eOtpremnica) for goods movement tracking, and receive an inbound note into stock line by line against its purchase order
  • Auto-match received invoices against your purchase orders
  • Auto-create POs when no matching order exists

Prerequisites

Before setting up the integration, you need:

  1. eFaktura API key from the Ministry of Finance portal: https://efaktura.mfin.gov.rs/api-management
  2. eOtpremnica API key from the e-delivery portal: https://adminmodul.mfin.gov.rs/api-keys/eotp
  3. Your organization's PIB (tax identification number)
  4. Demo API keys for testing (available from https://demoefaktura.mfin.gov.rs and https://demoadminmodul.mfin.gov.rs)

Setting Up the Connection

Step 1: Open SEF Settings

  1. Navigate to Settings > Organization Settings
  2. Open the eFaktura & eOtpremnica section in the list on the left (on a phone: the section picker at the top)

Step 2: Configure eFaktura

  1. Environment: Select "Demo (Testing)" for initial setup, switch to "Production" when ready
  2. eFaktura API Key: Enter your eFaktura API key (from https://efaktura.mfin.gov.rs/api-management)
  3. Organization PIB: Enter your company's tax ID
  4. Click Test Connection to verify the API key works

A green success badge confirms the eFaktura connection is active.

Step 2b: Configure eOtpremnica

  1. Environment: Select the same environment as eFaktura (Demo or Production)
  2. eOtpremnica API Key: Enter your eOtpremnica API key (from https://adminmodul.mfin.gov.rs/api-keys/eotp)
  3. Click Test Connection to verify the API key works

A green success badge confirms the eOtpremnica connection is active.

Step 3: Configure Automation

SettingDescription
Auto-poll for new invoicesAutomatically check for new eFaktura invoices periodically
Polling intervalHow often to check (5, 10, 15, or 30 minutes)
Auto-match received invoicesAutomatically match received invoices against your purchase orders
Auto-create PO when no matchCreate a purchase order if no matching PO exists

Step 3b: Configure Webhook Notifications (Optional)

To receive real-time notifications when invoices and delivery notes are processed:

  1. eFaktura Webhook Setup:
    - Go to your SEF eFaktura account at https://efaktura.mfin.gov.rs

    - Navigate to Settings > API endpointi

    - Copy the Stogly webhook URL from Stogly SEF Settings and paste it into the eFaktura portal

    - This allows real-time invoice reception instead of waiting for polling intervals
  1. eOtpremnica Webhook Setup:
    - Go to your SEF eOtpremnica account at https://adminmodul.mfin.gov.rs

    - Navigate to Settings > Kanali komunikacije > Webhook

    - Copy the Stogly webhook URL from Stogly SEF Settings and paste it into the eOtpremnica portal

    - This enables real-time delivery note notifications

Step 3c: Auto-Send Invoices (Optional)

To automatically send customer invoices to eFaktura without manual action:

  1. In SEF Settings, look for the checkbox: "Automatski pošalji E-Fakturu na SEF" (Auto-send eFaktura to SEF)
  2. Enable this setting if you want all new customer invoices to be automatically submitted to the SEF system
  3. Disable it if you prefer to review and manually send invoices

Step 4: Save Settings

Click Save to activate the integration.

Email Notifications

In the Notifications section of SEF Settings you can choose which events trigger an email:

NotificationDefaultDescription
New inbound eFakturaOnA new incoming eFaktura is received
Outbound eFaktura statusOnA sent eFaktura is accepted or rejected
New inbound eOtpremnicaOnA new incoming e-delivery note is received
eOtpremnica statusOffThe status of an e-delivery note changes

Use the Notification email field to send these emails to a specific address. Leave it empty to send notifications to your organization's administrators. Each email includes a deep link to the related invoice or delivery note in the portal.

Receiving eFaktura Invoices

Automatic Polling

When polling is enabled, the system automatically checks for new invoices at your configured interval. New invoices appear in Procurement > Supplier Invoices with an "eFaktura" badge.

Manual Polling

To check for new invoices immediately:

  1. Go to Procurement > Supplier Invoices
  2. Or use the Poll Now button in SEF Settings

Invoice Source Indicators

Invoices in the list show their source:

  • eFaktura (blue badge) — received from SEF
  • PDF (gray badge) — imported from PDF file
  • No badge — created manually

Accepting or Rejecting on SEF

For eFaktura-sourced invoices, you can accept or reject them directly:

  1. Open the invoice Match Details
  2. The SEF status badge shows the current state (Pending, Accepted, Rejected)
  3. Use Approve to accept on SEF
  4. Use Dispute to reject on SEF (with notes)

Sending Customer Invoices to SEF

For outbound invoices (to your B2B customers):

  1. Navigate to your customer invoice
  2. Click Send to eFaktura
  3. The system generates UBL 2.1 XML and submits it to SEF
  4. Track delivery status in the invoice details

Invoices Created Directly on the SEF Portal

If you issue invoices directly on the SEF web portal (instead of from Stogly), Stogly can import them automatically. Enable "Import invoices created on SEF" in Settings > SEF integration (off by default) — imported invoices then appear in Invoices within a few minutes, marked "Imported from SEF", and their accepted/rejected status keeps updating from SEF just like invoices sent from Stogly.

E-Delivery Notes (eOtpremnica)

Viewing Delivery Notes

  1. Navigate to Procurement > E-Delivery Notes
  2. Filter by direction: Inbound (from your suppliers) or Outbound (you send to customers)

Viewing a Delivery Note's Items and Details

  1. Click the note number or the 👁 (View Details) button in the note's row
  2. The details window shows:
    - Header — number, direction, status, delivery date, supplier or customer, and the linked invoice or purchase order when there is one

    - Sender and recipient — name, Tax ID (PIB) and address

    - Transport — shipment method, carrier, vehicle plate, loading/unloading location and dispatch/destination address, when the note carries them

    - Items — name, item code, quantity and unit for every line

Receiving an Inbound Note Line by Line

The details window of a pending inbound note also shows its Purchase order and lets you confirm the note line by line: the accepted goods go into stock on that order, and SEF is told what was accepted and rejected.

  1. Link the purchase order. A note that quotes one of the supplier's open orders is linked by itself (Linked to). Otherwise pick one of the supplier's open orders and click Link; Unlink removes the link. Without an order the note can only be rejected. The supplier must be in your supplier list with the note's PIB
  2. Click Confirm by line
  3. Each line shows Delivered, its Order line (matched by the order line the supplier names, else by product — or pick it yourself) and the Quantity accepted, which starts at the delivered quantity. 0 rejects the line. A line with no order line, or in another unit, can only be rejected unless you pick its order line. For a warehouse, enter the lot and expiry date if needed
  4. Click Confirm, check the summary of accepted and rejected lines, and confirm (if nothing is accepted, the button is Reject the delivery note)

The accepted quantities go into stock on the purchase order (see Purchase Order Management), and the note becomes Accepted, Partially accepted or Rejected; it cannot be changed afterwards. Receipt advice to SEF shows Waiting to be sent, Being sent, Sent or Not sent — an advice not sent is retried automatically, or click Send again.

Managers and admins can also confirm inbound notes on a phone with Stogly Go — see Counts, Waste & Receiving on the Phone.

Accepting/Rejecting a Whole Inbound Note

From the list, click the ✓ (Accept) or ✗ (Reject) button; the response is sent to SEF automatically. Accepting the whole note this way tells SEF every line was accepted, but no goods go into stock — to receive them, confirm the note by line or receive them on the purchase order.

Polling for New Delivery Notes

Click Poll to check for new delivery notes from the SEF system.

How Auto-Matching Works with eFaktura

When an eFaktura invoice is received:

  1. The system identifies the supplier by PIB (tax ID)
  2. Invoice items are matched against your products using supplier price list mappings
  3. If auto-match is enabled, the system automatically searches for matching POs
  4. If no PO exists and auto-create PO is enabled, a PO is created with status "Received"

Troubleshooting

IssueSolution
Connection test failsVerify your API key is correct and the environment (demo/production) matches
Supplier not matchedEnsure the supplier's PIB is set in your supplier database
Products not matchedSet up supplier product name mappings in Supplier Price Lists
Polling not workingCheck that polling is enabled and the interval is set

Tips

  • Start with demo environment — test the integration thoroughly before switching to production
  • Set up supplier PIBs — the system matches suppliers by tax ID, so this must be configured
  • Configure supplier price lists — product matching works best with explicit supplier product name mappings
  • Enable auto-match — saves time by automatically linking invoices to POs

Need help? Contact support at support@stogly.com