SEF step by step: eUprava, registering your business and the API key
A guide for anyone who has not used the System of Electronic Invoices (SEF, Sistem elektronskih faktura) before: what you need to log in, how to register your business, where to create the API key and how to enter it in Stavka so invoices go to SEF in one click.
Before you start: do you need SEF?
A flat-rate entrepreneur outside VAT is not required to use SEF, unless they invoice the public sector (a school, municipality, public enterprise…). Once you register, you must use SEF in the current and the next calendar year: you issue e-invoices to all clients who are on SEF, and you receive e-invoices that others send you. In detail: E-invoices (SEF): obligations of a flat-rate entrepreneur.
What you need
- An account on eUprava / the eID portal (eid.gov.rs) with a high level of assurance. Logging in to SEF works in one of two ways:
- Qualified electronic certificate: on the chip of your ID card (issued by the Ministry of Interior, MUP) or from another issuer (Pošta, PKS, Halcom, E-Smart), plus a card reader and the certificate software installed;
- ConsentID: a mobile app instead of a card reader. You install it on your phone, and you get the activation parameters with your ID card at the place that issues them (most often the post office).
- The sole proprietor's registration number (matični broj; it is in APR and on your tax decision).
- Stavka Pro or Biznis plan (or the 30-day Biznis trial): sending to SEF from Stavka is part of those plans.
Only the legal representative registered in APR can register a business on SEF for the first time. For a sole proprietor that is you personally. Your accountant cannot do it for you, but you can add them as a user afterwards.
Steps 1 and 2: log in to SEF and register your business
- Open efaktura.mfin.gov.rs and click Prijavi se (Log in). The portal sends you to eID (eUprava).
- Choose how to log in: qualified electronic certificate (ID card in the reader, then PIN) or ConsentID (confirmation in the app on your phone).
- After your identity is confirmed, on your first login the entity registration opens. For the entity type choose Preduzetnik (sole proprietor) and enter your registration number.
- SEF checks the data in APR and creates your business account. From that day you are a SEF user. Stavka will later see this by itself on the public list of users.
Want your accountant to have access to SEF as well? On SEF: Podešavanja → Korisnici → Dodaj novog korisnika (Settings → Users → Add new user), enter their email, choose a role (e.g. Standardni korisnik, standard user, or view only) and click Pošalji poziv (Send invitation).
Step 3: create and activate the API key
The API key is the "password" Stavka uses to send and receive invoices on behalf of your business. It is created by a user with the administrator role (the legal representative is one).
- On SEF, open Podešavanja (Settings).
- Choose API menadžment (API management; some versions of the portal say API upravljanje).
- If there is no key yet, click Generiši ključ (Generate key).
- Switch API status to Aktivno (Active). Without this, SEF rejects the key even though it has been created.
- Copy the value from the Ključ za autentifikaciju (Authentication key) field, using the copy button next to the field.
Step 4: enter the key in Stavka
On the web:
- The menu with your name (top right) → My companies → click your company.
- In the SEF — e-invoicing system section, paste the key into the SEF API key field.
- Environment: Production (real SEF).
- Click Save and verify. Stavka immediately asks SEF whether the key is valid. When it says Key saved · verified, you are done.
On an Android phone: Account → My companies → your company → the SEF — e-invoicing system section → paste the key, choose Production and tap Save and verify.
The key is stored encrypted, and once saved nobody can read it: not you, not us. The Test connection button checks at any time whether SEF still accepts the key.
While you are there, check that the company has a postal code and a bank account: SEF requires them on every invoice.
Step 5: your first invoice through SEF
- On the Invoices page, in the invoice row: menu ⋮ → Send to SEF.
- Stavka checks the invoice and the client and tells you what is missing. Most often SEF requires the invoice date to be today: click Set today's date (the transaction date stays).
- When it says The invoice is ready for SEF, click Send to SEF. Stavka sets category SS and code PDV-RS-33 for a flat-rate entrepreneur by itself.
After sending, the status refreshes by itself (Sent → Accepted or Rejected), and a notification arrives when the client decides. A sent invoice can no longer be edited or deleted. If it is wrong, use Reverse on SEF and create a new one.
Public sector: in the invoice form click Check client on SEF. Stavka offers the JBKJS (the public funds user number); also enter the contract or purchase order number.
Do not forget: incoming e-invoices
From the moment you register, others (Telekom, EPS, suppliers…) send you invoices through SEF, and you must accept or reject each one within 15 days. Once the key is entered, Stavka pulls them in every hour by itself: Menu → Incoming e-invoices, filter Awaiting decision, then Accept or Reject (with a reason). When the deadline is close, you get an email reminder, and an accepted invoice becomes an expense by itself.
SEF does not track payments: "Accepted" means you agree with the invoice, and you pay it as before, through your bank.
Want to try it first? Demo SEF
The Ministry also runs a test SEF at demoefaktura.mfin.gov.rs. You log in the same way and create a separate API key there, and in Stavka you choose the Demo (test SEF) environment. Invoices from the demo SEF do not reach real clients and have no legal effect. When you finish testing, click Replace key in Stavka and enter the key from the real SEF, with the Production environment.
Common problems
- "SEF did not accept the key": most often API status was not switched to Aktivno (Active), or a key from the demo SEF was entered as Production (or the other way round). Check both, then Save and verify again.
- "The API key is not in the right format": only part of the key was copied, or it was copied with a space. Copy it again using the copy button.
- You do not see API menadžment: you are not logged in as the business's administrator. Log in as the legal representative or ask them for the administrator role.
- You cannot log in to SEF: check that your eID account has a high level of assurance (certificate or ConsentID); logging in to SEF with just a username and password is not enough.
- SEF rejects the invoice: Stavka shows the reason; most often the invoice date is not today or the company is missing a postal code.
Frequently asked questions
Where on SEF do I create the API key?
Podešavanja (Settings) → API menadžment → Generiši ključ (Generate key), then switch API status to Aktivno (Active) and copy the "Ključ za autentifikaciju" (Authentication key).
Can I log in to SEF without a card reader?
Yes, with the ConsentID mobile app, which you activate with the parameters you get with your ID card.
Can my accountant register my business on SEF?
No. The first registration is done by the legal representative registered in APR; for a sole proprietor that is you. You add your accountant as a user afterwards under Podešavanja → Korisnici (Settings → Users).
Does Stavka see my API key?
The key is stored encrypted and used only to communicate with SEF; once saved, nobody can read it.
What if I generate a new key on SEF?
The old one stops working. In Stavka, under My companies, click Replace key and enter the new one.
Sources
The sources are official Serbian pages and regulations, in Serbian.