{
  "periods": {
    "baseline": {
      "from": "2026-01-01",
      "to": "2026-01-31"
    },
    "current": {
      "from": "2026-02-01",
      "to": "2026-02-28"
    }
  },
  "generatedAt": "2026-10-29T12:00:00Z",
  "scenarios": [
    {
      "name": "inclusive effective-date boundaries",
      "request": {
        "mode": "agreed"
      },
      "expected": {
        "currency": "GBP",
        "matched": [],
        "added": [],
        "removed": [],
        "agreedVariances": [
          {
            "rowId": "jan",
            "productKey": "[\"Fable Foods\",\"CUP\",\"each\"]",
            "invoicedUnitPrice": "12.00",
            "agreedUnitPrice": "11.00",
            "agreement": {
              "supplier": "Fable Foods",
              "itemCode": "CUP",
              "unit": "each",
              "netUnitPrice": "11.00",
              "effectiveFrom": "2026-01-01",
              "effectiveTo": "2026-01-31"
            },
            "variance": "1.00",
            "variancePct": "9.09"
          },
          {
            "rowId": "feb",
            "productKey": "[\"Fable Foods\",\"CUP\",\"each\"]",
            "invoicedUnitPrice": "13.20",
            "agreedUnitPrice": "12.00",
            "agreement": {
              "supplier": "Fable Foods",
              "itemCode": "CUP",
              "unit": "each",
              "netUnitPrice": "12.00",
              "effectiveFrom": "2026-02-01",
              "effectiveTo": null
            },
            "variance": "1.20",
            "variancePct": "10.00"
          }
        ],
        "exclusions": [
          {
            "rowId": "old",
            "reason": "no agreement in force"
          }
        ],
        "reconciliation": {
          "totalBaseline": "460.00",
          "totalCurrent": "504.00",
          "totalChange": "44.00",
          "matchedPriceEffect": "44.00",
          "matchedQuantityEffect": "0.00",
          "addedSpend": "0.00",
          "removedSpend": "0.00",
          "excludedSpend": "100.00",
          "residual": "0.00"
        },
        "coverage": {
          "rowsTotal": 3,
          "rowsIncluded": 2,
          "rowsExcluded": 1,
          "spendIncludedPct": "83.44"
        }
      }
    },
    {
      "name": "strict absolute threshold",
      "request": {
        "mode": "agreed",
        "policy": {
          "creditNotes": "net",
          "varianceThresholdPct": "10",
          "decimals": 2
        }
      },
      "expected": {
        "currency": "GBP",
        "matched": [],
        "added": [],
        "removed": [],
        "agreedVariances": [],
        "exclusions": [
          {
            "rowId": "old",
            "reason": "no agreement in force"
          }
        ],
        "reconciliation": {
          "totalBaseline": "460.00",
          "totalCurrent": "504.00",
          "totalChange": "44.00",
          "matchedPriceEffect": "44.00",
          "matchedQuantityEffect": "0.00",
          "addedSpend": "0.00",
          "removedSpend": "0.00",
          "excludedSpend": "100.00",
          "residual": "0.00"
        },
        "coverage": {
          "rowsTotal": 3,
          "rowsIncluded": 2,
          "rowsExcluded": 1,
          "spendIncludedPct": "83.44"
        }
      }
    }
  ]
}
