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
  • 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. A SEF API key from the Ministry of Finance (efaktura.mfin.gov.rs)
  2. Your organization's PIB (tax identification number)
  3. A demo API key for testing (available from demoefaktura.mfin.gov.rs)

Setting Up the Connection

Step 1: Open SEF Settings

  1. Navigate to Settings > Organization Settings
  2. Click the eFaktura & eOtpremnica tab

Step 2: Configure Connection

  1. Environment: Select "Demo (Testing)" for initial setup, switch to "Production" when ready
  2. SEF API Key: Enter your API key from the SEF portal
  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 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 4: Save Settings

Click Save to activate the integration.

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

E-Delivery Notes (eOtpremnica)

Viewing Delivery Notes

  1. Navigate to Procurement > E-Delivery Notes
  2. Filter by direction:
    - Inbound — delivery notes from your suppliers

    - Outbound — delivery notes you send to customers

Accepting/Rejecting Inbound Notes

For inbound delivery notes:

  1. Click the ✓ (Accept) or ✗ (Reject) button
  2. The response is sent to SEF automatically

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