{"uid":"cap_idmz8oSVuOAgPY5iCf9XI","slug":"brainiac-invoice-tax-validator-68137840","name":"BRAINIAC Invoice Tax Validator","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/accounts-payable/invoice-tax-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["application/pdf","text/plain","text/csv"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"invoice":{"type":"object","properties":{"tax":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"lines":{"type":"array","items":{"type":"object","required":["description"],"properties":{"sku":{"type":"string","maxLength":80,"minLength":1},"tax":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"amount":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"quantity":{"type":"number","maximum":1000000000,"minimum":-1000000000},"unitPrice":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"description":{"type":"string","maxLength":300,"minLength":1}},"additionalProperties":false},"maxItems":200},"total":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"dueDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"taxRate":{"type":"number","maximum":100,"minimum":0},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"discount":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"poNumber":{"type":"string","maxLength":80,"minLength":1},"shipping":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"subtotal":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"invoiceDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"paymentTerms":{"type":"string","maxLength":120,"minLength":1},"supplierName":{"type":"string","maxLength":200,"minLength":1},"invoiceNumber":{"type":"string","maxLength":80,"minLength":1}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"tax":12,"status":"error","taxRate":20,"findings":[{"code":"tax_amount_mismatch","detail":"The tax amount 12.00 does not equal 10.00, which is 20% of 50.00. No other tax rule was applied.","severity":"error"}],"checkedAt":"2026-11-02T19:00:00.000Z","expectedTax":10,"limitations":["No payment was initiated.","Tax rules, purchase orders, supplier records, and payment terms are not invented when they are absent.","Only the invoice, purchase order, and prior invoices in this request are compared.","The tax amount is checked only against a rate and subtotal that were supplied or printed."],"paymentInitiated":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WO71bRUl_QMRvrBoHk5AD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates that tax amounts on an invoice are correct given the stated tax rate, subtotal, and line items, and reports any discrepancies or rule violations.","exampleAgentPrompt":"Can you check if the tax on this vendor invoice is correct? The subtotal is $50.00, the tax shown is $12.00, and the stated tax rate is 20% — flag any mismatches or errors.","exampleUseCases":[{"title":"AP invoice tax audit before payment","prompt":"Before we pay this supplier invoice, check whether the $85 tax amount is correct given their claimed 15% tax rate on a $550 subtotal — I want to catch any errors before we approve it."},{"title":"Automated invoice tax validation from PDF","prompt":"Here's a vendor invoice PDF — please validate that the tax calculation is accurate based on the line items, quantities, and the stated 10% tax rate, and tell me if anything doesn't add up."},{"title":"Bulk AP invoice discrepancy detection","prompt":"We received an invoice with subtotal $1,200, tax listed as $180, and a 10% tax rate — can you verify whether the tax amount is correct and explain any discrepancy you find?"}],"resultDescription":"Returns a JSON object with a validation status ('ok' or 'error'), the tax amount from the invoice, the expected tax amount, the tax rate used, a list of findings (each with a code, detail message, and severity), a timestamp of when the check was performed, a flag indicating whether payment was initiated (always false), and a list of limitations explaining what was and was not checked.","failureModes":["Tax rate and subtotal not provided — validator cannot compute expected tax without both values","Invoice file is malformed or unreadable — returns a parsing error","Tax amount within acceptable rounding tolerance — may flag a mismatch that is due to rounding","Complex multi-jurisdiction tax rules not supported — validator only checks against a single stated rate and subtotal","File exceeds base64 size limits — request rejected","Missing required file mediaType or fileBase64 fields — schema validation error","Network or payment failure via x402 — call not completed"],"whenToPreferThis":"Use this endpoint when you need a fast, accountless, pay-per-call check that the tax amount on an accounts payable invoice matches the stated tax rate applied to the stated subtotal. It is ideal for automated AP pipelines where you want to catch tax arithmetic errors or mismatches before approving payment, without integrating a full ERP or tax compliance platform. It supports structured invoice data as well as file uploads (PDF, CSV, plain text) for flexible ingestion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:12.636Z","isFirstParty":false,"canonicalSlug":"brainiac-invoice-tax-validator-68137840"}