W System / E-invoicing API for EU mandates, built for SaaS builders and AI apps

E-invoicing API for EU mandates, built for SaaS builders and AI apps

E-invoicing API for developers

Validate, create and test-send EU e-invoices from one API. Free sandbox key, no card needed.

  • EN 16931 and XRechnung rules for UBL, CII and ZUGFeRD/Factur-X (including EXTENDED), with official rule IDs and fix hints
  • Every send is checked first: VAT, Peppol reachability, sanctions. How safe send works
  • Sandbox send with an Ed25519-signed receipt. Deadlines: Belgium since 1 Jan 2026, Poland KSeF for all from 1 Jan 2027, Germany issuing from 1 Jan 2027

No card needed · 500 free units a month

Try it now, no key needed:

curl -s https://api.wsystem.dev/einvoice/sample | curl -s -X POST https://api.wsystem.dev/einvoice/send -H 'Content-Type: application/json' -d "{\"mode\":\"sandbox\",\"invoice\":$(cat)}"

Live Peppol sending is switched on per company after a Peppol mandate and our KYC check; sandbox sends never reach a real buyer.

Short answer: If your app creates invoices for EU businesses, the law is changing under you: Belgium requires Peppol B2B e-invoices since 1 January 2026, Poland's KSeF is mandatory since February/April 2026, every French business must receive e-invoices since 1 September 2026, and German businesses must issue them from 2027. W System gives you one call, POST https://api.wsystem.dev/einvoice/send, that verifies the buyer's VAT number (VIES) and screens sanctions lists, builds an EN 16931 UBL invoice from simple JSON, validates it against the official rules, looks up how the buyer can receive it (Peppol Directory, country mandate, French directory) and returns an Ed25519-signed evidence receipt. In sandbox mode every step is real except transmission, which is simulated and clearly labelled. With mode=live the invoice goes over production Peppol through our certified access point partner, for each company that has accepted the Peppol mandate and passed our KYC check (see Going live). Start with a free sandbox key, see Peppol pricing, or email [email protected] with your countries and monthly volume. No code needed to try it: the free browser validator and sandbox validates your own XRechnung, ZUGFeRD or UBL file and runs a sandbox send in one click.

Your app / agentJSON invoiceREST · MCP · x402W System APIVIES · sanctionsEN 16931 · signed receiptPeppol networkDirectory lookupBIS Billing 3.0BuyerReceives UBL invoicevia its access pointYour app / agentJSON invoiceREST · MCP · x402W System APIVIES · sanctionsEN 16931 · signed receiptPeppol networkDirectory lookupBIS Billing 3.0BuyerReceives UBL invoicevia its access point
Sandbox: every step is real except delivery, which is simulated or sent to a partner Peppol test environment, never to the buyer.

Key facts

Examples

Sandbox send (nothing is transmitted)

curl -s https://api.wsystem.dev/einvoice/sample > invoice.json
curl -X POST https://api.wsystem.dev/einvoice/send \
  -H 'Content-Type: application/json' \
  -d "{\"mode\":\"sandbox\",\"transport\":\"mock\",\"invoice\":$(cat invoice.json)}"

Response (shortened)

{"status": "simulated", "sandbox": true,
 "notice": "SANDBOX: nothing was transmitted ...",
 "steps": [{"step": "verify_buyer_vat"}, {"step": "screen_buyer_sanctions"}, {"step": "create_and_validate"}, {"step": "route_lookup"}, {"step": "transmit", "result": "simulated"}],
 "invoice": {"number": "INV-2026-001", "sha256": "..."},
 "evidence": {"jws": "eyJhbGciOiJFZERTQSIs...", "alg": "EdDSA", "kid": "wsys-ev-2026-10"}}

Can I e-invoice this company?

curl 'https://api.wsystem.dev/einvoice/route?id=BE0403170701'

Sandbox transports

