{"uid":"cap_80NIaAuc9DtlF9V4tIMZI","slug":"brainiac-letter-of-credit-discrepancy-detector-1fd9ee8e","name":"BRAINIAC Letter of Credit Discrepancy Detector","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/letter-of-credit-discrepancy-detect?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","clean":false,"lcNumber":"LC-77","invoiceCount":1,"discrepancies":[{"code":"amount","detail":"Invoice amount differs from LC amount.","subject":"INV-1"},{"code":"goods","detail":"Goods description differs from the LC description.","subject":"INV-1"},{"code":"document_amount","detail":"Document amount differs from LC amount.","subject":"DOC-1"},{"code":"shipment_date","detail":"Shipment or bill date is after the LC latest shipment date.","subject":"DOC-1"},{"code":"missing_document","detail":"A required LC document type was not found in supplied documents.","subject":"packing list"}],"documentCount":1,"creditDecision":false,"discrepancyCount":5,"financingApproved":false,"discrepancyInvented":false}],"status":"checked","lcCount":1,"findings":[{"code":"amount","kind":"conflict","detail":"Invoice amount differs from LC amount.","subject":"INV-1"},{"code":"goods","kind":"conflict","detail":"Goods description differs from the LC description.","subject":"INV-1"},{"code":"document_amount","kind":"conflict","detail":"Document amount differs from LC amount.","subject":"DOC-1"},{"code":"shipment_date","kind":"conflict","detail":"Shipment or bill date is after the LC latest shipment date.","subject":"DOC-1"},{"code":"missing_document","kind":"conflict","detail":"A required LC document type was not found in supplied documents.","subject":"packing list"}],"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."],"publicSources":[],"amountInvented":false,"apiKeyRequired":false,"creditDecision":false,"discrepancyCount":5,"paidProviderUsed":false,"financingApproved":false,"discrepancyInvented":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","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.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M83XRbn0YdFiVtQkkM5Dt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects discrepancies between letters of credit, invoices, contracts, and trade documents to flag compliance issues and financing readiness.","exampleAgentPrompt":"Can you check my letter of credit LC-77 against invoice INV-1 and the packing list to see if there are any discrepancies — specifically check the invoice amount, goods description, and shipment date?","exampleUseCases":[{"title":"Pre-bank document compliance check","prompt":"Before I present my documents to the bank, can you check LC-2024-88 against invoice INV-200 and the bill of lading to flag any discrepancies in amount, goods description, or shipment date that could get rejected?"},{"title":"Trade financing eligibility review","prompt":"I want to know if my LC documents are clean enough to qualify for financing — can you check LC-55 against my invoice for $250,000 of electronics shipped from China and tell me if anything is off?"},{"title":"Exporter document audit before shipment","prompt":"We're about to ship goods under letter of credit LC-999 — can you compare the LC terms with our draft invoice and packing list to catch any discrepancies in amounts, incoterms, or document types before we finalize?"}],"resultDescription":"Returns a structured JSON with per-LC item results including discrepancy codes (e.g. amount, goods, shipment_date, missing_document), detail messages, subjects, invoice and document counts, a clean/not-clean flag, credit decision, financing approval status, and an overall findings list with conflict kinds. Also includes a checkedAt timestamp and a list of system limitations.","failureModes":["Missing required LC or invoice fields cause incomplete comparison rather than hard failure","Ambiguous or truncated document text may produce missed discrepancies","System explicitly does not invent missing amounts, dates, or parties — gaps are reported as-is","Financing readiness figures are descriptive only — not actual credit decisions","Only data provided by caller is used; no external trade databases are queried"],"whenToPreferThis":"Use this endpoint when you need automated, structured discrepancy detection between letters of credit and their associated trade documents (invoices, contracts, bills of lading, packing lists) without setting up an account or subscribing to a trade finance data provider. Ideal for AI agents in trade finance workflows that need pay-per-call compliance checks at $0.06 USDC with no standing subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:44.071Z","isFirstParty":false,"canonicalSlug":"brainiac-letter-of-credit-discrepancy-detector-1fd9ee8e"}