{
  "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": "net",
      "expected": {
        "currency": "GBP",
        "matched": [
          {
            "productKey": "[\"Fable Foods\",\"CUP\",\"each\"]",
            "supplier": "Fable Foods",
            "itemCode": "CUP",
            "unit": "each",
            "q0": "20.00",
            "c0": "240.00",
            "p0": "12.00",
            "q1": "18.00",
            "c1": "237.60",
            "p1": "13.20",
            "pctChange": "10.00",
            "priceEffect": "21.60",
            "quantityEffect": "-24.00",
            "evidence": {
              "baselineRows": [
                "b"
              ],
              "currentRows": [
                "c",
                "credit"
              ]
            }
          }
        ],
        "added": [],
        "removed": [],
        "agreedVariances": [],
        "exclusions": [],
        "reconciliation": {
          "totalBaseline": "240.00",
          "totalCurrent": "237.60",
          "totalChange": "-2.40",
          "matchedPriceEffect": "21.60",
          "matchedQuantityEffect": "-24.00",
          "addedSpend": "0.00",
          "removedSpend": "0.00",
          "excludedSpend": "0.00",
          "residual": "0.00"
        },
        "coverage": {
          "rowsTotal": 3,
          "rowsIncluded": 3,
          "rowsExcluded": 0,
          "spendIncludedPct": "100.00"
        }
      }
    },
    {
      "name": "exclude",
      "request": {
        "policy": {
          "creditNotes": "exclude",
          "varianceThresholdPct": "0",
          "decimals": 2
        }
      },
      "expected": {
        "currency": "GBP",
        "matched": [
          {
            "productKey": "[\"Fable Foods\",\"CUP\",\"each\"]",
            "supplier": "Fable Foods",
            "itemCode": "CUP",
            "unit": "each",
            "q0": "20.00",
            "c0": "240.00",
            "p0": "12.00",
            "q1": "20.00",
            "c1": "264.00",
            "p1": "13.20",
            "pctChange": "10.00",
            "priceEffect": "24.00",
            "quantityEffect": "0.00",
            "evidence": {
              "baselineRows": [
                "b"
              ],
              "currentRows": [
                "c"
              ]
            }
          }
        ],
        "added": [],
        "removed": [],
        "agreedVariances": [],
        "exclusions": [
          {
            "rowId": "credit",
            "reason": "credit note excluded by policy"
          }
        ],
        "reconciliation": {
          "totalBaseline": "240.00",
          "totalCurrent": "264.00",
          "totalChange": "24.00",
          "matchedPriceEffect": "24.00",
          "matchedQuantityEffect": "0.00",
          "addedSpend": "0.00",
          "removedSpend": "0.00",
          "excludedSpend": "-26.40",
          "residual": "0.00"
        },
        "coverage": {
          "rowsTotal": 3,
          "rowsIncluded": 2,
          "rowsExcluded": 1,
          "spendIncludedPct": "95.02"
        }
      }
    }
  ]
}
