E-shop
How to solve e-invoices in the e-shop?
Short answer
The e-shop must distinguish which orders require an e-invoice, have the correct company data of the customer, VAT regime, link to payment, credit notes and export to accounting.
B2B
Company data
When ordering, collect data that XML will really need.
Order
Link to the document
The invoice should be traceable by order, payment and customer.
Credit note
Return of goods
The e-shop needs a process for repairs, refunds and linking to the original document.
Export
Accounting
The accountant should receive a package, not just a bunch of files without status.
Conclusion
Not legal advice. Machine-translated answer, not yet manually reviewed. For the exact wording, see the Slovak original.