Dacă la fiecare comandă deschizi SmartBill sau FGO, copiezi numele clientului, adresa și produsele, apoi apeși pe emite factură, faci de mână o muncă pe care calculatorul o poate face în câteva secunde. La 5 comenzi pe zi pierzi câteva minute bune. La 50, pierzi o oră întreagă pe copiat date dintr-un ecran în altul.
Ambele platforme, SmartBill și FGO, au o zonă de API — practic o ușă prin care alt program le poate spune direct „emite factura asta, cu datele astea”, fără să deschidă nimeni interfața cu mâna. Magazinul online, dacă e pe WooCommerce, Shopify sau altă platformă, poate fi conectat la această ușă printr-un modul care ascultă comenzile noi și trimite automat datele mai departe.
Ce se întâmplă tehnic, pas cu pas
Fluxul e simplu de urmărit chiar dacă nu te pricepi la programare, pentru că fiecare pas are un rezultat vizibil:
- Clientul plasează comanda și o plătește sau alege ramburs, iar magazinul marchează comanda ca finalizată.
- Un modul instalat pe magazin (sau un serviciu extern la care magazinul trimite date) observă comanda nouă.
- Datele comenzii — produse, cantități, preț, date de facturare ale clientului — sunt trimise către API-ul SmartBill sau FGO, în formatul pe care acesta îl cere.
- SmartBill sau FGO generează factura, îi dă un număr din seria ta și returnează linkul către PDF.
- Linkul e trimis clientului pe email, de multe ori chiar automat de către modulul de conectare, fără să mai intri tu în cont.
La un client de-al meu care avea magazin pe WooCommerce, tot acest flux rula printr-un modul făcut pe măsură, care asculta comenzile din WooCommerce și trimitea automat cererea către API-ul SmartBill. Facturile ieșeau cu seria corectă, cu TVA calculat corect pentru fiecare produs, iar omul din spate nu mai deschidea SmartBill decât o dată pe lună, pentru raportări.
Ce trebuie pregătit înainte
Automatizarea nu pornește din nimic. Ai nevoie de câteva lucruri stabilite dinainte, altfel modulul nu are ce trimite sau trimite greșit:
- Cheia de API din contul tău SmartBill sau FGO — se generează din setările contului și e cheia care dă voie unui program extern să emită facturi în numele tău.
- Seria de facturare pe care vrei să o folosească automatizarea, ca să nu se amestece cu facturile emise manual.
- Regulile de TVA pentru produsele tale, mai ales dacă vinzi și în afara României sau ai produse cu cote diferite.
- Un câmp în formularul de comandă unde clientul completează CUI-ul sau CNP-ul, dacă vrei factură pe firmă sau cu date complete.
Unde apar problemele reale
Partea grea nu e trimiterea datelor, ci excepțiile: comanda anulată după ce factura a fost deja emisă, clientul care cere factură pe altă firmă decât cea din comandă, produsul returnat parțial. Pentru fiecare din astea trebuie decis dinainte ce face automatizarea — stornează singură, sau oprește procesul și te anunță pe tine.
Dacă vinzi produse cu cote de TVA diferite în același coș, verifică din prima zi că factura generată automat le calculează separat, nu pune un TVA mediu pe toată comanda. E genul de greșeală care nu se vede până la controlul fiscal.
Ce nu are rost să automatizezi
Dacă ai sub 10 comenzi pe săptămână, nu are sens să bagi bani într-o automatizare complexă — costă mai mult timpul de configurare decât timpul pe care îl economisești în șase luni. Are sens abia când volumul crește suficient cât copiatul manual să-ți mănânce ore, nu minute, din săptămână.
Mâine dimineață, deschide contul de SmartBill sau FGO, caută în setări secțiunea de API și vezi dacă ai deja o cheie generată. De acolo pornește toată discuția cu cine îți face automatizarea.
Întrebări frecvente
Merge automatizarea și dacă am magazin pe Shopify, nu doar WooCommerce?
Da, principiul e același — contează să existe un modul sau un serviciu care ascultă comenzile din Shopify și le trimite către API-ul SmartBill sau FGO. Modulele gata făcute diferă de la o platformă la alta.
Ce se întâmplă dacă serviciul SmartBill pică exact când vine o comandă?
O automatizare bine făcută reîncearcă trimiterea de câteva ori și, dacă tot nu merge, îți trimite ție o notificare ca să emiți factura manual pentru comanda respectivă.
Pot vedea factura generată automat înainte să plece la client?
Da, poți configura automatizarea să genereze factura și să o pună într-o listă de așteptare pentru aprobarea ta, deși asta anulează o parte din avantajul de a nu mai atinge nimic manual.
If you open SmartBill or FGO for every single order, copy the customer's name, address and products, then click issue invoice, you're doing by hand a job your computer can finish in a few seconds. At 5 orders a day that's a few minutes lost. At 50, it's a full hour spent copying data from one screen to another.
Both SmartBill and FGO have an API — basically a door through which another program can tell them directly „issue this invoice, with this data”, without anyone opening the interface by hand. Your online store, whether it's WooCommerce, Shopify or something else, can be connected to that door through a module that listens for new orders and sends the data automatically.
What actually happens, step by step
The flow is easy to follow even if you're not technical, because every step has a visible result:
- The customer places the order and pays, or chooses cash on delivery, and the store marks the order as completed.
- A module installed on the store (or an external service the store sends data to) picks up the new order.
- The order data — products, quantities, price, the customer's billing details — gets sent to the SmartBill or FGO API, in the format it expects.
- SmartBill or FGO generates the invoice, assigns it a number from your series, and returns a link to the PDF.
- The link is sent to the customer by email, often automatically by the same connecting module, without you ever logging in.
For one client who ran a WooCommerce store, this whole flow went through a custom-built module that listened for new WooCommerce orders and automatically called the SmartBill API. Invoices came out with the right series, correct VAT calculated per product, and the person behind the store only opened SmartBill once a month, for reporting.
What needs to be ready beforehand
Automation doesn't start from nothing. You need a few things sorted out first, or the module has nothing correct to send:
- The API key from your SmartBill or FGO account — generated from account settings, it's what lets an external program issue invoices on your behalf.
- The invoice series you want the automation to use, so it doesn't mix with invoices issued manually.
- Your VAT rules, especially if you sell outside Romania or carry products with different VAT rates.
- A field in the order form where the customer enters their tax ID, if you want invoices issued to a company or with full details.
Where the real problems show up
The hard part isn't sending the data, it's the exceptions: an order cancelled after the invoice was already issued, a customer asking for the invoice under a different company than the one on the order, a partial return. For each of these you need to decide in advance what the automation does — cancel the invoice on its own, or stop and notify you.
If you sell products with different VAT rates in the same cart, check from day one that the automatically generated invoice calculates them separately, not an averaged VAT across the whole order. That's the kind of mistake that stays hidden until a tax audit.
What's not worth automating
If you get under 10 orders a week, it doesn't make sense to spend money on a full automation setup — the time spent building it costs more than the time you'd save over six months. It starts making sense once volume grows enough that manual copying eats hours, not minutes, out of your week.
Tomorrow morning, open your SmartBill or FGO account, look in settings for the API section, and check if you already have a key generated. That's where the conversation with whoever builds your automation starts.
Frequently asked
Does this work if my store is on Shopify, not just WooCommerce?
Yes, the principle is the same — you need a module or service that listens for new Shopify orders and sends them to the SmartBill or FGO API. The ready-made modules differ between platforms.
What happens if SmartBill's service is down right when an order comes in?
A well-built automation retries sending the data a few times, and if it still fails, it notifies you so you can issue that one invoice manually.
Can I see the automatically generated invoice before it goes to the customer?
Yes, you can set the automation to generate the invoice and hold it for your approval, though that cancels part of the benefit of not touching anything by hand.


