{
  "kit": "restaurant-catering",
  "title": "Willow Event Kitchen",
  "code": "CAT",
  "asOf": "2026-09-08",
  "currency": "CAD",
  "taxName": "GST",
  "taxRate": "0.05",
  "buyer": {
    "buyer_id": "BUY-CAT",
    "name": "Willow Event Kitchen",
    "street": "5 Willow Court",
    "city": "Halifax",
    "region": "NS",
    "postcode": "B3K 6F6",
    "country": "CA",
    "tax_id": "CA-BN-200000006",
    "gln": "0626004000015"
  },
  "suppliers": {
    "SUP-01": {
      "supplier_id": "SUP-01",
      "name": "Alder Wholesale",
      "item_prefix": "AW",
      "street": "41 Alder Way",
      "city": "Halifax",
      "region": "NS",
      "postcode": "B3H 1A1",
      "country": "CA",
      "tax_id": "CA-BN-100000001",
      "gln": "0614141000012",
      "terms": "Net 30",
      "iban_label": "Transit 00011 Institution 001 Account 1000001"
    },
    "SUP-02": {
      "supplier_id": "SUP-02",
      "name": "Harbour Food Supply",
      "item_prefix": "HF",
      "street": "8 Harbour Road",
      "city": "Halifax",
      "region": "NS",
      "postcode": "B3J 2B2",
      "country": "CA",
      "tax_id": "CA-BN-100000002",
      "gln": "0614141000029",
      "terms": "Net 30",
      "iban_label": "Transit 00022 Institution 002 Account 2000002"
    }
  },
  "items": {
    "ING-01": {
      "ingredient_id": "ING-01",
      "name": "Basmati Rice",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-02": {
      "ingredient_id": "ING-02",
      "name": "Chicken Breast",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-03": {
      "ingredient_id": "ING-03",
      "name": "Chickpeas",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-04": {
      "ingredient_id": "ING-04",
      "name": "Carrots",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-05": {
      "ingredient_id": "ING-05",
      "name": "Yogurt",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-06": {
      "ingredient_id": "ING-06",
      "name": "Service Tray",
      "uom": "each",
      "uom_code_unece": "H87",
      "uom_code_x12": "EA",
      "case_pack_quantity": 24
    }
  },
  "priceList": [
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.32",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "23.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.23"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.36",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "23.60",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.27"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.40",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "24.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.30"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.44",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "24.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.34"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "9.83",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "98.30",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.44"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "9.71",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "97.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.32"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "9.59",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "95.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.21"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "9.47",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "94.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.09"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.60",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "26.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.50"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.60",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "26.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.50"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.60",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "26.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.50"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.60",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "26.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.50"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.58",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.52"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.61",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "16.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.55"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.64",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "16.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.57"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.66",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "16.60",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.59"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "3.37",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "33.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.24"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "3.33",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "33.30",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.20"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "3.29",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "32.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.16"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "3.25",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "32.50",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.12"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.20",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "28.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.15"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.20",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "28.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.15"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.20",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "28.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.15"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.20",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "28.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.15"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.16",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "21.60",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.07"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.19",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "21.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.10"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.23",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "22.30",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.14"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141501000",
      "ingredient_id": "ING-01",
      "description": "Basmati Rice",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.27",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "22.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.18"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "9.34",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "93.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "8.97"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "9.22",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "92.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "8.85"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "9.11",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "91.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "8.75"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141502000",
      "ingredient_id": "ING-02",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "8.99",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "89.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "8.63"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.42",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "24.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.32"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.42",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "24.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.32"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.42",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "24.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.32"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141503000",
      "ingredient_id": "ING-03",
      "description": "Chickpeas",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.42",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "24.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.32"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.50",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.44"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.53",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.30",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.47"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.55",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.50",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.49"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141504000",
      "ingredient_id": "ING-04",
      "description": "Carrots",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.58",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.52"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "3.14",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "31.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.01"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "3.10",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "31.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.98"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "3.06",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "30.60",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.94"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141505000",
      "ingredient_id": "ING-05",
      "description": "Yogurt",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "3.02",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "30.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.90"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "27.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.09"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "27.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.09"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "27.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.09"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141506000",
      "ingredient_id": "ING-06",
      "description": "Service Tray",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "27.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.09"
    }
  ],
  "purchaseOrders": [
    {
      "po_number": "PO-CAT-1001",
      "po_date": "2026-08-05",
      "supplier_id": "SUP-01",
      "buyer_id": "BUY-CAT",
      "ship_to_location_id": "LOC-01",
      "ship_to_location_name": "Main kitchen",
      "requested_delivery_date": "2026-08-07",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "supplier_item_code": "AW-ING-01",
          "gtin": "0614141501000",
          "description": "Basmati Rice",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 17,
          "unit_price": "2.32",
          "line_net": "39.44",
          "tax_rate": "0.05",
          "tax_amount": "1.97"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-02",
          "supplier_item_code": "AW-ING-02",
          "gtin": "0614141502000",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 20,
          "unit_price": "9.83",
          "line_net": "196.60",
          "tax_rate": "0.05",
          "tax_amount": "9.83"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-03",
          "supplier_item_code": "AW-ING-03",
          "gtin": "0614141503000",
          "description": "Chickpeas",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 23,
          "unit_price": "2.60",
          "line_net": "59.80",
          "tax_rate": "0.05",
          "tax_amount": "2.99"
        }
      ],
      "net_total": "295.84",
      "tax_total": "14.79",
      "gross_total": "310.63"
    },
    {
      "po_number": "PO-CAT-1002",
      "po_date": "2026-08-12",
      "supplier_id": "SUP-02",
      "buyer_id": "BUY-CAT",
      "ship_to_location_id": "LOC-01",
      "ship_to_location_name": "Main kitchen",
      "requested_delivery_date": "2026-08-14",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "supplier_item_code": "HF-ING-01",
          "gtin": "0614141501000",
          "description": "Basmati Rice",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 19,
          "unit_price": "2.19",
          "line_net": "41.61",
          "tax_rate": "0.05",
          "tax_amount": "2.08"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-03",
          "supplier_item_code": "HF-ING-03",
          "gtin": "0614141503000",
          "description": "Chickpeas",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 25,
          "unit_price": "2.42",
          "line_net": "60.50",
          "tax_rate": "0.05",
          "tax_amount": "3.03"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-05",
          "supplier_item_code": "HF-ING-05",
          "gtin": "0614141505000",
          "description": "Yogurt",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 31,
          "unit_price": "3.10",
          "line_net": "96.10",
          "tax_rate": "0.05",
          "tax_amount": "4.81"
        }
      ],
      "net_total": "198.21",
      "tax_total": "9.92",
      "gross_total": "208.13"
    },
    {
      "po_number": "PO-CAT-1003",
      "po_date": "2026-08-19",
      "supplier_id": "SUP-01",
      "buyer_id": "BUY-CAT",
      "ship_to_location_id": "LOC-01",
      "ship_to_location_name": "Main kitchen",
      "requested_delivery_date": "2026-08-21",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-04",
          "supplier_item_code": "AW-ING-04",
          "gtin": "0614141504000",
          "description": "Carrots",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 30,
          "unit_price": "1.64",
          "line_net": "49.20",
          "tax_rate": "0.05",
          "tax_amount": "2.46"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-05",
          "supplier_item_code": "AW-ING-05",
          "gtin": "0614141505000",
          "description": "Yogurt",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 33,
          "unit_price": "3.29",
          "line_net": "108.57",
          "tax_rate": "0.05",
          "tax_amount": "5.43"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "supplier_item_code": "AW-ING-06",
          "gtin": "0614141506000",
          "description": "Service Tray",
          "uom": "each",
          "uom_code": "H87",
          "ordered_quantity": 36,
          "unit_price": "1.20",
          "line_net": "43.20",
          "tax_rate": "0.05",
          "tax_amount": "2.16"
        }
      ],
      "net_total": "200.97",
      "tax_total": "10.05",
      "gross_total": "211.02"
    },
    {
      "po_number": "PO-CAT-1004",
      "po_date": "2026-08-26",
      "supplier_id": "SUP-02",
      "buyer_id": "BUY-CAT",
      "ship_to_location_id": "LOC-01",
      "ship_to_location_name": "Main kitchen",
      "requested_delivery_date": "2026-08-28",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-02",
          "supplier_item_code": "HF-ING-02",
          "gtin": "0614141502000",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 20,
          "unit_price": "8.99",
          "line_net": "179.80",
          "tax_rate": "0.05",
          "tax_amount": "8.99"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-04",
          "supplier_item_code": "HF-ING-04",
          "gtin": "0614141504000",
          "description": "Carrots",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 26,
          "unit_price": "1.58",
          "line_net": "41.08",
          "tax_rate": "0.05",
          "tax_amount": "2.05"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "supplier_item_code": "HF-ING-06",
          "gtin": "0614141506000",
          "description": "Service Tray",
          "uom": "each",
          "uom_code": "H87",
          "ordered_quantity": 32,
          "unit_price": "1.14",
          "line_net": "36.48",
          "tax_rate": "0.05",
          "tax_amount": "1.82"
        }
      ],
      "net_total": "257.36",
      "tax_total": "12.86",
      "gross_total": "270.22"
    }
  ],
  "goodsReceived": [
    {
      "grn_number": "GRN-CAT-2001",
      "grn_date": "2026-08-07",
      "delivery_note_number": "DN-CAT-3001",
      "po_number": "PO-CAT-1001",
      "supplier_id": "SUP-01",
      "received_at_location_id": "LOC-01",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-01",
          "delivered_ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "ordered_quantity": 17,
          "delivered_quantity": 17,
          "returned_quantity": 0,
          "accepted_quantity": 17,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-02",
          "delivered_ingredient_id": "ING-02",
          "description": "Chicken Breast",
          "uom": "kg",
          "ordered_quantity": 20,
          "delivered_quantity": 20,
          "returned_quantity": 0,
          "accepted_quantity": 20,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-03",
          "delivered_ingredient_id": "ING-03",
          "description": "Chickpeas",
          "uom": "kg",
          "ordered_quantity": 23,
          "delivered_quantity": 23,
          "returned_quantity": 0,
          "accepted_quantity": 23,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        }
      ]
    },
    {
      "grn_number": "GRN-CAT-2002",
      "grn_date": "2026-08-14",
      "delivery_note_number": "DN-CAT-3002",
      "po_number": "PO-CAT-1002",
      "supplier_id": "SUP-02",
      "received_at_location_id": "LOC-01",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-01",
          "delivered_ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "ordered_quantity": 19,
          "delivered_quantity": 19,
          "returned_quantity": 0,
          "accepted_quantity": 19,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-03",
          "delivered_ingredient_id": "ING-03",
          "description": "Chickpeas",
          "uom": "kg",
          "ordered_quantity": 25,
          "delivered_quantity": 21,
          "returned_quantity": 0,
          "accepted_quantity": 21,
          "line_status": "short delivery",
          "note": "4 kg ordered were not on the vehicle; the driver recorded a short delivery."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-05",
          "delivered_ingredient_id": "ING-05",
          "description": "Yogurt",
          "uom": "kg",
          "ordered_quantity": 31,
          "delivered_quantity": 31,
          "returned_quantity": 0,
          "accepted_quantity": 31,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        }
      ]
    },
    {
      "grn_number": "GRN-CAT-2003",
      "grn_date": "2026-08-21",
      "delivery_note_number": "DN-CAT-3003",
      "po_number": "PO-CAT-1003",
      "supplier_id": "SUP-01",
      "received_at_location_id": "LOC-01",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-04",
          "delivered_ingredient_id": "ING-04",
          "description": "Carrots",
          "uom": "kg",
          "ordered_quantity": 30,
          "delivered_quantity": 30,
          "returned_quantity": 0,
          "accepted_quantity": 30,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-05",
          "delivered_ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "ordered_quantity": 33,
          "delivered_quantity": 33,
          "returned_quantity": 0,
          "accepted_quantity": 33,
          "line_status": "substituted",
          "note": "Ordered item ING-05 was out of stock; the supplier substituted ING-01 at the same quantity."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-06",
          "delivered_ingredient_id": "ING-06",
          "description": "Service Tray",
          "uom": "each",
          "ordered_quantity": 36,
          "delivered_quantity": 36,
          "returned_quantity": 0,
          "accepted_quantity": 36,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        }
      ]
    },
    {
      "grn_number": "GRN-CAT-2004",
      "grn_date": "2026-08-28",
      "delivery_note_number": "DN-CAT-3004",
      "po_number": "PO-CAT-1004",
      "supplier_id": "SUP-02",
      "received_at_location_id": "LOC-01",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-02",
          "delivered_ingredient_id": "ING-02",
          "description": "Chicken Breast",
          "uom": "kg",
          "ordered_quantity": 20,
          "delivered_quantity": 20,
          "returned_quantity": 0,
          "accepted_quantity": 20,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-04",
          "delivered_ingredient_id": "ING-04",
          "description": "Carrots",
          "uom": "kg",
          "ordered_quantity": 26,
          "delivered_quantity": 26,
          "returned_quantity": 0,
          "accepted_quantity": 26,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-06",
          "delivered_ingredient_id": "ING-06",
          "description": "Service Tray",
          "uom": "each",
          "ordered_quantity": 32,
          "delivered_quantity": 32,
          "returned_quantity": 3,
          "accepted_quantity": 29,
          "line_status": "part returned",
          "note": "3 each were rejected on arrival for condition and returned with the driver."
        }
      ]
    }
  ],
  "invoices": [
    {
      "invoice_number": "INV-CAT-5001",
      "invoice_date": "2026-08-07",
      "due_date": "2026-09-06",
      "supplier_id": "SUP-01",
      "po_number": "PO-CAT-1001",
      "grn_number": "GRN-CAT-2001",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 17,
          "unit_price": "2.32",
          "line_net": "39.44",
          "tax_rate": "0.05",
          "tax_amount": "1.97"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-02",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 20,
          "unit_price": "9.83",
          "line_net": "196.60",
          "tax_rate": "0.05",
          "tax_amount": "9.83"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-03",
          "description": "Chickpeas",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 23,
          "unit_price": "2.60",
          "line_net": "59.80",
          "tax_rate": "0.05",
          "tax_amount": "2.99"
        }
      ],
      "net_total": "295.84",
      "line_tax_sum": "14.79",
      "document_level_tax": "14.79",
      "stated_tax_total": "14.79",
      "total_due": "310.63",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-14",
      "due_date": "2026-09-13",
      "supplier_id": "SUP-02",
      "po_number": "PO-CAT-1002",
      "grn_number": "GRN-CAT-2002",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 19,
          "unit_price": "2.19",
          "line_net": "41.61",
          "tax_rate": "0.05",
          "tax_amount": "2.08"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-03",
          "description": "Chickpeas",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 25,
          "unit_price": "2.42",
          "line_net": "60.50",
          "tax_rate": "0.05",
          "tax_amount": "3.03"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-05",
          "description": "Yogurt",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 31,
          "unit_price": "3.10",
          "line_net": "96.10",
          "tax_rate": "0.05",
          "tax_amount": "4.81"
        }
      ],
      "net_total": "198.21",
      "line_tax_sum": "9.92",
      "document_level_tax": "9.91",
      "stated_tax_total": "9.92",
      "total_due": "208.13",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-CAT-5003",
      "invoice_date": "2026-08-21",
      "due_date": "2026-09-20",
      "supplier_id": "SUP-01",
      "po_number": "PO-CAT-1003",
      "grn_number": "GRN-CAT-2003",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-04",
          "description": "Carrots",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 30,
          "unit_price": "1.64",
          "line_net": "49.20",
          "tax_rate": "0.05",
          "tax_amount": "2.46"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 33,
          "unit_price": "2.40",
          "line_net": "79.20",
          "tax_rate": "0.05",
          "tax_amount": "3.96"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "description": "Service Tray",
          "uom": "each",
          "uom_code": "H87",
          "invoiced_quantity": 36,
          "unit_price": "1.20",
          "line_net": "43.20",
          "tax_rate": "0.05",
          "tax_amount": "2.16"
        }
      ],
      "net_total": "171.60",
      "line_tax_sum": "8.58",
      "document_level_tax": "8.58",
      "stated_tax_total": "8.59",
      "total_due": "180.19",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-CAT-5004",
      "invoice_date": "2026-08-28",
      "due_date": "2026-09-27",
      "supplier_id": "SUP-02",
      "po_number": "PO-CAT-1004",
      "grn_number": "GRN-CAT-2004",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-02",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 20,
          "unit_price": "8.99",
          "line_net": "179.80",
          "tax_rate": "0.05",
          "tax_amount": "8.99"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-04",
          "description": "Carrots",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 26,
          "unit_price": "1.58",
          "line_net": "41.08",
          "tax_rate": "0.05",
          "tax_amount": "2.05"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "description": "Service Tray",
          "uom": "each",
          "uom_code": "H87",
          "invoiced_quantity": 32,
          "unit_price": "1.14",
          "line_net": "36.48",
          "tax_rate": "0.05",
          "tax_amount": "1.82"
        }
      ],
      "net_total": "257.36",
      "line_tax_sum": "12.86",
      "document_level_tax": "12.87",
      "stated_tax_total": "12.86",
      "total_due": "270.22",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-17",
      "due_date": "2026-09-16",
      "supplier_id": "SUP-02",
      "po_number": "PO-CAT-1002",
      "grn_number": "GRN-CAT-2002",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "description": "Basmati Rice",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 19,
          "unit_price": "2.19",
          "line_net": "41.61",
          "tax_rate": "0.05",
          "tax_amount": "2.08"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-05",
          "description": "Yogurt",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 31,
          "unit_price": "3.10",
          "line_net": "96.10",
          "tax_rate": "0.05",
          "tax_amount": "4.81"
        }
      ],
      "net_total": "137.71",
      "line_tax_sum": "6.89",
      "document_level_tax": "6.89",
      "stated_tax_total": "6.89",
      "total_due": "144.60",
      "is_duplicate_number": true
    }
  ],
  "creditNotes": [
    {
      "credit_note_number": "CN-CAT-7001",
      "credit_note_date": "2026-08-21",
      "supplier_id": "SUP-02",
      "against_invoice_number": "INV-CAT-5002",
      "against_invoice_date": "2026-08-14",
      "po_number": "PO-CAT-1002",
      "grn_number": "GRN-CAT-2002",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-03",
          "description": "Chickpeas",
          "uom": "kg",
          "uom_code": "KGM",
          "credited_quantity": 4,
          "unit_price": "2.42",
          "line_net": "9.68",
          "tax_rate": "0.05",
          "tax_amount": "0.48"
        }
      ],
      "net_total": "9.68",
      "tax_total": "0.48",
      "gross_total": "10.16",
      "reason": "Short delivery recorded on GRN-CAT-2002: 4 kg ordered and invoiced were not delivered.",
      "over_credited_units": 0
    },
    {
      "credit_note_number": "CN-CAT-7002",
      "credit_note_date": "2026-08-29",
      "supplier_id": "SUP-02",
      "against_invoice_number": "INV-CAT-5004",
      "against_invoice_date": "2026-08-28",
      "po_number": "PO-CAT-1004",
      "grn_number": "GRN-CAT-2004",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-06",
          "description": "Service Tray",
          "uom": "each",
          "uom_code": "H87",
          "credited_quantity": 5,
          "unit_price": "1.14",
          "line_net": "5.70",
          "tax_rate": "0.05",
          "tax_amount": "0.29"
        }
      ],
      "net_total": "5.70",
      "tax_total": "0.29",
      "gross_total": "5.99",
      "reason": "Goods returned on GRN-CAT-2004 for condition. This credit is raised for 5 each.",
      "over_credited_units": 2
    }
  ],
  "openingDocuments": {
    "SUP-01": [
      {
        "document_number": "OPN-CAT-9001",
        "document_date": "2026-05-20",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "124.25",
        "supplier_id": "SUP-01"
      },
      {
        "document_number": "OPN-CAT-9002",
        "document_date": "2026-06-18",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "170.85",
        "supplier_id": "SUP-01"
      },
      {
        "document_number": "OPN-CAT-9003",
        "document_date": "2026-07-21",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "217.44",
        "supplier_id": "SUP-01"
      }
    ],
    "SUP-02": [
      {
        "document_number": "OPN-CAT-9004",
        "document_date": "2026-05-28",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "93.66",
        "supplier_id": "SUP-02"
      },
      {
        "document_number": "OPN-CAT-9005",
        "document_date": "2026-06-25",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "124.88",
        "supplier_id": "SUP-02"
      },
      {
        "document_number": "OPN-CAT-9006",
        "document_date": "2026-07-15",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "156.10",
        "supplier_id": "SUP-02"
      }
    ]
  },
  "statements": [
    {
      "statement_number": "STM-CAT-6001",
      "statement_date": "2026-08-31",
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "currency": "CAD",
      "opening_balance": "0.00",
      "rows": [
        {
          "line_no": 1,
          "document_date": "2026-05-20",
          "document_type": "invoice",
          "document_number": "OPN-CAT-9001",
          "reference": "Prior period opening item",
          "debit": "124.25",
          "credit": "0.00",
          "signed_amount": "124.25",
          "balance": "124.25",
          "ageing_bucket": "90-plus"
        },
        {
          "line_no": 2,
          "document_date": "2026-06-18",
          "document_type": "invoice",
          "document_number": "OPN-CAT-9002",
          "reference": "Prior period opening item",
          "debit": "170.85",
          "credit": "0.00",
          "signed_amount": "170.85",
          "balance": "295.10",
          "ageing_bucket": "61-90"
        },
        {
          "line_no": 3,
          "document_date": "2026-07-21",
          "document_type": "invoice",
          "document_number": "OPN-CAT-9003",
          "reference": "Prior period opening item",
          "debit": "217.44",
          "credit": "0.00",
          "signed_amount": "217.44",
          "balance": "512.54",
          "ageing_bucket": "31-60"
        },
        {
          "line_no": 4,
          "document_date": "2026-08-07",
          "document_type": "invoice",
          "document_number": "INV-CAT-5001",
          "reference": "PO-CAT-1001",
          "debit": "310.63",
          "credit": "0.00",
          "signed_amount": "310.63",
          "balance": "823.17",
          "ageing_bucket": "current"
        },
        {
          "line_no": 5,
          "document_date": "2026-08-21",
          "document_type": "invoice",
          "document_number": "INV-CAT-5003",
          "reference": "PO-CAT-1003",
          "debit": "180.19",
          "credit": "0.00",
          "signed_amount": "180.19",
          "balance": "1003.36",
          "ageing_bucket": "current"
        }
      ],
      "closing_balance": "1003.36",
      "declared_ageing": {
        "current": "490.82",
        "31-60": "217.44",
        "61-90": "170.85",
        "90-plus": "124.25"
      },
      "true_ageing": {
        "current": "490.82",
        "31-60": "217.44",
        "61-90": "170.85",
        "90-plus": "124.25"
      },
      "declared_ageing_sum": "1003.36",
      "ageing_difference": "0.00",
      "omitted_from_ageing": null
    },
    {
      "statement_number": "STM-CAT-6002",
      "statement_date": "2026-08-31",
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "currency": "CAD",
      "opening_balance": "0.00",
      "rows": [
        {
          "line_no": 1,
          "document_date": "2026-05-28",
          "document_type": "invoice",
          "document_number": "OPN-CAT-9004",
          "reference": "Prior period opening item",
          "debit": "93.66",
          "credit": "0.00",
          "signed_amount": "93.66",
          "balance": "93.66",
          "ageing_bucket": "90-plus"
        },
        {
          "line_no": 2,
          "document_date": "2026-06-25",
          "document_type": "invoice",
          "document_number": "OPN-CAT-9005",
          "reference": "Prior period opening item",
          "debit": "124.88",
          "credit": "0.00",
          "signed_amount": "124.88",
          "balance": "218.54",
          "ageing_bucket": "61-90"
        },
        {
          "line_no": 3,
          "document_date": "2026-07-15",
          "document_type": "invoice",
          "document_number": "OPN-CAT-9006",
          "reference": "Prior period opening item",
          "debit": "156.10",
          "credit": "0.00",
          "signed_amount": "156.10",
          "balance": "374.64",
          "ageing_bucket": "31-60"
        },
        {
          "line_no": 4,
          "document_date": "2026-08-14",
          "document_type": "invoice",
          "document_number": "INV-CAT-5002",
          "reference": "PO-CAT-1002",
          "debit": "208.13",
          "credit": "0.00",
          "signed_amount": "208.13",
          "balance": "582.77",
          "ageing_bucket": "current"
        },
        {
          "line_no": 5,
          "document_date": "2026-08-17",
          "document_type": "invoice",
          "document_number": "INV-CAT-5002",
          "reference": "PO-CAT-1002",
          "debit": "144.60",
          "credit": "0.00",
          "signed_amount": "144.60",
          "balance": "727.37",
          "ageing_bucket": "current"
        },
        {
          "line_no": 6,
          "document_date": "2026-08-21",
          "document_type": "credit note",
          "document_number": "CN-CAT-7001",
          "reference": "INV-CAT-5002",
          "debit": "0.00",
          "credit": "10.16",
          "signed_amount": "-10.16",
          "balance": "717.21",
          "ageing_bucket": "current"
        },
        {
          "line_no": 7,
          "document_date": "2026-08-28",
          "document_type": "invoice",
          "document_number": "INV-CAT-5004",
          "reference": "PO-CAT-1004",
          "debit": "270.22",
          "credit": "0.00",
          "signed_amount": "270.22",
          "balance": "987.43",
          "ageing_bucket": "current"
        },
        {
          "line_no": 8,
          "document_date": "2026-08-29",
          "document_type": "credit note",
          "document_number": "CN-CAT-7002",
          "reference": "INV-CAT-5004",
          "debit": "0.00",
          "credit": "5.99",
          "signed_amount": "-5.99",
          "balance": "981.44",
          "ageing_bucket": "current"
        }
      ],
      "closing_balance": "981.44",
      "declared_ageing": {
        "current": "616.96",
        "31-60": "156.10",
        "61-90": "124.88",
        "90-plus": "93.66"
      },
      "true_ageing": {
        "current": "606.80",
        "31-60": "156.10",
        "61-90": "124.88",
        "90-plus": "93.66"
      },
      "declared_ageing_sum": "991.60",
      "ageing_difference": "10.16",
      "omitted_from_ageing": "CN-CAT-7001"
    }
  ],
  "remittance": {
    "remittance_number": "REM-CAT-8001",
    "payment_date": "2026-09-05",
    "payment_method": "EFT",
    "payment_reference": "EFT-CAT-20260905",
    "currency": "CAD",
    "lines": [
      {
        "line_no": 1,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "OPN-CAT-9001",
        "document_date": "2026-05-20",
        "document_amount": "124.25",
        "settled_amount": "124.25",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 2,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "OPN-CAT-9002",
        "document_date": "2026-06-18",
        "document_amount": "170.85",
        "settled_amount": "170.85",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 3,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "OPN-CAT-9003",
        "document_date": "2026-07-21",
        "document_amount": "217.44",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Not yet due under Net 30 terms."
      },
      {
        "line_no": 4,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "INV-CAT-5001",
        "document_date": "2026-08-07",
        "document_amount": "310.63",
        "settled_amount": "310.63",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 5,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "INV-CAT-5003",
        "document_date": "2026-08-21",
        "document_amount": "180.19",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Price query: line 2 bills a substituted item at a price that is not on the purchase order, and the stated tax total does not agree with the line tax amounts."
      },
      {
        "line_no": 6,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "OPN-CAT-9004",
        "document_date": "2026-05-28",
        "document_amount": "93.66",
        "settled_amount": "93.66",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 7,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "OPN-CAT-9005",
        "document_date": "2026-06-25",
        "document_amount": "124.88",
        "settled_amount": "124.88",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 8,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "OPN-CAT-9006",
        "document_date": "2026-07-15",
        "document_amount": "156.10",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Not yet due under Net 30 terms."
      },
      {
        "line_no": 9,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "INV-CAT-5002",
        "document_date": "2026-08-14",
        "document_amount": "208.13",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Quantity in dispute: 4 kg billed but recorded short on GRN-CAT-2002."
      },
      {
        "line_no": 10,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "INV-CAT-5002",
        "document_date": "2026-08-17",
        "document_amount": "144.60",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Rejected as a duplicate of invoice number INV-CAT-5002 dated 2026-08-14."
      },
      {
        "line_no": 11,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "credit note",
        "document_number": "CN-CAT-7001",
        "document_date": "2026-08-21",
        "document_amount": "-10.16",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Credit held until the disputed invoice it relates to is settled."
      },
      {
        "line_no": 12,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "INV-CAT-5004",
        "document_date": "2026-08-28",
        "document_amount": "270.22",
        "settled_amount": "270.22",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 13,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "credit note",
        "document_number": "CN-CAT-7002",
        "document_date": "2026-08-29",
        "document_amount": "-5.99",
        "settled_amount": "-5.99",
        "status": "paid",
        "reason": "Settled in full."
      }
    ],
    "remittance_total": "1088.50",
    "withheld_total": "896.30",
    "statements_closing_total": "1984.80"
  },
  "threeWayMatch": [
    {
      "invoice_number": "INV-CAT-5001",
      "invoice_date": "2026-08-07",
      "invoice_line": 1,
      "po_number": "PO-CAT-1001",
      "po_line": 1,
      "grn_number": "GRN-CAT-2001",
      "po_ingredient_id": "ING-01",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 17,
      "delivered_quantity": 17,
      "returned_quantity": 0,
      "invoiced_quantity": 17,
      "po_unit_price": "2.32",
      "invoice_unit_price": "2.32",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5001",
      "invoice_date": "2026-08-07",
      "invoice_line": 2,
      "po_number": "PO-CAT-1001",
      "po_line": 2,
      "grn_number": "GRN-CAT-2001",
      "po_ingredient_id": "ING-02",
      "invoiced_ingredient_id": "ING-02",
      "uom": "kg",
      "po_quantity": 20,
      "delivered_quantity": 20,
      "returned_quantity": 0,
      "invoiced_quantity": 20,
      "po_unit_price": "9.83",
      "invoice_unit_price": "9.83",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5001",
      "invoice_date": "2026-08-07",
      "invoice_line": 3,
      "po_number": "PO-CAT-1001",
      "po_line": 3,
      "grn_number": "GRN-CAT-2001",
      "po_ingredient_id": "ING-03",
      "invoiced_ingredient_id": "ING-03",
      "uom": "kg",
      "po_quantity": 23,
      "delivered_quantity": 23,
      "returned_quantity": 0,
      "invoiced_quantity": 23,
      "po_unit_price": "2.60",
      "invoice_unit_price": "2.60",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-14",
      "invoice_line": 1,
      "po_number": "PO-CAT-1002",
      "po_line": 1,
      "grn_number": "GRN-CAT-2002",
      "po_ingredient_id": "ING-01",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 19,
      "delivered_quantity": 19,
      "returned_quantity": 0,
      "invoiced_quantity": 19,
      "po_unit_price": "2.19",
      "invoice_unit_price": "2.19",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-14",
      "invoice_line": 2,
      "po_number": "PO-CAT-1002",
      "po_line": 2,
      "grn_number": "GRN-CAT-2002",
      "po_ingredient_id": "ING-03",
      "invoiced_ingredient_id": "ING-03",
      "uom": "kg",
      "po_quantity": 25,
      "delivered_quantity": 21,
      "returned_quantity": 0,
      "invoiced_quantity": 25,
      "po_unit_price": "2.42",
      "invoice_unit_price": "2.42",
      "quantity_variance": 4,
      "price_variance": "0.00",
      "value_variance": "9.68",
      "match_result": "quantity-variance",
      "note": "Invoiced 25 kg against 21 kg recorded as delivered on GRN-CAT-2002."
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-14",
      "invoice_line": 3,
      "po_number": "PO-CAT-1002",
      "po_line": 3,
      "grn_number": "GRN-CAT-2002",
      "po_ingredient_id": "ING-05",
      "invoiced_ingredient_id": "ING-05",
      "uom": "kg",
      "po_quantity": 31,
      "delivered_quantity": 31,
      "returned_quantity": 0,
      "invoiced_quantity": 31,
      "po_unit_price": "3.10",
      "invoice_unit_price": "3.10",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5003",
      "invoice_date": "2026-08-21",
      "invoice_line": 1,
      "po_number": "PO-CAT-1003",
      "po_line": 1,
      "grn_number": "GRN-CAT-2003",
      "po_ingredient_id": "ING-04",
      "invoiced_ingredient_id": "ING-04",
      "uom": "kg",
      "po_quantity": 30,
      "delivered_quantity": 30,
      "returned_quantity": 0,
      "invoiced_quantity": 30,
      "po_unit_price": "1.64",
      "invoice_unit_price": "1.64",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5003",
      "invoice_date": "2026-08-21",
      "invoice_line": 2,
      "po_number": "PO-CAT-1003",
      "po_line": 2,
      "grn_number": "GRN-CAT-2003",
      "po_ingredient_id": "ING-05",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 33,
      "delivered_quantity": 33,
      "returned_quantity": 0,
      "invoiced_quantity": 33,
      "po_unit_price": "3.29",
      "invoice_unit_price": "2.40",
      "quantity_variance": 0,
      "price_variance": "-0.89",
      "value_variance": "-29.37",
      "match_result": "item-substituted",
      "note": "Purchase order line 2 ordered ING-05; GRN-CAT-2003 records ING-01 delivered and the invoice bills the substituted item at its own contract price."
    },
    {
      "invoice_number": "INV-CAT-5003",
      "invoice_date": "2026-08-21",
      "invoice_line": 3,
      "po_number": "PO-CAT-1003",
      "po_line": 3,
      "grn_number": "GRN-CAT-2003",
      "po_ingredient_id": "ING-06",
      "invoiced_ingredient_id": "ING-06",
      "uom": "each",
      "po_quantity": 36,
      "delivered_quantity": 36,
      "returned_quantity": 0,
      "invoiced_quantity": 36,
      "po_unit_price": "1.20",
      "invoice_unit_price": "1.20",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5004",
      "invoice_date": "2026-08-28",
      "invoice_line": 1,
      "po_number": "PO-CAT-1004",
      "po_line": 1,
      "grn_number": "GRN-CAT-2004",
      "po_ingredient_id": "ING-02",
      "invoiced_ingredient_id": "ING-02",
      "uom": "kg",
      "po_quantity": 20,
      "delivered_quantity": 20,
      "returned_quantity": 0,
      "invoiced_quantity": 20,
      "po_unit_price": "8.99",
      "invoice_unit_price": "8.99",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5004",
      "invoice_date": "2026-08-28",
      "invoice_line": 2,
      "po_number": "PO-CAT-1004",
      "po_line": 2,
      "grn_number": "GRN-CAT-2004",
      "po_ingredient_id": "ING-04",
      "invoiced_ingredient_id": "ING-04",
      "uom": "kg",
      "po_quantity": 26,
      "delivered_quantity": 26,
      "returned_quantity": 0,
      "invoiced_quantity": 26,
      "po_unit_price": "1.58",
      "invoice_unit_price": "1.58",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-CAT-5004",
      "invoice_date": "2026-08-28",
      "invoice_line": 3,
      "po_number": "PO-CAT-1004",
      "po_line": 3,
      "grn_number": "GRN-CAT-2004",
      "po_ingredient_id": "ING-06",
      "invoiced_ingredient_id": "ING-06",
      "uom": "each",
      "po_quantity": 32,
      "delivered_quantity": 32,
      "returned_quantity": 3,
      "invoiced_quantity": 32,
      "po_unit_price": "1.14",
      "invoice_unit_price": "1.14",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched-credit-expected",
      "note": "Quantities agree, but 3 each were returned after receipt and require a credit note."
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-17",
      "invoice_line": 1,
      "po_number": "PO-CAT-1002",
      "po_line": 1,
      "grn_number": "GRN-CAT-2002",
      "po_ingredient_id": "ING-01",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 19,
      "delivered_quantity": 19,
      "returned_quantity": 0,
      "invoiced_quantity": 19,
      "po_unit_price": "2.19",
      "invoice_unit_price": "2.19",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "duplicate-invoice-number",
      "note": "This document reuses invoice number INV-CAT-5002, which is already used by the invoice dated 2026-08-14."
    },
    {
      "invoice_number": "INV-CAT-5002",
      "invoice_date": "2026-08-17",
      "invoice_line": 2,
      "po_number": "PO-CAT-1002",
      "po_line": 3,
      "grn_number": "GRN-CAT-2002",
      "po_ingredient_id": "ING-05",
      "invoiced_ingredient_id": "ING-05",
      "uom": "kg",
      "po_quantity": 31,
      "delivered_quantity": 31,
      "returned_quantity": 0,
      "invoiced_quantity": 31,
      "po_unit_price": "3.10",
      "invoice_unit_price": "3.10",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "duplicate-invoice-number",
      "note": "This document reuses invoice number INV-CAT-5002, which is already used by the invoice dated 2026-08-14."
    }
  ],
  "costingTraps": {
    "purchaseOrderNetAtListPrice": "952.38",
    "purchaseOrderNetIfContractTierApplied": "914.27",
    "purchaseOrderNetIfCasePriceReadAsUnitPrice": "10639.32"
  },
  "defects": [
    {
      "id": "vat-rounding-one-cent",
      "title": "Stated tax total is one cent above the sum of the line tax amounts",
      "documents": [
        "INV-CAT-5003 dated 2026-08-21"
      ],
      "detail": "Invoice INV-CAT-5003 states a tax total of 8.59 CAD and a total due of 180.19 CAD. Its three line tax amounts sum to 8.58 CAD, one cent less. The document-level calculation round(net x 0.05, 2) on a net of 171.60 gives 8.58 CAD.",
      "assertion": "statedTaxTotal - lineTaxSum == 0.01"
    },
    {
      "id": "po-invoice-quantity-mismatch",
      "title": "Invoice bills the ordered quantity after a recorded short delivery",
      "documents": [
        "INV-CAT-5002 line 2",
        "GRN-CAT-2002 line 2"
      ],
      "detail": "Purchase order PO-CAT-1002 line 2 ordered 25 kg of ING-03. Goods-received note GRN-CAT-2002 records 21 kg delivered. Invoice INV-CAT-5002 line 2 bills 25 kg, a variance of 4 kg and 9.68 CAD net.",
      "assertion": "invoicedQuantity - deliveredQuantity == 4"
    },
    {
      "id": "duplicate-invoice-number",
      "title": "Two different invoices carry the same invoice number",
      "documents": [
        "INV-CAT-5002 dated 2026-08-17",
        "INV-CAT-5002 dated 2026-08-14"
      ],
      "detail": "Invoice number INV-CAT-5002 is used twice: once dated 2026-08-14 with 3 lines totalling 208.13 CAD, and again dated 2026-08-17 with 2 lines totalling 144.60 CAD. Both are listed on statement STM-CAT-6002 and both are included in its closing balance.",
      "assertion": "count(invoices where invoiceNumber == that number) == 2"
    },
    {
      "id": "credit-note-over-credit",
      "title": "Credit note credits more units than the goods-received note records returned",
      "documents": [
        "CN-CAT-7002",
        "GRN-CAT-2004"
      ],
      "detail": "Goods-received note GRN-CAT-2004 line 3 records 3 each returned. Credit note CN-CAT-7002 credits 5 each at 1.14 CAD. The 2 each difference overstates the credit by 2.28 CAD net and 2.39 CAD including GST.",
      "assertion": "creditedQuantity - returnedQuantity == 2"
    },
    {
      "id": "statement-ageing-does-not-sum",
      "title": "Statement ageing buckets do not sum to the closing balance",
      "documents": [
        "STM-CAT-6002"
      ],
      "detail": "Statement STM-CAT-6002 for supplier SUP-02 declares ageing buckets of 616.96 current, 156.10 at 31-60 days, 124.88 at 61-90 days and 93.66 over 90 days, summing to 991.60 CAD. The closing balance on the same document is 981.44 CAD. The difference of 10.16 CAD is exactly credit note CN-CAT-7001, which appears in the transaction lines but was never applied to the ageing analysis.",
      "assertion": "sum(declaredAgeing) - closingBalance == creditNote.grossTotal"
    },
    {
      "id": "edi-segment-count-trailer",
      "title": "EDI 810 SE segment count disagrees with the actual segment count",
      "documents": [
        "edi-810-invalid-segment-count.edi"
      ],
      "detail": "The SE segment of the invalid interchange declares a segment count two lower than the number of segments actually present between ST and SE inclusive. Every other segment, the ISA/GS/GE/IEA control numbers and the TDS total are unchanged from edi-810-invoice.edi, so a parser that checks only syntax accepts the file.",
      "assertion": "SE01 != count(segments from ST to SE inclusive)"
    }
  ]
}
