{"uid":"cap_s8RBmdDwSSr0v7ZGDkWQl","slug":"brainiac-invoice-discounting-calculator-0e5c3b99","name":"BRAINIAC Invoice Discounting 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/trade-finance/invoice-discounting-calculate?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":[{"asOf":"2026-10-01","dueDate":"2026-12-30","currency":"USD","proceeds":98500,"invoiceId":"INV-1","tenorDays":90,"faceAmount":100000,"invoiceNumber":"INV-1001","amountInvented":false,"creditDecision":false,"discountAmount":1500,"discountRatePct":6,"proceedsSupplied":true,"financingApproved":false,"tenorDaysSupplied":true,"faceAmountSupplied":true,"discountRateSupplied":true,"discountAmountSupplied":true},{"asOf":"2026-10-01","dueDate":"2026-11-15","currency":"USD","proceeds":49625,"invoiceId":"INV-2","tenorDays":45,"faceAmount":50000,"invoiceNumber":"INV-1002","amountInvented":false,"creditDecision":false,"discountAmount":375,"discountRatePct":6,"proceedsSupplied":true,"financingApproved":false,"tenorDaysSupplied":true,"faceAmountSupplied":true,"discountRateSupplied":true,"discountAmountSupplied":true}],"status":"calculated","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":2,"publicSources":[],"amountInvented":false,"apiKeyRequired":false,"creditDecision":false,"paidProviderUsed":false,"financingApproved":false,"discrepancyInvented":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GxOw_7cb_KRjSPAWdJIA_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates invoice discounting proceeds, discount amounts, and tenor for trade finance invoices without making credit decisions or inventing data.","exampleAgentPrompt":"Calculate the discounting proceeds for my invoice INV-1001 with a face amount of $100,000 due in 90 days from today using a 6% annual discount rate — tell me how much I'll actually receive and what the discount amount is.","exampleUseCases":[{"title":"Export invoice discounting proceeds check","prompt":"I have a $50,000 export invoice from my buyer in Germany due in 45 days and I want to discount it at 6% per annum — can you calculate exactly how much I'll receive in proceeds and what the discount fee will be?"},{"title":"Batch receivables discounting analysis","prompt":"I have two outstanding invoices: INV-1001 for $100,000 due December 30 and INV-1002 for $50,000 due November 15, both with a 6% discount rate — calculate the discounting proceeds and discount amounts for each one as of today."},{"title":"Trade finance pre-submission calculation","prompt":"Before I submit these invoices to our financier, can you run the discounting calculations for me? Invoice ABC-500 is for $250,000 USD due in 60 days at a 5.5% discount rate, issued by seller Acme Corp to buyer GlobalTrade Ltd."}],"resultDescription":"Returns a JSON array of per-invoice calculation results including: proceeds (net amount received), discount amount, discount rate percentage, tenor days, face amount, due date, currency, and boolean flags indicating which fields were supplied vs. invented. Also includes a top-level status, findings array for discrepancies, limitations list, and metadata flags confirming no credit decision, no paid provider, and no invented amounts were used.","failureModes":["Missing required invoice fields (amount, dueDate, currency) result in amountInvented or incomplete calculations","Invoices with missing discount rate may not compute discount figures","Overly large payloads exceeding maxItems:1000 or maxLength:200000 may be rejected","Malformed date strings in dueDate or issueDate fields may cause parsing errors","No actual credit or financing decision is ever returned — agents expecting approval/rejection will not get one"],"whenToPreferThis":"Use this endpoint when you need deterministic, auditable invoice discounting math — proceeds, discount amount, and tenor — without needing a credit decision or live bank data. It is ideal for pre-submission verification, internal finance calculations, or agent workflows that need to present discounting figures to a human. Prefer this over generic calculators when you have structured invoice data with explicit fields and want per-invoice line-item results with discrepancy detection. It does not contact banks, invent missing values, or require API keys beyond the x402 USDC micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:32.540Z","isFirstParty":false,"canonicalSlug":"brainiac-invoice-discounting-calculator-0e5c3b99"}