POST /einvoice/send takes a transport field. All three are sandbox only: nothing reaches a real buyer. Real sending is mode=live (see

transportWhat happensWhat you get back
mock
(default)
The whole flow runs (VIES, sanctions screen, EN 16931 create and validate, route lookup), then the transmit step is simulated. Nothing leaves W System. Your invoice.format is kept.status: "simulated", transmission.transmitted: false, a sim- message id, the XML and a signed receipt.
recommandThe validated Peppol BIS 3 UBL is really submitted to the Recommand playground (the sandbox of a certified Peppol access point). It is addressed to W System's own sandbox participant, never to your buyer. Playground sends do not reach the production Peppol network.status: "sandbox_submitted", transmission.transmitted: false, sandbox_transmitted: true, provider.document_id and delivery_status, submitted_sha256 (equals invoice.sha256), all signed into the receipt.
e-invoice-beThe UBL is uploaded to an e-invoice.be sandbox company (test mode) and sent to W System's own sandbox participant, never to your buyer. Test mode sends nothing over Peppol; e-invoice.be emails the UBL to W System's sandbox contact instead.status: "sandbox_submitted", transmission.transmitted: false, sandbox_transmitted: true, provider.document_id and provider.state (e.g. SENT), submitted_sha256, signed into the receipt.

Try it: submit the sample invoice to the Recommand playground

No key needed (uses 1 of your 20 free calls today).

curl -s https://api.wsystem.dev/einvoice/sample > invoice.json
curl -s -X POST https://api.wsystem.dev/einvoice/send \
  -H 'Content-Type: application/json' \
  -d "{\"mode\":\"sandbox\",\"transport\":\"recommand\",\"invoice\":$(cat invoice.json)}"

Real response from the live API on 19 October 2026 (trimmed: XML, full JWS and some fields left out):

{
 "status": "sandbox_submitted",
 "sandbox": true,
 "notice": "SANDBOX: the validated UBL was really submitted to the Recommand sandbox (a Peppol access point's test environment) ... It was addressed to W System's own sandbox company, not to the buyer, and nothing reached the production Peppol network. For a real Peppol send use mode=live (after a Peppol mandate and KYC review).",
 "receipt_id": "ev_6a1c5985118a47c38f174c9e0f9b7851",
 "invoice": {
  "number": "INV-2026-001",
  "format": "peppol-bis3",
  "sha256": "d3f281e46ae4b1bcb20d90807c9384e312a0f0672680ce6bdbaf4fb954236170"
 },
 "transmission": {
  "transport": "recommand",
  "transmitted": false,
  "sandbox_transmitted": true,
  "submitted_sha256": "d3f281e46ae4b1bcb20d90807c9384e312a0f0672680ce6bdbaf4fb954236170",
  "sandbox_recipient": "0208:0999120091",
  "intended_recipient": null,
  "status": "sandbox_delivered",
  "provider": {
   "name": "Recommand",
   "environment": "playground",
   "document_id": "doc_01M58GRTDPQ3VB9Q663BFDSQAG",
   "delivery_status": "delivered"
  }
 },
 "steps": [
  {"step": "verify_buyer_vat", "result": "valid"},
  {"step": "screen_buyer_sanctions", "result": "no_match"},
  {"step": "create_and_validate", "result": "valid", "errors": 0},
  {"step": "route_lookup", "result": "E-mail or Peppol"},
  {"step": "transmit", "result": "sandbox_delivered", "transport": "recommand"}
 ],
 "warnings": [
  "invoice.format 'xrechnung' was switched to 'peppol-bis3': partner Peppol access points accept Peppol BIS Billing 3.0 UBL.",
  ...
 ],
 "xml": "<?xml ... (full Peppol BIS 3 UBL, left out here)",
 "evidence": {"jws": "eyJhbGciOiJFZERTQSIs...", "alg": "EdDSA", "kid": "wsys-ev-2026-10"}
}

Going live: the Peppol mandate flow

To send real Peppol invoices on behalf of your customers, each sending company gives W System a mandate once. You can build that step into your own onboarding today with three API calls; the sandbox works without it. Live transmission runs over production Peppol through our certified access-point partner: after the mandate, W System checks the company, sets up its Peppol sending account and switches live sending on for it. A Peppol plan is needed (Peppol pricing).

  1. Get an API key. From the pricing page. The same key works for every live endpoint today (validate, create, route, VAT, KYB) and for the sandbox send.
  2. Fetch the current terms. GET /einvoice/mandate-terms returns the exact terms text, its version and sha256, and links to the Peppol mandate terms and the data processing agreement.
  3. Show them to your customer. In your onboarding, show that exact text to someone who can bind the company (for example the managing director) with two checkboxes: they accept the terms, and they confirm they are authorised. No wet or qualified signature is needed.
  4. Record the mandate. POST /einvoice/mandates with the company details, the signer, terms_version, terms_sha256, accept: true and authority_confirmed: true. You get HTTP 201, a mdt_ id and an Ed25519-signed receipt. W System stores who accepted which version, when, from which IP address and user agent.
  5. W System checks the company. The VAT number is checked in VIES straight away (vies_status). Before anything goes live we also check the company register and sanctions lists (kyc_status stays pending until then), then set up a Peppol sending account for the company with our certified access-point partner.
  6. Send live. POST /einvoice/send with mode: "live" and the same API key that recorded the mandate. W System creates and validates the invoice, checks that the buyer is on Peppol, and hands it to the access point from the company's own sending account. The response carries the partner's document id and state, and a signed receipt. Live sending is switched on per company once the mandate and KYC review have passed; it was tested end to end with real production Peppol sends between W System's own Peppol IDs (10 Nov 2026). Then GET /einvoice/live/{document_id} shows the delivery state and GET /einvoice/inbox lists invoices the company received on Peppol.

1. Fetch the terms to show

curl -s https://api.wsystem.dev/einvoice/mandate-terms -H "X-API-Key: $WSYSTEM_KEY"
{
 "version": "1",
 "sha256": "f44a72ae5e66b97738353519cdd0e446ea1c119e38978d126e79e51304b5275e",
 "text": "# W System Peppol mandate and live sending terms ...",
 "terms_url": "https://wsystem.dev/legal/peppol-mandate-terms",
 "dpa_url": "https://wsystem.dev/legal/dpa",
 "how_to_accept": "Show this exact text to a person authorised to bind the company, then POST /einvoice/mandates ..."
}

2. Record the acceptance

curl -s -X POST https://api.wsystem.dev/einvoice/mandates \
  -H "X-API-Key: $WSYSTEM_KEY" -H 'Content-Type: application/json' \
  -d '{"company_name": "Muster NV", "company_id": "BE0403170701",
       "peppol_id": "0208:0403170701",
       "company_email": "[email protected]", "company_phone": "+32 2 123 45 67",
       "signer_name": "An Peeters", "signer_role": "Managing Director",
       "terms_version": "1",
       "terms_sha256": "f44a72ae5e66b97738353519cdd0e446ea1c119e38978d126e79e51304b5275e",
       "accept": true, "authority_confirmed": true}'

