{"uid":"cap_rJ7xy3TdW27-OvIzra2IV","slug":"brainiac-accounts-payable-invoice-review-c7955ee7","name":"BRAINIAC Accounts Payable Invoice Review","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/review?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},"candidates":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"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},"maxItems":50},"purchaseOrder":{"type":"object","required":["poNumber"],"properties":{"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},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"poNumber":{"type":"string","maxLength":80,"minLength":1},"supplierName":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"lines":[{"sku":"RM-1","tax":0,"amount":25,"source":"supplied","quantity":2,"unitPrice":12.5,"description":"Paper ream"},{"sku":"INK-2","tax":0,"amount":30,"source":"supplied","quantity":1,"unitPrice":30,"description":"Ink cartridge"}],"counts":{"error":0,"warning":0,"unavailable":0},"invoice":{"tax":0,"total":55,"dueDate":"2026-10-31","taxRate":0,"currency":"USD","discount":0,"poNumber":"PO-55","shipping":0,"subtotal":55,"invoiceDate":"2026-10-01","paymentTerms":"Net 30","supplierName":"Northwind Paper Ltd","invoiceNumber":"INV-100"},"summary":"No errors, warnings, or missing checks were found in the supplied invoice and comparisons. This review does not release or initiate a payment.","findings":[],"sections":[{"name":"header","status":"extracted"},{"name":"lines","status":"extracted"},{"name":"totals","status":"matched"},{"name":"duplicates","status":"no_duplicate_in_supplied_set"},{"name":"purchase_order","status":"matched"},{"name":"tax","status":"matched"},{"name":"terms","status":"extracted"},{"name":"due","status":"stated"},{"name":"anomalies","status":"no_issues_observed"}],"checkedAt":"2026-11-02T19:00:00.000Z","assessment":"no_issues_observed","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 review repeats the individual checks in this request. A result with no issues is not an approval to pay."],"approvesPayment":false,"paymentInitiated":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.12","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.12/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OETFeyCYK1Nv6lNUHj5zR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reviews an invoice for errors, math discrepancies, PO matching, duplicate detection, tax validation, and anomalies without initiating payment","exampleAgentPrompt":"Can you review this invoice from Northwind Paper Ltd (INV-100, $55 total, due 2026-10-31, PO-55) and check it for any errors, mismatched totals, duplicate entries, or tax issues before I approve payment?","exampleUseCases":[{"title":"Pre-payment invoice audit","prompt":"I just received an invoice from Acme Supplies for $4,200 — PO number PO-2024-88, dated 2025-03-01, due 2025-04-01, Net 30 terms. Can you check if the line items and totals all add up correctly and flag anything suspicious before I approve it for payment?"},{"title":"PO matching and duplicate detection","prompt":"We got another invoice from TechParts Co (invoice number INV-5512, $1,850, dated 2025-02-15) referencing PO-991. Can you compare it against the invoice details I'm providing and check whether it's a duplicate and whether the PO number matches?"},{"title":"Tax and subtotal validation","prompt":"This supplier sent us an invoice with a 8.5% tax rate applied to a $3,000 subtotal, but the total they're charging is $3,290. Can you verify whether the math is correct and flag any discrepancies in the tax calculation?"}],"resultDescription":"A structured JSON object containing: extracted invoice header fields (supplier, dates, totals, PO), reconciled line items with source annotations, per-section status checks (header, lines, totals, duplicates, PO, tax, terms, due date, anomalies), a list of findings with severity, error/warning counts, an overall assessment label (e.g. 'no_issues_observed'), a plain-English summary, limitations disclaimer, and boolean flags confirming no payment was approved or initiated.","failureModes":["Invalid or corrupted base64 file encoding returns a parse error","Unsupported file media type returns a schema validation error","Invoice total fields missing or non-numeric cause computation failures","File exceeds 12MB base64 size limit returns payload too large error","Malformed date fields (wrong format) cause validation rejection","Missing required fields (e.g. no description on a line item) returns schema error","Payment failure via x402 results in 402 response with no review performed"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically audit an invoice before human or automated approval — especially when you want structured, per-section findings (header, totals, PO match, tax, duplicates, anomalies) returned as JSON without storing any data or initiating payment. It is well-suited for accounts payable automation pipelines where no vendor account setup is desired and pay-per-call billing via USDC on Base (x402) is acceptable. Prefer this over general-purpose document extraction tools when you specifically need invoice validation logic (math checks, PO cross-referencing, duplicate detection) rather than raw data extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T14:52:13.274Z","isFirstParty":false,"canonicalSlug":"brainiac-accounts-payable-invoice-review-c7955ee7"}