{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-financial-fraud-risk-response-dto-schema.json", "title": "FinancialFraudRiskResponseDto", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/fis-financialfraudrisk-api-openapi.yml#/components/schemas/FinancialFraudRiskResponseDto", "type": "object", "properties": { "count": { "type": "number", "readOnly": true, "format": "integer" }, "reports": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/FinancialFraudRiskReport" } } }, "required": [ "count", "reports" ], "$defs": { "FinancialFraudRiskData": { "type": "object", "properties": { "benfordLawScore": { "type": "number", "format": "float", "readOnly": true }, "outlierScore": { "type": "number", "format": "float", "readOnly": true }, "outlierRatio": { "type": "number", "format": "float", "readOnly": true }, "outlierTransactions": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/OutlierTransactions" } }, "transactionKeywords": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/TransactionKeywords" } }, "transactionsSectionStats": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/TransactionsSectionStats" } }, "transactionPatterns": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/TransactionPatterns" } }, "currentRatioDelta": { "type": "number", "format": "float", "readOnly": true }, "quickRatioDelta": { "type": "number", "format": "float", "readOnly": true }, "debtToEquityRatioDelta": { "type": "number", "format": "float", "readOnly": true }, "netProfitMarginRatioDelta": { "type": "number", "format": "float", "readOnly": true } }, "required": [ "benfordLawScore" ] }, "FinancialFraudRiskReport": { "type": "object", "properties": { "meta": { "$ref": "#/$defs/FinancialFraudRiskReportMetaData" }, "data": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/FinancialFraudRiskData" } } }, "required": [ "meta", "data" ] }, "FinancialFraudRiskReportMetaData": { "type": "object", "properties": { "reportId": { "type": "string", "readOnly": true }, "serviceName": { "type": "string", "readOnly": true, "enum": [ "quickbooks", "xero", "freshbooks", "quickbooksDesktop", "sageIntacct", "sageBusinessCloud", "oracleNetsuite", "dynamicsBusinessCentral", "dynamics365Finance", "wave", "zohoBooks", "myob" ] }, "businessName": { "type": "string", "readOnly": true }, "startDate": { "type": "string", "readOnly": true, "format": "date-time" }, "endDate": { "type": "string", "readOnly": true, "format": "date-time" }, "createdAt": { "type": "string", "readOnly": true, "format": "date-time" }, "updatedAt": { "type": "string", "readOnly": false, "format": "date-time" } }, "required": [ "reportId", "serviceName", "businessName", "startDate", "endDate", "createdAt", "updatedAt" ] }, "OutlierTransactions": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true } }, "required": [ "id" ] }, "TransactionKeywords": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "bill", "billPayment", "creditNote", "deposit", "expense", "estimate", "inventoryAdjustment", "invoice", "journalEntry", "other", "payment", "payroll", "purchaseOrder", "refund", "transfer", "taxPayment", "taxAdjustment", "taxRefund", "taxReversal", "unknown", "vendorCreditNote" ], "readOnly": true }, "count": { "type": "number", "format": "integer", "readOnly": true } }, "required": [ "type", "count" ] }, "TransactionPatterns": { "type": "object", "properties": { "repetitionPattern": { "type": "string", "readOnly": true }, "count": { "type": "number", "readOnly": true } }, "required": [ "repetitionPattern", "count" ] }, "TransactionsSectionStats": { "type": "object", "properties": { "section": { "type": "string", "readOnly": true }, "count": { "type": "number", "readOnly": true, "format": "integer" }, "sdev": { "type": "number", "readOnly": true, "format": "float" } }, "required": [ "section", "count", "sdev" ] } } }