Input Schema
{
"body": {
"historicalInvoices": [
{
"bankAccount": "US987654321",
"currency": "USD",
"invoiceDate": "2026-06-18",
"invoiceId": "AP-7781",
"invoiceNumber": "INV-2026-0981",
"lineItems": [
{
"description": "Consulting services",
"quantity": 9.5,
"total": 8740,
"unitPrice": 920
}
],
"paymentTermsDays": 30,
"status": "paid",
"supplierId": "SUP-291",
"supplierName": "ABC Trading LLC",
"total": 9177
},
{
"bankAccount": "US987654321",
"currency": "USD",
"invoiceDate": "2026-07-19",
"invoiceId": "AP-7902",
"invoiceNumber": "INV-2026-1002",
"lineItems": [
{
"description": "Consulting services",
"quantity": 10.25,
"total": 9430,
"unitPrice": 920
}
],
"paymentTermsDays": 30,
"status": "paid",
"supplierId": "SUP-291",
"supplierName": "ABC Trading LLC",
"total": 9901.5
},
{
"bankAccount": "US987654321",
"currency": "USD",
"invoiceDate": "2026-08-20",
"invoiceId": "AP-8015",
"invoiceNumber": "INV-2026-1021",
"lineItems": [
{
"description": "Consulting services",
"quantity": 9,
"total": 8280,
"unitPrice": 920
}
],
"paymentTermsDays": 30,
"status": "paid",
"supplierId": "SUP-291",
"supplierName": "ABC Trading LLC",
"total": 8694
},
{
"bankAccount": "US987654321",
"currency": "USD",
"invoiceDate": "2026-09-18",
"invoiceId": "AP-8117",
"invoiceNumber": "INV-2026-1043",
"paymentTermsDays": 30,
"status": "pending",
"supplierId": "SUP-291",
"supplierName": "ABC Trading LLC",
"total": 9660
}
],
"invoice": {
"bankAccount": "US123456789",
"currency": "USD",
"dueDate": "2026-10-20",
"invoiceDate": "2026-09-20",
"invoiceNumber": "INV-2026-1043-A",
"lineItems": [
{
"description": "Consulting services",
"quantity": 10,
"taxRate": 5,
"total": 9200,
"unitPrice": 920
}
],
"paymentTermsDays": 30,
"poNumber": "PO-2026-818",
"subtotal": 9200,
"supplierId": "SUP-291",
"supplierName": "ABC Trading LLC",
"tax": 460,
"total": 9660
},
"options": {
"asOfDate": "2026-09-23"
},
"purchaseOrder": {
"currency": "USD",
"poNumber": "PO-2026-818",
"status": "open",
"supplierId": "SUP-455",
"supplierName": "Delta Office Supplies Ltd",
"totalAmount": 20000
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"anomalies": [
{
"code": "POSSIBLE_DUPLICATE",
"confidence": 0.9,
"evidence": {},
"explanation": "A same-supplier invoice with the same amount and a slightly altered invoice number (e.g. suff...",
"field": "invoiceNumber",
"severity": "high"
}
],
"anomalyCount": 4,
"asOfDate": "2026-09-23",
"checkedAt": "2026-09-23T00:00:00.000Z",
"contextUsed": {
"approvalContext": false,
"contract": false,
"historicalInvoices": 4,
"paymentHistory": 0,
"purchaseOrder": true,
"supplierHistoryMatched": 4,
"supplierProfile": false
},
"dataCompleteness": {
"missingRecommendedFields": [],
"missingRequiredFields": []
},
"decision": "hold",
"financialChecks": {
"computed": {
"expectedTax": 460,
"expectedTotal": 9660,
"lineItemsSum": 9200,
"tolerance": 0.01
},
"lineTotalsValid": true,
"subtotalValid": true,
"taxValid": true,
"totalValid": true
},
"invoiceSummary": {
"bankAccountMasked": "****6789",
"currency": "USD",
"dueDate": "2026-10-20",
"invoiceDate": "2026-09-20",
"invoiceNumber": "INV-2026-1043-A",
"lineItemCount": 1,
"supplierId": "SUP-291",
"supplierName": "ABC Trading LLC",
"total": 9660
},
"limitations": [
"The capability identifies invoice anomalies and risk indicators. It does not independently es..."
],
"mode": "context_aware",
"recommendedAction": "Compare this invoice with the matched invoice and supporting documents to rule out a duplicat...",
"riskLevel": "critical",
"riskScore": 100,
"scoring": {
"cappedBySeverity": true,
"components": [
{
"basePoints": 40,
"code": "POSSIBLE_DUPLICATE",
"confidence": 0.9,
"points": 36,
"severity": "high"
}
],
"escalationBonus": 26,
"escalationReasons": [
"3 independent risk families with ≥ medium anomalies (duplicate, payment_details, po_contract)..."
],
"highSeverityPoints": 117,
"levelBands": {
"critical": "65-100",
"high": "40-64",
"low": "0-14",
"medium": "15-39"
},
"lowSeverityPoints": 4.3,
"mediumSeverityPoints": 0,
"model": "iac-1.0.0",
"rawScore": 147.3
},
"summary": "4 anomalies detected (POSSIBLE_DUPLICATE, BANK_ACCOUNT_CHANGED, PO_MISMATCH, INVOICE_NUMBER_A..."
},
"type": "json"
}