{
  "version": 1,
  "rules": [
    {
      "vendor_id": 2120,
      "vendor_name": "Mainfreight Limited",
      "position": 1,
      "match_kind": "ref_prefix",
      "pattern": "CJ",
      "item_id": 5425,
      "item_code": "NP1379",
      "item_name": "Export Container Cartage",
      "note": "Export container pickups"
    },
    {
      "vendor_id": 2120,
      "vendor_name": "Mainfreight Limited",
      "position": 2,
      "match_kind": "ref_prefix",
      "pattern": "81NZ",
      "item_id": 2815,
      "item_code": "NP1319",
      "item_name": "Treatment LOSP H3.1",
      "note": "Motueka to Blenheim: timber going to Nelson Forests for LOSP treatment"
    },
    {
      "vendor_id": 2120,
      "vendor_name": "Mainfreight Limited",
      "position": 3,
      "match_kind": "ref_prefix",
      "pattern": "NFL",
      "receipt_mode": "require",
      "item_id": 3434,
      "item_code": "OC1001",
      "item_name": "Timber Freight all suppliers",
      "landed_cost": true,
      "note": "Blenheim to Motueka with the docket on an item receipt: timber bought from Nelson Forests"
    },
    {
      "vendor_id": 2120,
      "vendor_name": "Mainfreight Limited",
      "position": 4,
      "match_kind": "ref_prefix",
      "pattern": "NFL",
      "item_id": 2815,
      "item_code": "NP1319",
      "item_name": "Treatment LOSP H3.1",
      "note": "Blenheim to Motueka with no item receipt: treatment coming back"
    },
    {
      "vendor_id": 2120,
      "vendor_name": "Mainfreight Limited",
      "position": 5,
      "match_kind": "route",
      "pattern": "* MOT",
      "min_amount": 1000,
      "receipt_mode": "find",
      "receipt_vendors": [
        1843,
        1905
      ],
      "item_id": 3434,
      "item_code": "OC1001",
      "item_name": "Timber Freight all suppliers",
      "landed_cost": true,
      "note": "Large loads into Motueka (Napier etc.): timber bought from Napier Pine / Pan Pac"
    },
    {
      "vendor_id": 2120,
      "vendor_name": "Mainfreight Limited",
      "position": 6,
      "match_kind": "any",
      "item_id": 3114,
      "item_code": "NP1322",
      "item_name": "Truck Freight Out",
      "combine": true,
      "note": "General freight around NZ, billed as one Truck Freight line"
    }
  ]
}