{"uid":"cap_l3jQXS3g9W4ukDTyxyfcy","slug":"brainiac-accounts-payable-payment-terms-extractor-0f463426","name":"BRAINIAC Accounts Payable — Payment Terms Extractor","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-terms-extract?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":"discount_net","status":"extracted","netDays":30,"evidence":"Supplied on the request.","findings":[{"code":"discount_not_applied","detail":"The terms state a discount. This check did not change the invoice total.","severity":"warning"}],"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.","…"],"discountDays":10,"paymentTerms":"2/10 Net 30","discountPercent":2,"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_p3WLxbG7cViGXWOhE69UN","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":"Extracts payment terms (net days, discount percent, discount days) from an invoice document or structured invoice data and returns a structured summary with compliance findings.","exampleAgentPrompt":"Can you extract the payment terms from this invoice PDF? I need to know the net days, any early payment discount percentage and discount window, and whether there are any issues with the terms as stated.","exampleUseCases":[{"title":"Supplier invoice onboarding check","prompt":"I just received a new supplier invoice as a PDF — can you pull out the payment terms, including any early pay discount like 2/10 net 30, and flag any warnings about how the discount is applied?"},{"title":"AP automation pipeline enrichment","prompt":"Here's the base64-encoded text of an invoice with a subtotal of $4,200, due date 2025-03-15, and invoice date 2025-02-13 — extract the payment terms so I can schedule the payment correctly."},{"title":"Early payment discount capture","prompt":"I want to know if this invoice qualifies for an early payment discount — please extract the discount percent and the number of days I have to pay to get it, based on the invoice PDF I'm attaching."}],"resultDescription":"A JSON object containing: the extracted paymentTerms string (e.g. '2/10 Net 30'), netDays, discountDays, discountPercent, basis (e.g. 'discount_net'), status ('extracted' or similar), checkedAt timestamp, evidence description, an array of findings with code/detail/severity for any compliance warnings, and a limitations list clarifying what was and was not performed.","failureModes":["File too large or unsupported media type — returns validation error","Invoice document does not contain readable payment terms — status may indicate no terms found","Malformed base64 file content — schema validation error","Missing required file fields (mediaType, fileBase64) — 400-level error","Ambiguous or conflicting terms in document — findings array contains warnings but partial result returned","Payment not completed on Base via x402 — 402 Payment Required response, no result returned"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract structured payment terms (net days, early pay discounts) from invoice PDFs or text files without setting up a full AP platform account. Ideal for agent-driven accounts-payable automation, invoice ingestion pipelines, or spot-checking supplier invoices for discount capture opportunities. Prefer it over manual parsing or general-purpose document extractors when you need a schema-consistent, finance-specific output with explicit findings and limitation disclosures. At $0.03/call with no account required, it suits high-volume per-invoice processing with pay-as-you-go economics via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T12:19:42.824Z","isFirstParty":false,"canonicalSlug":"brainiac-accounts-payable-payment-terms-extractor-0f463426"}