{"uid":"cap_byV6igE_mxQcNj5g7dmPn","slug":"e-invoice-fixer-128d6d1f","name":"e-invoice-fixer","description":"Automatically repair a Romanian e-Factura / UBL 2.1 invoice and return the corrected XML: county and Bucharest sector codes, country, currency and unit codes, date formats, VAT-id prefixes, decimals, and all totals and VAT amounts recomputed from the lines in dependency order. Every change is listed (field, old, new) and the result is re-validated against the official rules. Charged only when something was fixed.","url":"https://einvoice.alexhub.uk/v1/fix?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"xml":{"type":"string","description":"The UBL 2.1 Invoice or CreditNote XML document"},"profile":{"enum":["auto","en16931","peppol","ro"],"type":"string","default":"auto","description":"Rule set; 'auto' reads it from the invoice's CustomizationID"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nOWTGyB5fbdOxHzUVGFqC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Automatically repair and recompute a Romanian e-Factura or UBL 2.1 invoice XML, returning the corrected document along with a detailed change log and re-validation results.","exampleAgentPrompt":"I have a Romanian e-Factura XML that has wrong county codes and incorrect VAT totals — can you automatically fix and recompute everything, using the 'ro' rule set, and show me exactly what changed?","exampleUseCases":[{"title":"Fix broken e-Factura before ANAF upload","prompt":"My e-Factura XML keeps failing validation on the ANAF SPV portal — the county code and VAT amounts look wrong. Can you auto-repair it using the 'ro' profile and tell me every field that was changed?"},{"title":"Recompute invoice totals after line edits","prompt":"I manually edited some line items in my UBL 2.1 invoice and now the totals and VAT summaries are out of sync. Can you recompute everything from the lines and give me the corrected XML?"},{"title":"Normalize codes and date formats in bulk invoices","prompt":"I have an e-Factura XML exported from our ERP that has wrong country codes, bad date formats, and missing currency codes — please fix all of that automatically using auto-detection and list every correction made."}],"resultDescription":"Returns the corrected UBL 2.1 Invoice or CreditNote XML document with all repairs applied (county/sector codes, country, currency, unit codes, date formats, VAT-id prefixes, recomputed totals and VAT amounts), a structured change log listing every modified field with its old and new value, and re-validation results against the applicable rule set. A charge is only incurred when at least one fix was applied.","failureModes":["Invalid or non-parseable XML input returns a parse error with position details","XML that is not a UBL 2.1 Invoice or CreditNote returns an unsupported document type error","Unknown or conflicting CustomizationID when profile is 'auto' may result in rule set detection failure","Invoice that passes validation without any changes is returned as-is and not charged","Network timeout if the XML document is very large","Malformed profile enum value returns a validation error"],"whenToPreferThis":"Use this endpoint when you need to automatically repair a Romanian e-Factura or UBL 2.1 invoice XML before submitting to ANAF SPV — especially when the invoice has known structural or value issues (wrong codes, bad date formats, out-of-sync totals). It is preferable over manual correction or a plain validator when you want both repair and a detailed change audit in one call. Choose it over the sibling validator-only endpoint when you need the corrected XML returned, not just an error report.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:30:11.000Z","isFirstParty":false,"canonicalSlug":"e-invoice-fixer-128d6d1f"}