{"uid":"cap_5nZQmOx9rn2kFSlCcf7fr","slug":"402utils-factur-x-invoice-generator-beb15d65","name":"402utils Factur-X Invoice Generator","description":"Generate a Factur-X invoice (PDF/A-3 + embedded EN 16931 CII XML) from structured data: send { invoice, profile }, get the PDF bytes (or JSON with base64 + conformity report via Accept: application/json). Targets EN 16931 and the French PA « Flux 2 » rules (payment mentions, business process, electronic addresses) ahead of the 2026-09 mandate. Technical artifact, not tax/legal advice; you remain responsible for data accuracy and PA transmission.","url":"https://402utils.com/v1/facturx-generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"invoice":{"type":"object","required":["number","issueDate","seller","buyer","lines"],"properties":{"buyer":{"type":"object","description":"Buyer party (BG-7): name, legalId (SIREN), address, electronicAddress {value,scheme} (BT-49)."},"lines":{"type":"array","items":{"type":"object"},"description":"Invoice lines (BG-25): id, name, quantity, unitCode, unitPrice, vatCategory, vatRate."},"number":{"type":"string","description":"Invoice number (BT-1)."},"seller":{"type":"object","description":"Seller party (BG-4): name, legalId (SIREN), vatId, address, electronicAddress {value,scheme} (BT-34)."},"payment":{"type":"object","description":"Payment (BG-16): meansCode, iban, bic, terms, dueDate."},"currency":{"type":"string","default":"EUR","description":"ISO 4217 (BT-5)."},"delivery":{"type":"object","description":"Delivery info (BG-13): address, date."},"typeCode":{"enum":["380","381","384","389"],"type":"string","default":"380"},"issueDate":{"type":"string","description":"Issue date YYYY-MM-DD (BT-2)."},"buyerReference":{"type":"string"},"frenchMentions":{"type":"object","description":"Override the PMT/PMD/AAB payment mentions (defaults applied otherwise)."},"businessProcess":{"type":"string","description":"BT-23 typology (B1/S1/M1/…); derived from operationCategory when omitted."},"operationCategory":{"enum":["goods","services","mixed"],"type":"string","description":"Nature of operation (FR mandatory mention #3)."},"vatOnDebitsOption":{"type":"boolean","description":"VAT-on-debits option (FR mandatory mention #4)."}},"description":"EN 16931 invoice data (BT/BG business terms)."},"profile":{"enum":["MINIMUM","BASIC_WL","BASIC","EN16931"],"type":"string","default":"EN16931","description":"Target Factur-X profile. EN16931 (default) is the reference B2B profile."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"2.0000","medianCents":"2.0000","p90Cents":"2.0000","minCents":"2.0000","maxCents":"2.0000","p95Cents":"2.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kb5_nUlpGYnM9sXOipNVv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a Factur-X PDF/A-3 invoice with embedded EN 16931 CII XML from structured invoice data, targeting French public administration and B2B e-invoicing mandates.","exampleAgentPrompt":"Generate a Factur-X EN16931 invoice PDF for my company Acme SAS (SIREN 123456789, VAT FR12123456789) billing client Dupont SAS (SIREN 987654321) for 10 hours of consulting at €150/unit, invoice number INV-2025-042, issued 2025-07-01, due 2025-07-31, services category, EUR, with IBAN FR7630006000011234567890189 and BIC BNPAFRPP.","exampleUseCases":null,"resultDescription":"Returns PDF/A-3 binary bytes of the Factur-X invoice, or if Accept: application/json is set, a JSON object containing a base64-encoded PDF string and a conformity report detailing compliance with the selected profile (MINIMUM, BASIC_WL, BASIC, or EN16931) and French PA Flux 2 rules.","failureModes":["Missing required business terms (invoice number, issue date, seller, buyer, or lines) returns a 422 validation error","Invalid SIREN or VAT ID format causes rejection","Unsupported typeCode or profile enum value returns a 400 bad request","Malformed issue date format (not YYYY-MM-DD) causes a parsing error","Missing electronicAddress when French PA Flux 2 rules require BT-34/BT-49 may produce a non-conformant document with warnings in the conformity report","Network timeout or server error returns a 5xx response"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate a standards-compliant Factur-X PDF/A-3 invoice with embedded CII XML, especially for French B2B or public administration contexts ahead of the 2026-09 mandate. Prefer this over generic PDF generation when EN 16931 profile compliance and embedded structured XML (parseable by accounting systems) are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:46:59.213Z","isFirstParty":false,"canonicalSlug":"402utils-factur-x-invoice-generator-beb15d65"}