Preflight and sandbox-send an e-invoice
send_einvoice_sandboxSANDBOX ONLY - never reaches a real buyer. Safe send: first checks the buyer VAT in VIES, whether the buyer can be reached on Peppol, and the buyer name against EU/UN/OFAC/UK sanctions lists, then creates + validates the EN 16931 invoice (same JSON as create_einvoice), and returns one preflight verdict: ok, warn or block, with a plain-English message per check and, for each invoice error, what is wrong, which field and how to fix it. A block (invalid VAT, close sanctions match, invoice errors) stops the send. Otherwise it routes, hands off to the transport and returns an Ed25519-signed evidence receipt (JWS). preflight_only=true: run only the checks and return the verdict, send nothing (use before every send). checks: subset of ["vat","peppol","sanctions"] (default all; validation always runs). transport: "mock" (simulated, default), "recommand" or "e-invoice-be" (the UBL is really submitted to that Peppol access point's sandbox, addressed to W System's own sandbox company). Use it to build and test an integration; real Peppol sending is the REST API POST /einvoice/send with mode=live, after a Peppol mandate and KYC review. autofix=true (only with preflight_only=true): run the checks on a copy with the safe fixes applied and return it in autofix.invoice; review it, then send that corrected invoice. A send never changes the invoice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice": "<invoice>"
},
"name": "send_einvoice_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | Optional subset of buyer checks: any of 'vat', 'peppol', 'sanctions' (default all; invoice validation always runs). | |
| autofix | No | Only with preflight_only=true: run the checks on a copy with safe fixes applied and return it in autofix.invoice. | |
| invoice | Yes | Invoice as simple JSON (same shape as create_einvoice). | |
| transport | No | Sandbox transport: 'mock' (simulated, default), 'recommand' or 'e-invoice-be' (partner sandbox); never reaches a real buyer. | mock |
| preflight_only | No | If true, only check the buyer (VAT, Peppol, sanctions) and the invoice; nothing is sent. |