[
  {
    "id": "Q-MAIL-0004",
    "kind": "match_confirmation",
    "codes": [
      "reference_near_match"
    ],
    "summary": "No job has C-77315. TR-5102 (C-77345), TR-5111 (C-77351) differs by one character.",
    "documents": [
      {
        "id": "MAIL-0004",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-11T17:31:00+11:00",
        "carrier": "BLG",
        "consignment": "C-77315",
        "deliveredOn": "2026-11-11",
        "address": "8 Carrington Street, Lidcombe NSW 2141",
        "quantity": 9,
        "receivedBy": "R. Okafor",
        "signed": true,
        "photos": 0,
        "remarks": ""
      }
    ],
    "candidates": [
      {
        "job": "TR-5102",
        "consignment": "C-77345",
        "customer": "HRB",
        "carrier": "BLG",
        "address": "8 Carrington Street, Lidcombe NSW 2141",
        "date": "2026-11-10",
        "quantity": 6,
        "unit": "pallets"
      },
      {
        "job": "TR-5111",
        "consignment": "C-77351",
        "customer": "HRB",
        "carrier": "BLG",
        "address": "8 Carrington Street, Lidcombe NSW 2141",
        "date": "2026-11-11",
        "quantity": 9,
        "unit": "cartons"
      }
    ],
    "options": [
      "Confirm the match",
      "Assign to another job",
      "Reject the document"
    ]
  },
  {
    "id": "Q-MAIL-0007",
    "kind": "match_confirmation",
    "codes": [
      "ambiguous_match"
    ],
    "summary": "No consignment reference. 2 jobs fit its carrier, address and date.",
    "documents": [
      {
        "id": "MAIL-0007",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-12T15:10:00+11:00",
        "carrier": "BLG",
        "consignment": null,
        "deliveredOn": "2026-11-12",
        "address": "40 Foundry Rd, Seven Hills NSW 2147",
        "quantity": null,
        "receivedBy": "S. Pillai",
        "signed": true,
        "photos": 1,
        "remarks": "label torn"
      }
    ],
    "candidates": [
      {
        "job": "TR-5117",
        "consignment": "C-77405",
        "customer": "MRD",
        "carrier": "BLG",
        "address": "40 Foundry Road, Seven Hills NSW 2147",
        "date": "2026-11-12",
        "quantity": 6,
        "unit": "cartons"
      },
      {
        "job": "TR-5118",
        "consignment": "C-77406",
        "customer": "MRD",
        "carrier": "BLG",
        "address": "40 Foundry Road, Seven Hills NSW 2147",
        "date": "2026-11-12",
        "quantity": 4,
        "unit": "cartons"
      }
    ],
    "options": [
      "Confirm the match",
      "Assign to another job",
      "Reject the document"
    ]
  },
  {
    "id": "Q-MAIL-0008",
    "kind": "unmatched_document",
    "codes": [
      "unknown_reference"
    ],
    "summary": "No job has C-80012. It may belong to another customer account or depot.",
    "documents": [
      {
        "id": "MAIL-0008",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-12T09:02:00+11:00",
        "carrier": "BLG",
        "consignment": "C-80012",
        "deliveredOn": "2026-11-11",
        "address": "7 Victoria St, Wetherill Park NSW 2164",
        "quantity": 3,
        "receivedBy": "J. Mendes",
        "signed": true,
        "photos": 0,
        "remarks": ""
      }
    ],
    "options": [
      "Assign to a job",
      "Reject the document"
    ]
  },
  {
    "id": "Q-SCAN-0103",
    "kind": "match_confirmation",
    "codes": [
      "no_reference"
    ],
    "summary": "No consignment reference. 1 job fits its carrier, address and date.",
    "documents": [
      {
        "id": "SCAN-0103",
        "source": "depot_scan",
        "sender": "DEPOT-BOTANY",
        "receivedAt": "2026-11-12T07:44:00+11:00",
        "carrier": "IRB",
        "consignment": null,
        "deliveredOn": "2026-11-11",
        "address": "61 EDWIN ST MORTLAKE NSW 2137",
        "quantity": 2,
        "receivedBy": "D. CHEN",
        "signed": true,
        "photos": 0,
        "remarks": ""
      }
    ],
    "candidates": [
      {
        "job": "TR-5112",
        "consignment": "C-77390",
        "customer": "HRB",
        "carrier": "IRB",
        "address": "61 Edwin Street, Mortlake NSW 2137",
        "date": "2026-11-11",
        "quantity": 2,
        "unit": "pallets"
      }
    ],
    "options": [
      "Confirm the match",
      "Assign to another job",
      "Reject the document"
    ]
  },
  {
    "id": "Q-SCAN-0106",
    "kind": "unmatched_document",
    "codes": [
      "unreadable"
    ],
    "summary": "The scan is unreadable. A clearer copy has been requested.",
    "documents": [
      {
        "id": "SCAN-0106",
        "source": "depot_scan",
        "sender": "DEPOT-BOTANY",
        "receivedAt": "2026-11-12T07:51:00+11:00",
        "carrier": "IRB",
        "consignment": null,
        "deliveredOn": null,
        "address": null,
        "quantity": null,
        "receivedBy": null,
        "signed": null,
        "photos": 0,
        "remarks": ""
      }
    ],
    "options": [
      "Assign to a job",
      "Reject the document"
    ]
  },
  {
    "id": "Q-TR-5106",
    "kind": "job_exception",
    "codes": [
      "quantity_mismatch"
    ],
    "summary": "Delivered quantity differs from the job.",
    "job": {
      "job": "TR-5106",
      "consignment": "C-77371",
      "customer": "HRB",
      "carrier": "BLG",
      "address": "3 Depot Road, Ingleburn NSW 2565",
      "date": "2026-11-11",
      "quantity": 12,
      "unit": "cartons"
    },
    "documents": [
      {
        "id": "MAIL-0002",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-11T17:05:00+11:00",
        "carrier": "BLG",
        "consignment": "C-77371",
        "deliveredOn": "2026-11-11",
        "address": "3 Depot Rd, Ingleburn NSW 2565",
        "quantity": 10,
        "receivedBy": "M. Haddad",
        "signed": true,
        "photos": 0,
        "remarks": "Receiver counted 10"
      }
    ],
    "options": [
      "Accept and mark ready to bill",
      "Ask the carrier",
      "Hold billing",
      "Reassign the document"
    ]
  },
  {
    "id": "Q-TR-5107",
    "kind": "job_exception",
    "codes": [
      "damage_noted"
    ],
    "summary": "The document records damage.",
    "job": {
      "job": "TR-5107",
      "consignment": "C-77374",
      "customer": "MRD",
      "carrier": "KST",
      "address": "40 Foundry Road, Seven Hills NSW 2147",
      "date": "2026-11-11",
      "quantity": 8,
      "unit": "cartons"
    },
    "documents": [
      {
        "id": "EPOD-0002",
        "source": "epod",
        "sender": "ePOD app export",
        "receivedAt": "2026-11-11T13:05:00+11:00",
        "carrier": "KST",
        "consignment": "C-77374",
        "deliveredOn": "2026-11-11",
        "address": "40 Foundry Rd, Seven Hills NSW 2147",
        "quantity": 8,
        "receivedBy": "S. Pillai",
        "signed": true,
        "photos": 2,
        "remarks": "1 carton crushed on arrival, photo taken"
      }
    ],
    "options": [
      "Accept and mark ready to bill",
      "Ask the carrier",
      "Hold billing",
      "Reassign the document"
    ]
  },
  {
    "id": "Q-TR-5108",
    "kind": "job_exception",
    "codes": [
      "address_mismatch"
    ],
    "summary": "The delivery address differs from the job's address.",
    "job": {
      "job": "TR-5108",
      "consignment": "C-77342",
      "customer": "HRB",
      "carrier": "BLG",
      "address": "90 Church Street, Parramatta NSW 2150",
      "date": "2026-11-11",
      "quantity": 6,
      "unit": "cartons"
    },
    "documents": [
      {
        "id": "MAIL-0003",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-11T17:20:00+11:00",
        "carrier": "BLG",
        "consignment": "C-77342",
        "deliveredOn": "2026-11-11",
        "address": "17 Parramatta Rd, Granville NSW 2142",
        "quantity": 6,
        "receivedBy": "L. Byrne",
        "signed": true,
        "photos": 0,
        "remarks": ""
      }
    ],
    "options": [
      "Accept and mark ready to bill",
      "Ask the carrier",
      "Hold billing",
      "Reassign the document"
    ]
  },
  {
    "id": "Q-TR-5114",
    "kind": "job_exception",
    "codes": [
      "conflicting_documents"
    ],
    "summary": "Two documents for this job give different quantities.",
    "job": {
      "job": "TR-5114",
      "consignment": "C-77397",
      "customer": "HRB",
      "carrier": "BLG",
      "address": "8 Carrington Street, Lidcombe NSW 2141",
      "date": "2026-11-11",
      "quantity": 10,
      "unit": "cartons"
    },
    "documents": [
      {
        "id": "MAIL-0005",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-11T16:00:00+11:00",
        "carrier": "BLG",
        "consignment": "C-77397",
        "deliveredOn": "2026-11-11",
        "address": "8 Carrington St, Lidcombe NSW 2141",
        "quantity": 10,
        "receivedBy": "R. Okafor",
        "signed": true,
        "photos": 0,
        "remarks": ""
      },
      {
        "id": "MAIL-0006",
        "source": "email",
        "sender": "dockets@bluegum-couriers.example",
        "receivedAt": "2026-11-12T08:10:00+11:00",
        "carrier": "BLG",
        "consignment": "C-77397",
        "deliveredOn": "2026-11-11",
        "address": "8 Carrington St, Lidcombe NSW 2141",
        "quantity": 8,
        "receivedBy": "R. Okafor",
        "signed": true,
        "photos": 0,
        "remarks": ""
      }
    ],
    "options": [
      "Accept and mark ready to bill",
      "Ask the carrier",
      "Hold billing",
      "Reassign the document"
    ]
  },
  {
    "id": "Q-TR-5116",
    "kind": "job_exception",
    "codes": [
      "quantity_mismatch",
      "date_outside_window"
    ],
    "summary": "Delivered quantity differs from the job. The delivery date is outside the job's delivery window.",
    "job": {
      "job": "TR-5116",
      "consignment": "C-77401",
      "customer": "HRB",
      "carrier": "KST",
      "address": "22 Mill Street, Auburn NSW 2144",
      "date": "2026-11-10",
      "quantity": 14,
      "unit": "cartons"
    },
    "documents": [
      {
        "id": "EPOD-0005",
        "source": "epod",
        "sender": "ePOD app export",
        "receivedAt": "2026-11-12T11:30:00+11:00",
        "carrier": "KST",
        "consignment": "C-77401",
        "deliveredOn": "2026-11-12",
        "address": "22 Mill St, Auburn NSW 2144",
        "quantity": 9,
        "receivedBy": "K. Doyle",
        "signed": true,
        "photos": 1,
        "remarks": ""
      }
    ],
    "options": [
      "Accept and mark ready to bill",
      "Ask the carrier",
      "Hold billing",
      "Reassign the document"
    ]
  }
]
