{"uid":"cap_RBBohJYh414QwvxreZ1FV","slug":"brainiac-invoice-anomaly-detection-79e56251","name":"BRAINIAC Invoice Anomaly Detection","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-anomaly-detect?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":{"status":"issues_observed","findings":[{"code":"total_mismatch","detail":"The total 60.00 does not equal 55.00 from the present figures (subtotal, tax). Missing tax, discount, or shipping was not added as zero.","severity":"error"},{"code":"tax_rate_unavailable","detail":"A tax amount is present, but no tax rate was supplied or printed. The amount was not checked against a tax rule.","severity":"unavailable"}],"checkedAt":"2026-11-02T19:00:00.000Z","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.","Anomalies are limited to figures and dates that are present. An amount is not flagged as unusual by comparison with a guessed normal range."],"paymentInitiated":false}},"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_G5o5RQDZJzGyi1ZQpD9BI","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":"Analyzes invoice data or uploaded invoice files to detect arithmetic errors, inconsistencies, and anomalies in figures and dates","exampleAgentPrompt":"Can you check this invoice for anomalies? The subtotal is $500, tax is $45, shipping is $10, but the total listed is $600 — that doesn't seem right. Here's the invoice PDF encoded in base64.","exampleUseCases":[{"title":"Catch overbilling before payment","prompt":"Before I approve this vendor invoice for payment, can you run it through anomaly detection? The invoice shows subtotal $1,200, tax $96 at 8%, and a total of $1,350 — flag anything that doesn't add up."},{"title":"Automated AP invoice audit pipeline","prompt":"I'm processing a batch of scanned invoices. Here's a PDF of invoice #INV-2024-0831 with PO number PO-5591, due date 2025-03-15 — can you check it for arithmetic errors or missing fields before we post it to the ledger?"},{"title":"Tax amount verification on invoice","prompt":"This supplier invoice claims $87.50 in tax on a $700 subtotal but doesn't state the tax rate anywhere. Can you analyze the invoice figures and flag whether the tax amount looks anomalous or unverifiable?"}],"resultDescription":"A JSON object with a status field ('ok' or 'issues_observed'), an array of findings each containing a code (e.g. 'total_mismatch', 'tax_rate_unavailable'), a human-readable detail string, and a severity level ('error', 'warning', 'unavailable'). Also includes a checkedAt timestamp, a paymentInitiated boolean, and a limitations list explaining what was not checked.","failureModes":["Malformed or unreadable base64 file returns a parsing error","Invoice total mismatch flagged as error when rounding differences exist","Tax anomalies marked 'unavailable' rather than 'error' when tax rate is absent","Very large invoices exceeding 200 line items or 12MB file size are rejected","Ambiguous currency or missing fields reduce detection coverage without raising hard errors","No external supplier data or PO database is consulted, so price-reasonableness checks are not performed"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call invoice arithmetic and consistency check without setting up an account or integrating a full AP system. It is ideal for agents processing individual invoices on-demand, flagging errors before payment approval, or auditing uploaded invoice documents (PDF, CSV, plain text). Prefer it over manual review or heavyweight ERP integrations when you need a lightweight, per-invoice validation signal at low cost ($0.05 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T12:19:39.827Z","isFirstParty":false,"canonicalSlug":"brainiac-invoice-anomaly-detection-79e56251"}