BRAINIAC Trade Finance & Receivables Intelligence is an MCP server published by software.brainiac, hosted at www.brainiac.software. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 10 tools, including trade-finance_document-match, trade-finance_letter-of-credit-discrepancy-detect, trade-finance_invoice-financing-readiness, trade-finance_receivable-aging-risk-analyze, trade-finance_invoice-assignment-conflict-detect.
Paid Trade Finance & Receivables Intelligence API via x402. Unpaid tool calls return 402.
1,080 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Match supplied invoices to contracts, letters of credit, and trade documents by id, amount, and parties without inventing missing links. Docs: https://www.brainiac.software/api/trade-finance/document-match Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, matchedCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object | worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_document-match",
"title": "Match trade finance documents",
"description": "Match supplied invoices to contracts, letters of credit, and trade documents by id, amount, and parties without inventing missing links. Docs: https://www.brainiac.software/api/trade-finance/document-match Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, matchedCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"lcId": {
"type": "string",
"description": "lcId. String."
},
"matched": {
"type": "boolean",
"description": "matched. Boolean."
},
"invoiceId": {
"type": "string",
"description": "invoiceId. String."
},
"contractId": {
"type": "string",
"description": "contractId. String."
},
"documentIds": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "documentIds. Array."
},
"amountAligned": {
"type": "boolean",
"description": "amountAligned. Boolean."
},
"documentCount": {
"type": "number",
"description": "documentCount. Number."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
},
"amountCompared": {
"type": "boolean",
"description": "amountCompared. Boolean."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"partiesAligned": {
"type": "boolean",
"description": "partiesAligned. Boolean."
},
"partiesCompared": {
"type": "boolean",
"description": "partiesCompared. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"matchedCount": {
"type": "number",
"description": "matchedCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Match trade finance documents",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Compare supplied LC terms with linked invoices and documents. Docs: https://www.brainiac.software/api/trade-finance/letter-of-credit-discrepancy-detect Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, lcCount, discrepancyCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Score supplied invoices for completeness of identifiers, amounts, parties, and dates. Docs: https://www.brainiac.software/api/trade-finance/invoice-financing-readiness Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, readyCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Bucket supplied invoice outstanding amounts by days past due from the as-of date. Docs: https://www.brainiac.software/api/trade-finance/receivable-aging-risk-analyze Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, buckets.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Flag when the same invoice id or number is assigned to more than one assignee in the supplied set. Docs: https://www.brainiac.software/api/trade-finance/invoice-assignment-conflict-detect Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, conflictCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Compare buyer, seller, applicant, beneficiary, shipper, and consignee fields across linked invoices, contracts, LCs, and documents. Docs: https://www.brainiac.software/api/trade-finance/document-party-consistency Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, consistentCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank |
Label supplied payment terms as lower, moderate, higher, or unclassified from wording only. Docs: https://www.brainiac.software/api/trade-finance/export-payment-term-risk Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, itemCount, higherCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Sum supplied outstanding or face amounts by buyer and currency. Docs: https://www.brainiac.software/api/trade-finance/credit-exposure-calculate Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, counterpartyCount, totalOutstanding.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Calculate simple discount and proceeds from supplied face amounts, due dates, as-of date, and discount rate. Docs: https://www.brainiac.software/api/trade-finance/invoice-discounting-calculate Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, items.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank | object |
Assemble document match, LC discrepancy, readiness, aging, assignment, party, term, exposure, and discounting summaries from the supplied set. Docs: https://www.brainiac.software/api/trade-finance/evidence-package Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, contractCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| asOf | string | asOf, string, length 0 to 40. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| parties | array | parties, array. Optional. |
| invoices | array | invoices, array. Optional. |
| contracts | array | contracts, array. Optional. |
| documents | array | documents, array. Optional. |
| worldBank |
Tool calls wrap the existing POST APIs and stay pay-per-call. initialize and tools/list are free. An unpaid tool call returns the x402 payment terms in the tool result and does not run. Retry with the payment in params._meta["x402/payment"], or send payment-signature. Payment settles only after a successful result.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_letter-of-credit-discrepancy-detect",
"title": "Detect letter of credit discrepancies",
"description": "Compare supplied LC terms with linked invoices and documents. Docs: https://www.brainiac.software/api/trade-finance/letter-of-credit-discrepancy-detect Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, lcCount, discrepancyCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"lcId": {
"type": "string",
"description": "lcId. String."
},
"clean": {
"type": "boolean",
"description": "clean. Boolean."
},
"lcNumber": {
"type": "string",
"description": "lcNumber. String."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"discrepancies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"subject": {
"type": "string",
"description": "subject. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "discrepancies. Array."
},
"documentCount": {
"type": "number",
"description": "documentCount. Number."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"discrepancyCount": {
"type": "number",
"description": "discrepancyCount. Number."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"lcCount": {
"type": "number",
"description": "lcCount. Number."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"subject": {
"type": "string",
"description": "subject. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"discrepancyCount": {
"type": "number",
"description": "discrepancyCount. Number."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect letter of credit discrepancies",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_invoice-financing-readiness",
"title": "Assess invoice financing readiness",
"description": "Score supplied invoices for completeness of identifiers, amounts, parties, and dates. Docs: https://www.brainiac.software/api/trade-finance/invoice-financing-readiness Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, readyCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hasLc": {
"type": "boolean",
"description": "hasLc. Boolean."
},
"score": {
"type": "number",
"description": "score. Number."
},
"invoiceId": {
"type": "string",
"description": "invoiceId. String."
},
"readiness": {
"type": "string",
"description": "readiness. String."
},
"hasContract": {
"type": "boolean",
"description": "hasContract. Boolean."
},
"documentCount": {
"type": "number",
"description": "documentCount. Number."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
},
"missingFields": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "missingFields. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"subject": {
"type": "string",
"description": "subject. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"readyCount": {
"type": "number",
"description": "readyCount. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Assess invoice financing readiness",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_receivable-aging-risk-analyze",
"title": "Analyze receivable aging risk",
"description": "Bucket supplied invoice outstanding amounts by days past due from the as-of date. Docs: https://www.brainiac.software/api/trade-finance/receivable-aging-risk-analyze Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, buckets.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"type": "string",
"description": "asOf. String."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asOf": {
"type": "string",
"description": "asOf. String."
},
"risk": {
"type": "string",
"description": "risk. String."
},
"buyer": {
"type": "string",
"description": "buyer. String."
},
"bucket": {
"type": "string",
"description": "bucket. String."
},
"dueDate": {
"type": "string",
"description": "dueDate. String."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"invoiceId": {
"type": "string",
"description": "invoiceId. String."
},
"daysPastDue": {
"type": "number",
"description": "daysPastDue. Number."
},
"outstanding": {
"type": "number",
"description": "outstanding. Number."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"daysPastDueSupplied": {
"type": "boolean",
"description": "daysPastDueSupplied. Boolean."
},
"outstandingSupplied": {
"type": "boolean",
"description": "outstandingSupplied. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"buckets": {
"type": "object",
"properties": {
"90+": {
"type": "number",
"description": "90+. Number."
},
"1-30": {
"type": "number",
"description": "1-30. Number."
},
"31-60": {
"type": "number",
"description": "31-60. Number."
},
"61-90": {
"type": "number",
"description": "61-90. Number."
},
"current": {
"type": "number",
"description": "current. Number."
},
"unknown": {
"type": "number",
"description": "unknown. Number."
}
},
"description": "buckets. Object.",
"additionalProperties": {}
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Analyze receivable aging risk",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_invoice-assignment-conflict-detect",
"title": "Detect invoice assignment conflicts",
"description": "Flag when the same invoice id or number is assigned to more than one assignee in the supplied set. Docs: https://www.brainiac.software/api/trade-finance/invoice-assignment-conflict-detect Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, conflictCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"conflict": {
"type": "boolean",
"description": "conflict. Boolean."
},
"assignees": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "assignees. Array."
},
"invoiceKey": {
"type": "string",
"description": "invoiceKey. String."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"date": {
"type": "string",
"description": "date. String."
},
"amount": {
"type": "number",
"description": "amount. Number."
},
"assignee": {
"type": "string",
"description": "assignee. String."
},
"assignor": {
"type": "string",
"description": "assignor. String."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"amountSupplied": {
"type": "boolean",
"description": "amountSupplied. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "assignments. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"assignmentCount": {
"type": "number",
"description": "assignmentCount. Number."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"subject": {
"type": "string",
"description": "subject. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"conflictCount": {
"type": "number",
"description": "conflictCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect invoice assignment conflicts",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| object |
| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_document-party-consistency",
"title": "Check trade document party consistency",
"description": "Compare buyer, seller, applicant, beneficiary, shipper, and consignee fields across linked invoices, contracts, LCs, and documents. Docs: https://www.brainiac.software/api/trade-finance/document-party-consistency Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, consistentCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"buyer": {
"type": "string",
"description": "buyer. String."
},
"seller": {
"type": "string",
"description": "seller. String."
},
"conflicts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "field. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "conflicts. Array."
},
"invoiceId": {
"type": "string",
"description": "invoiceId. String."
},
"checkCount": {
"type": "number",
"description": "checkCount. Number."
},
"consistent": {
"type": "boolean",
"description": "consistent. Boolean."
},
"conflictCount": {
"type": "number",
"description": "conflictCount. Number."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"subject": {
"type": "string",
"description": "subject. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"consistentCount": {
"type": "number",
"description": "consistentCount. Number."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Check trade document party consistency",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_export-payment-term-risk",
"title": "Assess export payment term risk",
"description": "Label supplied payment terms as lower, moderate, higher, or unclassified from wording only. Docs: https://www.brainiac.software/api/trade-finance/export-payment-term-risk Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, itemCount, higherCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"risk": {
"type": "string",
"description": "risk. String."
},
"country": {
"type": "string",
"description": "country. String."
},
"incoterm": {
"type": "string",
"description": "incoterm. String."
},
"counterparty": {
"type": "string",
"description": "counterparty. String."
},
"paymentTerms": {
"type": "string",
"description": "paymentTerms. String."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"itemCount": {
"type": "number",
"description": "itemCount. Number."
},
"higherCount": {
"type": "number",
"description": "higherCount. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Assess export payment term risk",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_credit-exposure-calculate",
"title": "Calculate trade credit exposure",
"description": "Sum supplied outstanding or face amounts by buyer and currency. Docs: https://www.brainiac.software/api/trade-finance/credit-exposure-calculate Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, counterpartyCount, totalOutstanding.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"buyer": {
"type": "string",
"description": "buyer. String."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"outstanding": {
"type": "number",
"description": "outstanding. Number."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"outstandingSupplied": {
"type": "boolean",
"description": "outstandingSupplied. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"totalOutstanding": {
"type": "number",
"description": "totalOutstanding. Number."
},
"counterpartyCount": {
"type": "number",
"description": "counterpartyCount. Number."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Calculate trade credit exposure",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_invoice-discounting-calculate",
"title": "Calculate invoice discounting",
"description": "Calculate simple discount and proceeds from supplied face amounts, due dates, as-of date, and discount rate. Docs: https://www.brainiac.software/api/trade-finance/invoice-discounting-calculate Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, items.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asOf": {
"type": "string",
"description": "asOf. String."
},
"dueDate": {
"type": "string",
"description": "dueDate. String."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
},
"invoiceId": {
"type": "string",
"description": "invoiceId. String."
},
"tenorDays": {
"type": "number",
"description": "tenorDays. Number."
},
"faceAmount": {
"type": "number",
"description": "faceAmount. Number."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"discountAmount": {
"type": "number",
"description": "discountAmount. Number."
},
"discountRatePct": {
"type": "number",
"description": "discountRatePct. Number."
},
"proceedsSupplied": {
"type": "boolean",
"description": "proceedsSupplied. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"tenorDaysSupplied": {
"type": "boolean",
"description": "tenorDaysSupplied. Boolean."
},
"faceAmountSupplied": {
"type": "boolean",
"description": "faceAmountSupplied. Boolean."
},
"discountRateSupplied": {
"type": "boolean",
"description": "discountRateSupplied. Boolean."
},
"discountAmountSupplied": {
"type": "boolean",
"description": "discountAmountSupplied. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Calculate invoice discounting",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| object |
| worldBank, object. Optional. |
| assignments | array | assignments, array. Optional. |
| discountRatePct | number | discountRatePct, number, from 0 to 100. Optional. |
| lettersOfCredit | array | lettersOfCredit, array. Optional. |
{
"name": "trade-finance_evidence-package",
"title": "Build trade finance evidence package",
"description": "Assemble document match, LC discrepancy, readiness, aging, assignment, party, term, exposure, and discounting summaries from the supplied set. Docs: https://www.brainiac.software/api/trade-finance/evidence-package Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, contractCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"asOf": {
"type": "string",
"maxLength": 40,
"description": "asOf, string, length 0 to 40. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "name, string, length 0 to 200. Optional."
},
"role": {
"type": "string",
"maxLength": 80,
"description": "role, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "parties, array. Optional."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"dueDate": {
"type": "string",
"maxLength": 40,
"description": "dueDate, string, length 0 to 40. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
},
"outstanding": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "outstanding, number, from 0 to 1000000000000. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "invoices, array. Optional."
},
"contracts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"buyer": {
"type": "string",
"maxLength": 200,
"description": "buyer, string, length 0 to 200. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"seller": {
"type": "string",
"maxLength": 200,
"description": "seller, string, length 0 to 200. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"incoterm": {
"type": "string",
"maxLength": 40,
"description": "incoterm, string, length 0 to 40. Optional."
},
"paymentTerms": {
"type": "string",
"maxLength": 200,
"description": "paymentTerms, string, length 0 to 200. Optional."
}
},
"description": "item, object. Required."
},
"description": "contracts, array. Optional."
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"lcId": {
"type": "string",
"maxLength": 80,
"description": "lcId, string, length 0 to 80. Optional."
},
"type": {
"type": "string",
"maxLength": 80,
"description": "type, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"shipper": {
"type": "string",
"maxLength": 200,
"description": "shipper, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"consignee": {
"type": "string",
"maxLength": 200,
"description": "consignee, string, length 0 to 200. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"contractId": {
"type": "string",
"maxLength": 80,
"description": "contractId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "documents, array. Optional."
},
"worldBank": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 3,
"minLength": 2,
"description": "country, string, length 2 to 3. Optional."
},
"perPage": {
"type": "integer",
"maximum": 40,
"minimum": 1,
"description": "perPage, integer, from 1 to 40. Optional."
},
"indicator": {
"type": "string",
"maxLength": 80,
"minLength": 3,
"description": "indicator, string, length 3 to 80. Optional."
}
},
"description": "worldBank, object. Optional."
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "date, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"assignee": {
"type": "string",
"maxLength": 200,
"description": "assignee, string, length 0 to 200. Optional."
},
"assignor": {
"type": "string",
"maxLength": 200,
"description": "assignor, string, length 0 to 200. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"invoiceId": {
"type": "string",
"maxLength": 80,
"description": "invoiceId, string, length 0 to 80. Optional."
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"description": "invoiceNumber, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "assignments, array. Optional."
},
"discountRatePct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "discountRatePct, number, from 0 to 100. Optional."
},
"lettersOfCredit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"goods": {
"type": "string",
"maxLength": 400,
"description": "goods, string, length 0 to 400. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000000. Optional."
},
"number": {
"type": "string",
"maxLength": 80,
"description": "number, string, length 0 to 80. Optional."
},
"source": {
"type": "string",
"maxLength": 160,
"description": "source, string, length 0 to 160. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"applicant": {
"type": "string",
"maxLength": 200,
"description": "applicant, string, length 0 to 200. Optional."
},
"issueDate": {
"type": "string",
"maxLength": 40,
"description": "issueDate, string, length 0 to 40. Optional."
},
"expiryDate": {
"type": "string",
"maxLength": 40,
"description": "expiryDate, string, length 0 to 40. Optional."
},
"beneficiary": {
"type": "string",
"maxLength": 200,
"description": "beneficiary, string, length 0 to 200. Optional."
},
"requiredDocs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120,
"description": "item, string, length 0 to 120. Required."
},
"description": "requiredDocs, array. Optional."
},
"latestShipment": {
"type": "string",
"maxLength": 40,
"description": "latestShipment, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "lettersOfCredit, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"lcId": {
"type": "string",
"description": "lcId. String."
},
"matched": {
"type": "boolean",
"description": "matched. Boolean."
},
"invoiceId": {
"type": "string",
"description": "invoiceId. String."
},
"contractId": {
"type": "string",
"description": "contractId. String."
},
"documentIds": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "documentIds. Array."
},
"amountAligned": {
"type": "boolean",
"description": "amountAligned. Boolean."
},
"documentCount": {
"type": "number",
"description": "documentCount. Number."
},
"invoiceNumber": {
"type": "string",
"description": "invoiceNumber. String."
},
"amountCompared": {
"type": "boolean",
"description": "amountCompared. Boolean."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"partiesAligned": {
"type": "boolean",
"description": "partiesAligned. Boolean."
},
"partiesCompared": {
"type": "boolean",
"description": "partiesCompared. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"lcCount": {
"type": "number",
"description": "lcCount. Number."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"sections": {
"type": "object",
"properties": {
"aging": {
"type": "object",
"properties": {
"asOf": {
"type": "string",
"description": "asOf. String."
},
"buckets": {
"type": "object",
"properties": {
"90+": {
"type": "number",
"description": "90+. Number."
},
"1-30": {
"type": "number",
"description": "1-30. Number."
},
"31-60": {
"type": "number",
"description": "31-60. Number."
},
"61-90": {
"type": "number",
"description": "61-90. Number."
},
"current": {
"type": "number",
"description": "current. Number."
},
"unknown": {
"type": "number",
"description": "unknown. Number."
}
},
"description": "buckets. Object.",
"additionalProperties": {}
}
},
"description": "aging. Object.",
"additionalProperties": {}
},
"discounting": {
"type": "object",
"properties": {
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
}
},
"description": "discounting. Object.",
"additionalProperties": {}
},
"documentMatch": {
"type": "object",
"properties": {
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"matchedCount": {
"type": "number",
"description": "matchedCount. Number."
}
},
"description": "documentMatch. Object.",
"additionalProperties": {}
},
"creditExposure": {
"type": "object",
"properties": {
"totalOutstanding": {
"type": "number",
"description": "totalOutstanding. Number."
},
"counterpartyCount": {
"type": "number",
"description": "counterpartyCount. Number."
}
},
"description": "creditExposure. Object.",
"additionalProperties": {}
},
"lcDiscrepancies": {
"type": "object",
"properties": {
"lcCount": {
"type": "number",
"description": "lcCount. Number."
},
"discrepancyCount": {
"type": "number",
"description": "discrepancyCount. Number."
}
},
"description": "lcDiscrepancies. Object.",
"additionalProperties": {}
},
"paymentTermRisk": {
"type": "object",
"properties": {
"higherCount": {
"type": "number",
"description": "higherCount. Number."
}
},
"description": "paymentTermRisk. Object.",
"additionalProperties": {}
},
"partyConsistency": {
"type": "object",
"properties": {
"consistentCount": {
"type": "number",
"description": "consistentCount. Number."
}
},
"description": "partyConsistency. Object.",
"additionalProperties": {}
},
"financingReadiness": {
"type": "object",
"properties": {
"readyCount": {
"type": "number",
"description": "readyCount. Number."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
}
},
"description": "financingReadiness. Object.",
"additionalProperties": {}
},
"assignmentConflicts": {
"type": "object",
"properties": {
"conflictCount": {
"type": "number",
"description": "conflictCount. Number."
}
},
"description": "assignmentConflicts. Object.",
"additionalProperties": {}
}
},
"description": "sections. Object.",
"additionalProperties": {}
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"invoiceCount": {
"type": "number",
"description": "invoiceCount. Number."
},
"contractCount": {
"type": "number",
"description": "contractCount. Number."
},
"documentCount": {
"type": "number",
"description": "documentCount. Number."
},
"publicSources": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "publicSources. Array."
},
"amountInvented": {
"type": "boolean",
"description": "amountInvented. Boolean."
},
"apiKeyRequired": {
"type": "boolean",
"description": "apiKeyRequired. Boolean."
},
"creditDecision": {
"type": "boolean",
"description": "creditDecision. Boolean."
},
"assignmentCount": {
"type": "number",
"description": "assignmentCount. Number."
},
"paidProviderUsed": {
"type": "boolean",
"description": "paidProviderUsed. Boolean."
},
"financingApproved": {
"type": "boolean",
"description": "financingApproved. Boolean."
},
"discrepancyInvented": {
"type": "boolean",
"description": "discrepancyInvented. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Build trade finance evidence package",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}