My place in the WordPress community
- I have had a wordpress.org account since 2006.
- I contributed to WordPress core for versions 7.0 and 7.1.
- I maintain 30 plugins on wordpress.org.
- I organise and speak at WordCamps.
- I have attended every WordCamp Europe from 2017 to 2026.
- Local WordPress meetup: Athens WordPress Meetup
What do Greek B2B e-invoicing rules ask of a Next.js shop?
If a Greek company buys from your Next.js shop or SaaS, the document it receives is increasingly an electronic invoice that has passed through AADE’s systems. The legal base is joint decision A.1128/2025. As EY Greece summarises it in its tax alert of 27 February 2026, the obligation covers sales of goods and provision of services by entities under the Greek Accounting Standards: domestic B2B transactions, sales to non-EU entities outside retail, and public contracts.
The rule also changes what a page may do. EY notes that an invoice issued by hand or through an ERP or accounting program is treated as not issued, except when connectivity or power fails. The allowed routes are a certified provider or the AADE timologio application. A webshop that renders a PDF itself is therefore outside the rule for in-scope sales.

Photo: A.Savin, CC BY-SA 3.0, Wikimedia Commons.
When does the obligation start?
The dates moved twice, so I write them with their decision numbers.
| Group | Start | Source |
|---|---|---|
| First period: gross revenue above 1 million euros | 2 March 2026, postponed from 2 February 2026 | Joint decision A.1044/2026, as summarised by EY |
| Second period: all other entities | 2 November 2026 | Decision A.1197/2026, Government Gazette B 5905/30-09-2026 |
Decision A.1197/2026 replaced an earlier 1 October 2026 date. It also allows a gradual transition from 2 November 2026 to 31 January 2027. During that window an entity may keep the older methods under decision A.1138/2020: issuing through business management software, or issuing by hand or machine and transmitting through the e-books entry form on the AADE website. The condition is a timely declaration of start under A.1112/2025, or a usage declaration for the timologio application, with a start date no later than 2 November 2026. I read the decision through the taxheaven.gr copy of the Government Gazette text.
For anything that depends on the exact date, such as a contract with a Greek customer that quotes it, check the current Government Gazette first. Dates in this area have moved before.
Which issuing route fits a shop or a SaaS?
Decision A.1129/2025 explains how an entity declares its route. A provider declaration follows A.1112/2025. For the AADE application, the entity files the “Declaration of Start of Electronic Document Issuance” in myAADE and selects timologio, within 10 days of starting to use it. The decision also says an entity may use one or more providers, the timologio application, or both.
For a webshop the practical split is this:
- Low volume, manual process: the accountant issues invoices in timologio from order exports. No integration, no code.
- Steady volume: a certified provider receives the order data from the shop, issues the invoice and transmits it. The shop needs an integration and a place to store the result.
- ERP already in use: the ERP receives orders from the shop. That route is a transition option until 31 January 2027, so the plan should say what replaces it.
The choice belongs to you and your accountant. I build to the route they name and keep the integration behind one interface, so a change of provider touches one module.
Where does invoicing belong in the App Router?
Not in page rendering, and not in a way that can fail silently. Three points from the Next.js documentation shape the build.
Do not use after() for the invoice. The after reference calls it best-effort: the callback runs in the same process as the request, is not retried, and stops if the request reaches its maxDuration or the server stops. The background jobs guide gives the rule of thumb: if losing the work would be a bug, use a workflow. A missing invoice is a bug.
Use a Route Handler for the payment webhook. The route handler reference shows POST handlers reading the raw request text for webhooks. The handler verifies the signature, records the order, starts the job and answers quickly.
Write the invoice step so it can run twice. The background jobs guide warns that a step can run more than once, for example when it fails after writing but before its result is saved, and says to write steps so that running them again is safe. For invoices that means one job per order identifier and a lookup before issuing.
A minimal shape, with the provider call left as a function you supply:
// workflows/invoice.ts
import { issueInvoiceOnce } from '@/lib/invoicing' // server-only module
export async function invoiceOrder(orderId: string) {
'use workflow'
await issue(orderId)
}
async function issue(orderId: string) {
'use step'
// looks the order up, returns the stored invoice if one exists,
// otherwise calls the provider once and stores the result
await issueInvoiceOnce(orderId)
}The 'use workflow' and 'use step' directives come from the Workflow SDK that the guide describes. It retries a failed step and resumes after a crash or a deployment. On a plain Node.js server or Docker container the guide points to the Postgres world, whose execution route is unauthenticated by default and must be restricted at the proxy.
How do I keep AADE and provider credentials safe?
The data security guide says environment variables are server-only unless they carry the NEXT_PUBLIC_ prefix, and that only the data access layer should read process.env. I mark the invoicing module with import 'server-only' so that importing it from a client component fails the build.
The same guide says an exported Server Action is reachable by a direct POST request, so every action re-checks who is calling and validates its input. An action that lets a staff member re-issue or cancel an invoice needs that check inside the action, not only on the page that shows the button. The guide also asks for returned data to stay minimal: the client gets a status, not the full provider response.
What do I need from you to start?
- Which route your accountant chose, and whether a provider contract already exists.
- The list of customer types: Greek companies, public bodies, non-EU buyers, private consumers.
- How a Greek VAT number and company name reach the checkout today, and where they are stored.
- Access to the repository, the payment provider’s webhook settings and the hosting account.
- Your own design, or I design the checkout and account screens.
How a project with me runs
I am Mariusz Szatkowski, a solo developer based in Gdynia. I work remotely and in writing, building Next.js applications. Athens is one hour ahead of Gdynia, which leaves a long overlap of working hours, but nothing depends on it: decisions stay in email and shared documents, and I reply by email within 24 hours on working days.
The sequence:
- You send the site or product URL, the goal, the deadline and the current stack.
- I write the scope and assumptions, including which invoice route the build targets, and ask my questions in writing.
- I build on a staging URL with test orders, a repeated webhook and a failed provider call.
- You accept in writing, I deploy, and a maintenance option covers Next.js updates and the dependency on your provider’s API.
At handover you keep the repository and a short runbook that says what to do when an invoice job fails.
Checklist you can use without me
- Confirm with your accountant which period your company belongs to and which route it chose.
- Check that the declaration of start was filed before the date you rely on for the transition.
- List every place the shop produces a document a customer calls an invoice.
- Make sure no invoice is created only inside
after()or only in a client request. - Store the provider’s response for each order, and key the job on the order.
- Keep credentials out of
NEXT_PUBLIC_variables. - Re-read the Government Gazette for new amendments before each release.
For the wider service, see the Next.js developer page.
Questions Greek teams ask
Does my Next.js shop have to talk to myDATA itself?
Not necessarily. The rules name two ways to issue an e-invoice: a certified e-invoicing provider or the AADE timologio application. Your shop can hand the order to one of them. Whether you call a provider API or an ERP is an architecture choice, and the ERP route is a transition option only until 31 January 2027.
When does the e-invoicing obligation start for a smaller Greek business?
Decision A.1197/2026 sets 2 November 2026 for second-period entities, with a gradual transition until 31 January 2027 for those that filed a timely declaration of start. Entities with gross revenue above 1 million euros began on 2 March 2026.
Is it safe to issue the invoice inside a Server Action or after()?
Not for work that must complete. The Next.js documentation calls after() best-effort: it is not retried and stops at the route’s maxDuration or when the server stops. Issuing an invoice belongs in a durable background job.
Can I keep the AADE and provider credentials in NEXT_PUBLIC variables?
No. Next.js exposes every variable with the NEXT_PUBLIC_ prefix to the browser. Credentials stay in server-only modules, and the Next.js data security guide recommends that only the data access layer reads process.env.
Can a customer trigger a duplicate invoice by retrying a payment webhook?
Only if the invoicing step is not idempotent. I key each invoice job on the order identifier, so a retried webhook or a retried step finds the existing job instead of issuing a second document.
Do B2C sales to private customers fall under the same rule?
The sources I use describe the obligation for domestic B2B sales, B2B sales to non-EU countries and public contracts. Retail is excluded from the non-EU part. How your own consumer sales are treated is a question for your accountant, and I build the flow for whichever route they choose.
Send me the invoice flow you have today
If you sell a Next.js product to Greek businesses, write to me through the contact page. Send the site URL, the goal, the deadline, the current stack and the invoice route your accountant chose. My first written estimate is free. Replies come by email, within 24 hours on working days.
Selected projects
Examples of my work.
E-commerce Development: capslock.pl
capslock.pl was a WooCommerce store for computer parts, built in 2013 with product catalogue, AB wholesaler integration, external marketplace exports, payments and performance optimisation.
E-commerce Development: car-mechanic-huntington.co.uk
The website project car-mechanic-huntington.co.uk was created with the aim of professionally presenting the services of a car workshop. The primary goal of t...
E-commerce Development: centrumpoludnie.pl
centrumpoludnie.pl is an information portal for a shopping centre in southern Gdansk, covering shops, promotions, news, and simple administration.
WordPress support & development in Athens
See also in Greece
Need this service: Next.js developer in Athens?
Describe your project by e-mail. I reply within 24 hours.
Describe your projectExplore other WordPress services and knowledge base
Migration to Astro, Next.js, and headless WordPress.
WooCommerce sync with ERP and wholesale systems.
Business process automation around WordPress and company systems.
Library of concrete automation use cases.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Related categories
Supporting articles

Six to sixteen weeks for typical engagements, with a four-phase shape: discovery, scoping, build and cutover, tuning. The variables are catalogue size, integration count, URL preservation, and editorial team readiness, not framework choice.

A definitive 4-year Total Cost of Ownership (TCO) analysis, real-world Core Web Vitals benchmarks, Astro 7 GraphQL APQ architecture, and a 10-point executive decision matrix for choosing between decoupled and traditional WordPress.

The Shopify Plus vs WooCommerce headless decision in 2026 is no longer a binary "platform vs custom" trade-off. Both can run headless, both integrate AI, both ship at the edge. The real axes are control, total cost over five years, and exit strategy. This article walks the matrix with confirmed platform facts.