{"uid":"cap_k-TYF-vF_dTqv-WUJ4xef","slug":"brainiac-accounts-payable-payment-due-date-calculator-2c762837","name":"BRAINIAC Accounts Payable — Payment Due Date Calculator","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/payment-due-date-calculate?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":{"basis":"stated_due_date","status":"stated","dueDate":"2026-11-15","findings":[{"code":"due_date_differs_from_terms","detail":"The stated due date 2026-11-15 differs from 2026-10-31, which is the invoice date plus the stated Net 30 terms.","severity":"warning"}],"checkedAt":"2026-11-02T19:00:00.000Z","invoiceDate":"2026-10-01","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.","A due date is stated on the invoice or calculated from the invoice date plus terms that were actually stated. This does not schedule or release a payment."],"paymentTerms":"Net 30","approvesPayment":false,"paymentInitiated":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oi7dIRnwVbx1og-kG4MZL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates or validates the payment due date on an invoice by parsing invoice data or an uploaded document, checking stated terms against the due date, and flagging discrepancies.","exampleAgentPrompt":"I have an invoice PDF dated October 1 2026 with Net 30 terms but the stated due date is November 15 — can you calculate what the correct due date should be and flag any discrepancy?","exampleUseCases":[{"title":"Validate invoice due date before payment","prompt":"Here's an invoice PDF from our supplier — it says the due date is November 15, 2026, but we agreed on Net 30 terms from the invoice date of October 1st. Can you calculate the correct due date and tell me if there's a mismatch I should flag before approving payment?"},{"title":"Calculate due date from invoice text","prompt":"I have a plain text invoice with an invoice date of March 5, 2026 and Net 60 payment terms, but no due date written on it — can you calculate when the payment is actually due?"},{"title":"Audit batch of invoices for due date accuracy","prompt":"This CSV export of our invoices for Q1 includes invoice dates, stated due dates, and payment terms — can you check whether the due dates match the terms and list any discrepancies I should review in accounts payable?"}],"resultDescription":"Returns a JSON object containing the calculated or validated payment due date, the basis of that date (e.g. 'stated_due_date' or 'calculated_from_terms'), the detected payment terms (e.g. 'Net 30'), the invoice date, an array of findings with severity levels (warnings for mismatches), a checkedAt timestamp, and a list of limitations (e.g. no payment is initiated). Also includes boolean flags confirming no payment was approved or initiated.","failureModes":["Malformed or unreadable file (unsupported format or corrupted base64) — returns error","Invoice date absent and cannot be parsed from document — calculation impossible","Payment terms not stated in invoice and not provided in input — cannot calculate due date","File exceeds maximum allowed size — rejected","Missing required mediaType field when file is provided — validation error","Ambiguous or conflicting date formats in document — may produce warning finding"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify or calculate invoice payment due dates in an accounts payable workflow, especially when checking whether a stated due date matches the invoice's own payment terms. It's ideal for catching due-date discrepancies before approving payment, handling invoices as uploaded files (PDF, text, CSV) or structured data, and operating without setting up a full AP system account. It does not initiate or approve payments.","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-accounts-payable-payment-due-date-calculator-2c762837"}