French e-reporting files, built and checked against DGFiP v3.2
Send your B2C sales, your invoices with foreign businesses and your service receipts as JSON. Get Flux 10 XML aggregated the way the DGFiP specification requires, for the period your VAT regime sets, with every issue traced back to the rows behind it.
$0.10/100 lines · 10 free calls a day, no signup · REST and MCP
curl https://api.kanagu.dev/v1/frereporting/generate \
-H "Content-Type: application/json" \
-d '{"reportId":"POS-202609-2","createdAt":"2026-09-21T09:15:00","checkedAt":"2026-09-21T10:10:00","platform":{"id":"0001","name":"Example PA"},"declarant":{"siren":"123456789","name":"Exemple SARL","role":"seller","vatRegime":"normal_monthly"},"reportingDate":"2026-09-15","transactions":[{"kind":"b2c","date":"2026-09-15","currency":"EUR","category":"TLB1","taxes":[{"rate":20,"taxableAmount":"32.00","vatAmount":"6.40"}]}]}'const res = await fetch("https://api.kanagu.dev/v1/frereporting/generate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"reportId": "POS-202609-2",
"createdAt": "2026-09-21T09:15:00",
"checkedAt": "2026-09-21T10:10:00",
"platform": {
"id": "0001",
"name": "Example PA"
},
"declarant": {
"siren": "123456789",
"name": "Exemple SARL",
"role": "seller",
"vatRegime": "normal_monthly"
},
"reportingDate": "2026-09-15",
"transactions": [
{
"kind": "b2c",
"date": "2026-09-15",
"currency": "EUR",
"category": "TLB1",
"taxes": [
{
"rate": 20,
"taxableAmount": "32.00",
"vatAmount": "6.40"
}
]
}
]
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "frereporting.generate",
"arguments": {
"reportId": "POS-202609-2",
"createdAt": "2026-09-21T09:15:00",
"checkedAt": "2026-09-21T10:10:00",
"platform": {
"id": "0001",
"name": "Example PA"
},
"declarant": {
"siren": "123456789",
"name": "Exemple SARL",
"role": "seller",
"vatRegime": "normal_monthly"
},
"reportingDate": "2026-09-15",
"transactions": [
{
"kind": "b2c",
"date": "2026-09-15",
"currency": "EUR",
"category": "TLB1",
"taxes": [
{
"rate": 20,
"taxableAmount": "32.00",
"vatAmount": "6.40"
}
]
}
]
}
}
}Why
What it solves
France's e-invoicing reform comes with e-reporting: sales to consumers, sales to and purchases from foreign businesses, and payments received for services go to the tax administration through an approved platform (Plateforme Agréée) as Flux 10 files. Large and mid-sized companies started on 1 September 2026, and small businesses follow on 1 September 2027. The DGFiP specification fixes how rows aggregate by day, category and VAT rate, which period each VAT regime reports, and a long list of field rules on top of the XSD. Kanagu builds the file from your rows and runs those checks before your platform does.
Built for
- Plateformes Agréées (approved e-invoicing platforms) that transmit e-reporting data to the DGFiP for their clients
- Point-of-sale, e-commerce and ERP software that hands B2C and cross-border sales data to a platform
- Accountants and AI agents that prepare a French company's e-reporting each period
Example
What goes in, what comes out
In: Platform ID, declarant SIREN and VAT regime, a date in the period, and transaction or payment rows as JSON, or Flux 10 XML to check. Out: Transactions and payments Flux 10 XML with its period and the source rows of each record, or errors and review items with rule, path and expected value.
{
"reportId": "POS-202609-2",
"createdAt": "2026-09-21T09:15:00",
"checkedAt": "2026-09-21T10:10:00",
"platform": {
"id": "0001",
"name": "Example PA"
},
"declarant": {
"siren": "123456789",
"name": "Exemple SARL",
"role": "seller",
"vatRegime": "normal_monthly"
},
"reportingDate": "2026-09-15",
"transactions": [
{
"kind": "b2c",
"date": "2026-09-15",
"currency": "EUR",
"category": "TLB1",
"taxes": [
{
"rate": 20,
"taxableAmount": "32.00",
"vatAmount": "6.40"
}
]
}
]
}{
"valid": true,
"specification": {
"version": "3.2",
"date": "2026-04-30",
"url": "https://www.impots.gouv.fr/specifications-externes-b2b"
},
"lineCount": 1,
"issues": [
{
"severity": "needs_review",
"rule": "G6.22",
"section": "Annex 7 v1.9, rule G6.22",
"path": "/transactions/Report/ReportDocument[1]/Sender[1]/Id[1]",
"expected": "Active registration for the submitting Plateforme Agréée",
"actual": "registration not checked"
},
{
"severity": "needs_review",
"rule": "G6.26",
"section": "Annex 7 v1.9, rule G6.26",
"path": "/transactions/Report/ReportDocument[1]/Issuer[1]/Id[1]",
"expected": "SIREN registered in INSEE",
"actual": "registration not checked"
},
{
"severity": "needs_review",
"rule": "G7.40",
"section": "Annex 7 v1.9, rule G7.40",
"path": "/transactions/Report/ReportDocument[1]/IssueDateTime[1]/DateTimeString[1]",
"expected": "Creation time recorded by the submitting platform",
"actual": "platform records not supplied"
},
{
"severity": "needs_review",
"rule": "G8.05",
"section": "Annex 7 v1.9, rule G8.05",
"path": "/transactions/Report/ReportDocument[1]/Id[1]",
"expected": "Transmission ID unique for this declarant and period",
"actual": "submission history not supplied"
}
],
"reports": [
{
"kind": "transactions",
"id": "POS-202609-2-TX",
"period": {
"start": "2026-09-11",
"end": "2026-09-20"
},
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Report><ReportDocument><Id>POS-202609-2-TX</Id><IssueDateTime><DateTimeString>20260921091500</DateTimeString></IssueDateTime><TypeCode>IN</TypeCode><Sender><Id schemeId=\"0238\">0001</Id><Name>Example PA</Name><RoleCode>WK</RoleCode></Sender><Issuer><Id schemeId=\"0002\">123456789</Id><Name>Exemple SARL</Name><RoleCode>SE</RoleCode></Issuer></ReportDocument><TransactionsReport><ReportPeriod><StartDate>20260911</StartDate><EndDate>20260920</EndDate></ReportPeriod><Transactions><Date>20260915</Date><TransactionsCurrency>EUR</TransactionsCurrency><CategoryCode>TLB1</CategoryCode><TaxExclusiveAmount>32</TaxExclusiveAmount><TaxTotal>6.4</TaxTotal><TransactionsCount>1</TransactionsCount><TaxSubtotal><TaxPercent>20</TaxPercent><TaxableAmount>32</TaxableAmount><TaxTotal>6.4</TaxTotal></TaxSubtotal></Transactions></TransactionsReport></Report>",
"groups": [
{
"rows": [
0
]
}
]
}
]
}One day of B2C sales of goods: €32.00 at 20% VAT. Under the normal monthly regime transactions are reported per ten-day period, so the file covers 11 to 20 September 2026. The four needs_review items are checks only your platform can make, such as its own registration and whether the transmission ID is new. They do not make the file invalid. Up to 100 rows cost $0.10.
Try it
Run it on the live API
The sample reports one day of B2C sales of goods. Change vatAmount to 7.40 and the call returns a TT-88 error, VAT at 20% of 32, with no XML.
Reference
Operations
| Operation | Price |
|---|---|
| frereporting.generate Generate DGFiP v3.2 Flux 10 XML for B2C, cross-border B2B and service receipts. The minimum charge covers 100 input rows. | $0.10/100 lines |
| frereporting.validate Check DGFiP v3.2 Flux 10 XML against the published XSD and reporting rules. The minimum charge covers 100 reported rows. | $0.10/100 lines |
curl https://api.kanagu.dev/v1/frereporting/generate \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"reportId":"POS-202609-2","createdAt":"2026-09-21T09:15:00","checkedAt":"2026-09-21T10:10:00","platform":{"id":"0001","name":"Example PA"},"declarant":{"siren":"123456789","name":"Exemple SARL","role":"seller","vatRegime":"normal_monthly"},"reportingDate":"2026-09-15","transactions":[{"kind":"b2c","date":"2026-09-15","currency":"EUR","category":"TLB1","taxes":[{"rate":20,"taxableAmount":"32.00","vatAmount":"6.40"}]}]}'const res = await fetch("https://api.kanagu.dev/v1/frereporting/generate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"reportId": "POS-202609-2",
"createdAt": "2026-09-21T09:15:00",
"checkedAt": "2026-09-21T10:10:00",
"platform": {
"id": "0001",
"name": "Example PA"
},
"declarant": {
"siren": "123456789",
"name": "Exemple SARL",
"role": "seller",
"vatRegime": "normal_monthly"
},
"reportingDate": "2026-09-15",
"transactions": [
{
"kind": "b2c",
"date": "2026-09-15",
"currency": "EUR",
"category": "TLB1",
"taxes": [
{
"rate": 20,
"taxableAmount": "32.00",
"vatAmount": "6.40"
}
]
}
]
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
--header "Authorization: Bearer $KANAGU_KEY"{
"mcpServers": {
"kanagu": {
"url": "https://api.kanagu.dev/mcp",
"headers": {
"Authorization": "Bearer ${env:KANAGU_KEY}"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "frereporting.generate",
"arguments": {
"reportId": "POS-202609-2",
"createdAt": "2026-09-21T09:15:00",
"checkedAt": "2026-09-21T10:10:00",
"platform": {
"id": "0001",
"name": "Example PA"
},
"declarant": {
"siren": "123456789",
"name": "Exemple SARL",
"role": "seller",
"vatRegime": "normal_monthly"
},
"reportingDate": "2026-09-15",
"transactions": [
{
"kind": "b2c",
"date": "2026-09-15",
"currency": "EUR",
"category": "TLB1",
"taxes": [
{
"rate": 20,
"taxableAmount": "32.00",
"vatAmount": "6.40"
}
]
}
]
}
}
}Every field, error and schema is in the frereporting.generate reference.
Coverage
Limits and coverage
- Specification
- DGFiP and AIFE external specifications v3.2 of 30 April 2026: the e-reporting XSD, Annex 6 v1.10 (Flux 10 fields) and Annex 7 v1.9 (rules and code lists)
- Flows
- Transactions: B2C sales in categories TLB1, TPS1, TNT1 and TMA1, and international sales and acquisitions. Payments: B2C and international service receipts.
- Reporting periods
- Ten-day periods for transactions under the normal monthly regime, calendar months for its payments and for the quarterly and simplified regimes, and two-month periods under the franchise regime.
- Not checked
- The platform's registration, the declarant's SIREN in INSEE and whether a transmission ID is new. These come back as needs_review for your platform to confirm.
- Not covered
- Transmitting the file to the DGFiP, which your Plateforme Agréée does, domestic B2B e-invoices, and VAT returns
- Limits
- 2,000 transaction and payment rows per generate call. Amounts as decimal strings, with EUR VAT for rows in other currencies.
- Data
- Inputs are processed in memory. For keyed calls the JSON result is kept for 30 days so a retry with the same Idempotency-Key returns it, then deleted. Trial calls store only a daily counter. The XSD and rule checks run inside Kanagu's API and call no third party.
Fields of each issue
severity- error makes the result invalid and returns no XML. needs_review keeps the file valid.
rule- The DGFiP rule, e.g. TT-88 (an Annex 6 field), G6.29 (an Annex 7 rule), XSD or a general dossier section.
section- Where the rule is published, e.g. Annex 7 v1.9, rule G6.29.
path- The input field, e.g. /transactions/0/taxes/0/vatAmount, or the XML path in the report.
expected- What the rule requires, e.g. VAT at 20% of 32.
actual- The value it found.
line- The line in the XML, when there is one.
sourceRows- From generate, the zero-based input rows behind the XML record the issue is about.
Compare
Compared with the usual approaches
Ways teams usually produce Flux 10 files:
| Approach | What you take on |
|---|---|
| Build the XML in house | Read Annex 6 and 7, aggregate B2C sales by day, category and rate, work out each regime's periods and implement the rules yourself. |
| Leave it to the platform | Send raw sales to your Plateforme Agréée and learn about a wrong VAT total or period when it rejects the file. |
| Kanagu | One call returns Flux 10 XML that already passes the XSD and the rules, with each record traced to your rows, at $0.10 per 100 rows. |
Pricing
$0.10/100 lines, billed only on success
- frereporting.generate$0.10 / 100 lines
- frereporting.validate$0.10 / 100 lines
$1 of usage free every month after sign-in. Then pay as you go with no monthly fee, or the $9/month Bundle with $9 of usage included, shared across every Kanagu product. Compare plans
Sign in, create a key and use $1 of calls free each month, no card needed. Subscribe from your dashboard when you need more. Polar is the merchant of record and handles payment, tax and invoices.
FAQ
France e-reporting questions
- How is a call priced?
- $0.10 for each started block of 100 rows, with a $0.10 minimum, and only when the result is valid. Generation counts the rows you send before aggregation. Validation counts invoices and daily aggregates in the XML. Input errors and results with valid: false are free.
- Which period does a file cover?
- The one containing reportingDate under your VAT regime. Under normal_monthly, transactions report per ten-day period (1 to 10, 11 to 20, 21 to month end) and payments per month. Each row's operation date, which is the delivery date, then the invoice period end, then the issue date, must fall inside it.
- What does needs_review mean?
- A check that needs information Kanagu doesn't have, such as the platform's registration, the SIREN in INSEE or your submission history, or a VAT difference that may come from rounding on individual lines. Review items do not make the file invalid.
- How are sales in other currencies reported?
- Send taxable amounts in the transaction currency, VAT in EUR, and the converted EUR base per rate as taxableAmountEur. Without the EUR base, the VAT calculation comes back as needs_review.
- Does Kanagu send the file to the DGFiP?
- No. Your Plateforme Agréée transmits the returned XML. Kanagu needs its matricule to fill in the sender.
More APIs with the same key
- E-invoicingGenerate, validate and parse XRechnung and ZUGFeRD invoices.
- Bank statementsTurn Chase, Wells Fargo and Barclays PDF statements into reconciled transactions.
- OTA payoutsMatch Airbnb, Booking.com and Vrbo payouts to the deposits on your bank statement.
- Rent rollsReconcile a multifamily rent roll against its T12: occupancy, loss to lease, vacancy and rent collected.
- Pay applicationsCheck AIA G702 and G703 pay applications line by line, against the last certified one and approved change orders.
- VAT validationCheck EU and UK VAT numbers against VIES and HMRC, with audit evidence.
- Packaging EPRPackaging weights by US state EPR category and Germany LUCID reports, traced to each SKU.
- CPSC eFilingCheck CPC and GCC certificates against each CBP entry line and get the PGA fields to file.
- PFAS reportingDecide Minnesota and Maine PFAS-in-products reporting and get the PRISM rows, MDA statements and deadlines.
- Demurrage auditAudit FMC demurrage and detention invoices against 46 CFR 541, recalculate each day and draft the dispute.
- UK CARFHMRC cryptoasset reports as OECD CARF XML, checked against HMRC's file rules and TIN check digits.
- EU PPWREU packaging regulation checks for heavy metals, PFAS, recycled content and empty space, with a draft declaration.
- SEC fundamentalsPoint-in-time SEC XBRL financials with every restatement, for backtests without look-ahead.
- Business daysBusiness-day math and SLA deadlines with public holidays in 207 countries.
- CSV validationCheck uploaded CSV files against a column schema before you import them.
- Email parsingParse raw .eml messages into headers, bodies, attachments and thread IDs.
- Screenshot diffCapture two web pages and get the changed pixels and regions.