Response from a test run of the API on 20 October 2026 with example data (trimmed: contact details, IP address, user agent and the full JWS left out):

HTTP 201
{
 "id": "mdt_9762f43bde544a8e96021d2544abd850",
 "company_name": "Muster NV",
 "company_id": "BE0403170701",
 "country": "BE",
 "peppol_id": "0208:0403170701",
 "signer_name": "An Peeters",
 "signer_role": "Managing Director",
 "terms_version": "1",
 "terms_sha256": "f44a72ae5e66b97738353519cdd0e446ea1c119e38978d126e79e51304b5275e",
 "vies_status": "valid",
 "kyc_status": "pending",
 "status": "active",
 "created_at": "2026-10-20T07:06:01Z",
 "receipt": {"jws": "eyJhbGciOiJFZERTQSIs...", "alg": "EdDSA", "verify_with": "GET /einvoice/evidence-key"},
 ...
}

3. Send live

# invoice.json: your invoice JSON (same shape as GET /einvoice/sample),
# with the mandated company as seller (invoice.seller.vat_id)
curl -X POST https://api.wsystem.dev/einvoice/send \
  -H "X-API-Key: $WSYSTEM_KEY" -H 'Content-Type: application/json' \
  -d "{\"mode\":\"live\",\"invoice\":$(cat invoice.json)}"

