{
  "workflow": "reconcile-supplier-statement",
  "summary": {
    "score": 50,
    "verdict": "REJECT",
    "headerDiscrepancyCount": 0,
    "lineDiscrepancyCount": 1,
    "netLineItemDiscrepancy": -450,
    "supplierLinesReviewed": 3,
    "ledgerLinesReviewed": 4,
    "issuesFlagged": 1,
    "matchCounts": {
      "match": 3,
      "partial_match": 0,
      "no_match": 1
    },
    "confidenceDistribution": {
      "high": 0,
      "medium": 0,
      "low": 1
    }
  },
  "score": 50,
  "verdict": "REJECT",
  "headerDiscrepancyCount": 0,
  "lineDiscrepancyCount": 1,
  "netLineItemDiscrepancy": -450,
  "headerDiscrepancies": [],
  "lineDiscrepancies": [
    {
      "id": "disc-214025237435272401",
      "type": "missing_credit_note",
      "matchStatus": "no_match",
      "confidence": "low",
      "reviewRequired": true,
      "reasons": [
        "no_corresponding_statement_item"
      ],
      "statementItem": null,
      "ledgerItem": {
        "id": "contract-0-3",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-25 CN-0042 Returned accessories -450.00",
        "invoiceRef": "CN-0042",
        "invoiceRefNorm": "CN0042",
        "date": "2026-08-25",
        "amount": -450,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": "CN-0042",
        "paymentRef": null,
        "confidence": "high",
        "description": "Returned accessories",
        "descriptionNorm": "RETURNED ACCESSORIES",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": -450,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      },
      "createdAt": "2026-09-26T09:52:59.000684Z"
    }
  ],
  "lineItems": {
    "statement": [
      {
        "id": "baseline-0-0",
        "sourceRole": "baseline",
        "sourcePage": null,
        "rawText": "2026-08-01 INV-1001 Office equipment 7,800.00",
        "invoiceRef": "INV-1001",
        "invoiceRefNorm": "INV1001",
        "date": "2026-08-01",
        "amount": 7800,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": null,
        "paymentRef": null,
        "confidence": "high",
        "description": "Office equipment",
        "descriptionNorm": "OFFICE EQUIPMENT",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": 7800,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      },
      {
        "id": "baseline-0-1",
        "sourceRole": "baseline",
        "sourcePage": null,
        "rawText": "2026-08-12 INV-1002 Installation 3,000.00",
        "invoiceRef": "INV-1002",
        "invoiceRefNorm": "INV1002",
        "date": "2026-08-12",
        "amount": 3000,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": null,
        "paymentRef": null,
        "confidence": "high",
        "description": "Installation",
        "descriptionNorm": "INSTALLATION",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": 3000,
        "sourcePageVerified": false,
        "kind": "service",
        "discountAmount": 0
      },
      {
        "id": "baseline-0-2",
        "sourceRole": "baseline",
        "sourcePage": null,
        "rawText": "2026-08-20 INV-1003 Accessories 1,650.00",
        "invoiceRef": "INV-1003",
        "invoiceRefNorm": "INV1003",
        "date": "2026-08-20",
        "amount": 1650,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": null,
        "paymentRef": null,
        "confidence": "high",
        "description": "Accessories",
        "descriptionNorm": "ACCESSORIES",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": 1650,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      }
    ],
    "ledger": [
      {
        "id": "contract-0-0",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-01 INV-1001 Office equipment 7,800.00",
        "invoiceRef": "INV-1001",
        "invoiceRefNorm": "INV1001",
        "date": "2026-08-01",
        "amount": 7800,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": null,
        "paymentRef": null,
        "confidence": "high",
        "description": "Office equipment",
        "descriptionNorm": "OFFICE EQUIPMENT",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": 7800,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      },
      {
        "id": "contract-0-1",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-12 INV-1002 Installation 3,000.00",
        "invoiceRef": "INV-1002",
        "invoiceRefNorm": "INV1002",
        "date": "2026-08-12",
        "amount": 3000,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": null,
        "paymentRef": null,
        "confidence": "high",
        "description": "Installation",
        "descriptionNorm": "INSTALLATION",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": 3000,
        "sourcePageVerified": false,
        "kind": "service",
        "discountAmount": 0
      },
      {
        "id": "contract-0-2",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-20 INV-1003 Accessories 1,650.00",
        "invoiceRef": "INV-1003",
        "invoiceRefNorm": "INV1003",
        "date": "2026-08-20",
        "amount": 1650,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": null,
        "paymentRef": null,
        "confidence": "high",
        "description": "Accessories",
        "descriptionNorm": "ACCESSORIES",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": 1650,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      },
      {
        "id": "contract-0-3",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-25 CN-0042 Returned accessories -450.00",
        "invoiceRef": "CN-0042",
        "invoiceRefNorm": "CN0042",
        "date": "2026-08-25",
        "amount": -450,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": "CN-0042",
        "paymentRef": null,
        "confidence": "high",
        "description": "Returned accessories",
        "descriptionNorm": "RETURNED ACCESSORIES",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": -450,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      }
    ]
  },
  "headers": {
    "statement": {
      "documentNumber": null,
      "vendorName": "Example Supplies Ltd",
      "vendorAddress": null,
      "vendorTaxId": null,
      "counterpartyName": "Example Studio Ltd",
      "counterpartyAddress": null,
      "counterpartyTaxId": null,
      "poRef": null,
      "currency": "EUR",
      "deliveryPoint": null,
      "documentDate": "2026-08-31",
      "netTotal": 12450,
      "taxTotal": null,
      "grossTotal": 12450,
      "paymentTerms": null
    },
    "ledger": {
      "documentNumber": null,
      "vendorName": "Example Supplies Ltd",
      "vendorAddress": null,
      "vendorTaxId": null,
      "counterpartyName": "Example Studio Ltd",
      "counterpartyAddress": null,
      "counterpartyTaxId": null,
      "poRef": null,
      "currency": "EUR",
      "deliveryPoint": null,
      "documentDate": "2026-08-31",
      "netTotal": null,
      "taxTotal": null,
      "grossTotal": null,
      "paymentTerms": null
    }
  },
  "discrepancies": [
    {
      "id": "disc-214025237435272401",
      "type": "missing_credit_note",
      "matchStatus": "no_match",
      "confidence": "low",
      "reviewRequired": true,
      "reasons": [
        "no_corresponding_statement_item"
      ],
      "statementItem": null,
      "ledgerItem": {
        "id": "contract-0-3",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-25 CN-0042 Returned accessories -450.00",
        "invoiceRef": "CN-0042",
        "invoiceRefNorm": "CN0042",
        "date": "2026-08-25",
        "amount": -450,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": "CN-0042",
        "paymentRef": null,
        "confidence": "high",
        "description": "Returned accessories",
        "descriptionNorm": "RETURNED ACCESSORIES",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": -450,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      },
      "createdAt": "2026-09-26T09:52:59.000684Z"
    }
  ],
  "disputeCandidates": [
    {
      "id": "disc-214025237435272401",
      "type": "missing_credit_note",
      "matchStatus": "no_match",
      "confidence": "low",
      "reviewRequired": true,
      "reasons": [
        "no_corresponding_statement_item"
      ],
      "statementItem": null,
      "ledgerItem": {
        "id": "contract-0-3",
        "sourceRole": "contract",
        "sourcePage": null,
        "rawText": "2026-08-25 CN-0042 Returned accessories -450.00",
        "invoiceRef": "CN-0042",
        "invoiceRefNorm": "CN0042",
        "date": "2026-08-25",
        "amount": -450,
        "currency": "EUR",
        "status": "unknown",
        "creditNoteRef": "CN-0042",
        "paymentRef": null,
        "confidence": "high",
        "description": "Returned accessories",
        "descriptionNorm": "RETURNED ACCESSORIES",
        "quantity": null,
        "unit": null,
        "unitPrice": null,
        "lineTotal": -450,
        "sourcePageVerified": false,
        "kind": "goods",
        "discountAmount": 0
      },
      "createdAt": "2026-09-26T09:52:59.000684Z"
    }
  ],
  "sourceRoles": {
    "statement": "baseline",
    "ledger": "contract"
  }
}
