{"uid":"cap_K0xqemCP4BmlyUvq3IX3-","slug":"brainiac-trade-finance-document-match-5b322fd3","name":"BRAINIAC Trade Finance Document Match","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/trade-finance/document-match?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"asOf":{"type":"string","maxLength":40},"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":200},"role":{"type":"string","maxLength":80},"country":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":200},"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"lcId":{"type":"string","maxLength":80},"buyer":{"type":"string","maxLength":200},"goods":{"type":"string","maxLength":400},"amount":{"type":"number","maximum":1000000000000,"minimum":0},"number":{"type":"string","maxLength":80},"seller":{"type":"string","maxLength":200},"source":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":80},"country":{"type":"string","maxLength":80},"dueDate":{"type":"string","maxLength":40},"currency":{"type":"string","maxLength":12},"incoterm":{"type":"string","maxLength":40},"issueDate":{"type":"string","maxLength":40},"contractId":{"type":"string","maxLength":80},"outstanding":{"type":"number","maximum":1000000000000,"minimum":0},"paymentTerms":{"type":"string","maxLength":200}},"additionalProperties":false},"maxItems":1000},"contracts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"date":{"type":"string","maxLength":40},"buyer":{"type":"string","maxLength":200},"goods":{"type":"string","maxLength":400},"amount":{"type":"number","maximum":1000000000000,"minimum":0},"number":{"type":"string","maxLength":80},"seller":{"type":"string","maxLength":200},"source":{"type":"string","maxLength":160},"currency":{"type":"string","maxLength":12},"incoterm":{"type":"string","maxLength":40},"paymentTerms":{"type":"string","maxLength":200}},"additionalProperties":false},"maxItems":200},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"date":{"type":"string","maxLength":40},"lcId":{"type":"string","maxLength":80},"type":{"type":"string","maxLength":80},"goods":{"type":"string","maxLength":400},"amount":{"type":"number","maximum":1000000000000,"minimum":0},"number":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":160},"shipper":{"type":"string","maxLength":200},"currency":{"type":"string","maxLength":12},"consignee":{"type":"string","maxLength":200},"invoiceId":{"type":"string","maxLength":80},"contractId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":1000},"worldBank":{"type":"object","properties":{"country":{"type":"string","maxLength":3,"minLength":2},"perPage":{"type":"integer","maximum":40,"minimum":1},"indicator":{"type":"string","maxLength":80,"minLength":3}},"additionalProperties":false},"assignments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"date":{"type":"string","maxLength":40},"amount":{"type":"number","maximum":1000000000000,"minimum":0},"source":{"type":"string","maxLength":160},"assignee":{"type":"string","maxLength":200},"assignor":{"type":"string","maxLength":200},"currency":{"type":"string","maxLength":12},"invoiceId":{"type":"string","maxLength":80},"invoiceNumber":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":500},"discountRatePct":{"type":"number","maximum":100,"minimum":0},"lettersOfCredit":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"goods":{"type":"string","maxLength":400},"amount":{"type":"number","maximum":1000000000000,"minimum":0},"number":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":160},"currency":{"type":"string","maxLength":12},"applicant":{"type":"string","maxLength":200},"issueDate":{"type":"string","maxLength":40},"expiryDate":{"type":"string","maxLength":40},"beneficiary":{"type":"string","maxLength":200},"requiredDocs":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":40},"latestShipment":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200}}},"responseSchema":{"type":"json","example":{"items":[{"lcId":"LC-1","matched":true,"invoiceId":"INV-1","contractId":"CT-1","documentIds":["DOC-1"],"amountAligned":true,"documentCount":1,"invoiceNumber":"INV-1001","amountCompared":true,"amountInvented":false,"creditDecision":false,"partiesAligned":true,"partiesCompared":true,"financingApproved":false}],"status":"matched","findings":[],"checkedAt":"2026-11-04T21:00:00.000Z","limitations":["Invoices, contracts, letters of credit, trade documents, and assignments are copied only from labeled fields supplied by the caller, or from key-free public World Bank trade responses when requested.","No paid trade-finance data provider is used and no API key is required.","Missing amounts, due dates, parties, and document fields are not invented.","Financing readiness and discounting figures are descriptive calculations only. A credit or financing decision is never produced.","Discrepancy and conflict findings compare supplied fields only and do not contact banks or registries."],"invoiceCount":1,"matchedCount":1,"publicSources":[],"amountInvented":false,"apiKeyRequired":false,"creditDecision":false,"paidProviderUsed":false,"financingApproved":false,"discrepancyInvented":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_75odRSwEOop1dJBNYw4d3","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":"Cross-checks invoices, letters of credit, contracts, and trade documents for alignment, discrepancies, and financing readiness without inventing data or contacting banks","exampleAgentPrompt":"Check whether my invoice INV-1001 for $50,000 USD from Seller Corp to Buyer Ltd matches the letter of credit LC-2024-007 and contract CT-890 — verify that the parties, amounts, and goods descriptions align and flag any discrepancies.","exampleUseCases":[{"title":"LC document discrepancy check","prompt":"I have an invoice and a letter of credit for a shipment of electronics worth $200,000 — can you check whether the invoice amount, parties, and incoterm match the LC terms and tell me if there are any discrepancies?"},{"title":"Pre-factoring invoice validation","prompt":"Before I submit these invoices to our trade finance provider, can you verify that invoice INV-5500 from Shanghai Exports to Berlin Trading GmbH for $85,000 aligns with the underlying sales contract CT-333 and that nothing is missing or mismatched?"},{"title":"Multi-document trade deal review","prompt":"We have a trade deal with invoices, a letter of credit, a sales contract, and a shipping document — can you cross-check all of them together and tell me which ones are matched, which have amount or party mismatches, and whether this looks financing-ready?"}],"resultDescription":"A JSON object containing per-document match results indicating whether each invoice is matched to a contract and LC, whether amounts and parties are aligned, a list of discrepancy findings, an overall match status, a checkedAt timestamp, and explicit disclaimers about what data sources were used and what was not invented or decided (e.g. no credit decision, no paid provider used).","failureModes":["Missing required document fields cause incomplete match results with explicit 'not compared' flags rather than invented values","Amounts or parties not supplied in input are reported as uncompared rather than fetched from external sources","Oversized inputs exceeding field maxLength or maxItems limits may be rejected","Malformed base64 file content or unsupported media types return validation errors","Complex multi-party structures with ambiguous IDs may produce partial matches with limitation notes"],"whenToPreferThis":"Use this endpoint when you need a pay-per-call, no-account trade finance document cross-check that is transparent about its data sources and never fabricates missing fields or issues credit decisions. It is best suited for agents operating in export/import finance, factoring, or supply chain finance workflows that need a quick automated consistency check across invoices, LCs, contracts, and trade documents. Prefer it over general LLM document comparison when you need structured, schema-defined match results with explicit financing-readiness flags and audit-safe limitation disclosures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:35:33.616Z","isFirstParty":false,"canonicalSlug":"brainiac-trade-finance-document-match-5b322fd3"}