Match trade finance documents API
Match supplied invoices to contracts, letters of credit, and trade documents by id, amount, and parties without inventing missing links.
The Match trade finance documents operation is part of the Trade Finance & Receivables Intelligence API on BRAINIAC.software. Match supplied invoices to contracts, letters of credit, and trade documents by id, amount, and parties without inventing missing links. It is exposed as POST /api/v1/trade-finance/document-match and priced at $0.05 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied invoices, contracts, letters of credit, and trade documents World Bank Open Data (no API key) when requested Limitations: No paid trade-finance data provider is used and no API key is required. Missing amounts, parties, and due dates are not invented. Financing readiness and discounting are descriptive only. A credit or financing decision is never produced. Discrepancy checks compare supplied fields only and do not contact banks or registries. World Bank responses are contextual only when country and indicator codes are supplied. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Detect letter of credit discrepancies, Assess invoice financing readiness, Analyze receivable aging risk, Detect invoice assignment conflicts. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/trade-finance/document-matchExample request
curl -i -X POST "https://www.brainiac.software/api/v1/trade-finance/document-match" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"invoices": [
{
"id": "INV-1",
"number": "INV-1001",
"issueDate": "2026-09-01",
"dueDate": "2026-10-31",
"currency": "USD",
"amount": 100000,
"buyer": "Buyer Co",
"seller": "Seller Co",
"goods": "Widgets",
"contractId": "CT-1",
"lcId": "LC-1"
}
],
"contracts": [
{
"id": "CT-1",
"number": "CT-9",
"date": "2026-08-01",
"currency": "USD",
"amount": 100000,
"buyer": "Buyer Co",
"seller": "Seller Co",
"goods": "Widgets"
}
],
"lettersOfCredit": [
{
"id": "LC-1",
"number": "LC-77",
"issueDate": "2026-08-15",
"expiryDate": "2026-11-30",
"currency": "USD",
"amount": 100000,
"applicant": "Buyer Co",
"beneficiary": "Seller Co",
"goods": "Widgets"
}
],
"documents": [
{
"id": "DOC-1",
"type": "bill of lading",
"number": "BL-1",
"date": "2026-09-05",
"currency": "USD",
"amount": 100000,
"shipper": "Seller Co",
"consignee": "Buyer Co",
"invoiceId": "INV-1",
"lcId": "LC-1"
}
]
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Detect letter of credit discrepancies — $0.06 USDC
- Assess invoice financing readiness — $0.04 USDC
- Analyze receivable aging risk — $0.04 USDC
- Detect invoice assignment conflicts — $0.04 USDC
Related APIs
Trade Finance & Receivables Intelligence APIFull docsHow it works