How does myDATA AADE real-time invoice reporting work in Magento?
myDATA (My Digital Accounting and Tax Application) is the AADE (Ανεξάρτητη Αρχή Δημοσίων Εσόδων, Independent Authority for Public Revenue) platform that requires real-time transmission of every invoice / receipt issued by a Greek business. It’s mandatory for all businesses (B2B + B2C + B2G), enforced since 2021 and ramped up annually.
Two transmission models:
- Type A, direct REST API call from your ERP / e-commerce platform to the AADE myDATA REST endpoint. Each invoice returns a MARK (unique authority reference) + UID and must be printed on the invoice.
- Type B, via a certified Πάροχος (Provider) intermediary (SoftOne, Entersoft, Epsilon Net, Pylon, Megasoft) that handles the AADE handshake for you.
Magento integration: on every sales_invoice save event, an observer builds the myDATA XML payload (header + details + ΦΠΑ breakdown + AFM), POSTs to myDATA, stores the MARK + UID against the invoice, and reprints the PDF with MARK barcode. We integrate either directly (Type A) or via a SoftOne / Entersoft middleware (Type B). Missing MARKs trigger admin alerts.