The live call is the sandbox call with mode set to live and your API key. Every refusal says exactly what is missing, and nothing is sent when any check fails:

HTTPerrorMeaning
501live_not_availableLive sending is paused for all accounts (maintenance only). Use mode=sandbox.
401api_key_requiredNo valid X-API-Key header.
400bad_inputinvoice.seller.vat_id is missing.
403mandate_requiredNo active mandate for the seller's VAT number under this API key.
403terms_update_requiredThe mandate was accepted under older terms; record it again with the current terms.
403peppol_plan_requiredThe API key is not on a Peppol plan (Peppol pricing).
403company_limitMore mandated companies than the plan covers.
403kyc_pendingThe mandate is recorded and W System's company check is not finished yet.
403sending_account_pendingThe check is approved and the company's Peppol sending account is still being set up.
403live_not_enabled_for_accountThe sending account is ready; W System switches live sending on after a final check and emails you.
422recipient_not_on_peppolThe buyer is not registered on Peppol, so there is nobody to deliver to. Send that invoice another way.
503recipient_lookup_failedThe Peppol lookup (SML/SMP) for the buyer failed, so we can't tell whether it is on Peppol. Nothing was sent or charged; retry after the Retry-After time (60 s).

A successful live send returns status live_sent or live_transit, sandbox: false, the partner's provider.document_id and the mandate_id. Only those states count as transmitted invoices on your own usage (GET /einvoice/usage, with your API key; it never returns anyone else's counts). The signed receipt records the hand-off to the access point, not the buyer's receipt.

4. Delivery state and received invoices

Pricing

ChannelPrice
Free tier20 calls/day per IP across all endpoints, no key
x402 POST /einvoice/send (sandbox)$0.08 USDC per call (same as create); a send blocked by the preflight is not charged
API key plansStarter EUR 19/month (5,000 units), Pro EUR 49/month (25,000 units); /einvoice/send uses 8 units, or 5 when the preflight blocks it
Live Peppol sendingFrom EUR 19/month + EUR 0.25 per document, lower with volume (wsystem.dev/pricing/peppol)

Questions and answers

Can I send real e-invoices today?

Yes, over Peppol, company by company: once a company has accepted the Peppol mandate and passed our KYC check, mode=live sends its invoices through our certified access point partner. KSeF production and French platform delivery are not live yet (KSeF works in the KSeF TEST environment only); the sandbox runs the whole flow on every plan.

How do I go live on Peppol?

Subscribe to a Peppol plan (wsystem.dev/pricing/peppol), record each sending company's Peppol mandate with POST /einvoice/mandates, and W System runs the KYC check, sets up the company's Peppol sending account and switches live sending on for it. We email you when it is on. Questions: [email protected].

Which countries does live sending cover?

Peppol today (Belgium and the other Peppol countries). Poland KSeF works in the KSeF TEST environment only for now (not production), and France will follow through a partner; this page will say when they are live.

Is this tax advice?

No. It is technical processing against official rule sets and directories.

Do you store invoices?

With the default mock transport, no invoice content is stored: the XML and the signed receipt are returned to you and not kept. With transport=recommand or transport=e-invoice-be, the invoice XML is stored in W System's own sandbox accounts at Recommand or e-invoice.be (e-invoice.be test mode also emails a copy to our mailbox), so use test data only. Usage metering keeps one row per completed create, validate or send call: time, endpoint, mode, transport, status, a transmitted flag, HTTP status and a payer tag (a short hash of your IP address or API key, or the label x402 for x402-paid calls). It holds no XML, invoice numbers, amounts or party details. The free tier also keeps a daily call counter per IP address, and buyer VAT and Peppol lookups use the same result cache as the standalone checks.

XRechnung API for invoicing software (create, KoSIT validation, Peppol send) and check if the buyer is on Peppol before sending.

Related

Facts and competitor details checked 2026-10-17. W System is the maker of this product. Not affiliated with the European Commission. Not legal or tax advice.

Get a free sandbox keyNo card needed