{
  "accounts_classification_source": "classifier",
  "accounts_classifier": {
    "confidence": "high",
    "effective": true,
    "evidence": [
      "invoice reference 26028458 matched the email content",
      "strong accounts wording detected: invoice",
      "supporting payment wording detected: payment, bank transfer"
    ],
    "invoice_matches": [
      {
        "evidence": "subject contained invoice reference 26028458",
        "match_text": "Invoice 26028458",
        "score": 96,
        "source": "subject",
        "sources": [
          "subject"
        ],
        "value": 26028458
      }
    ],
    "medium_keyword_hits": [
      "payment",
      "bank transfer"
    ],
    "score": 92,
    "strong_keyword_hits": [
      "invoice"
    ]
  },
  "accounts_override": null,
  "ai_count": 0,
  "ai_last_error": null,
  "ai_last_processed_at": null,
  "ai_processing": false,
  "ai_processing_started_at": null,
  "ai_textfield": null,
  "allocated_date": null,
  "allocated_to": "",
  "body_html": "<p>Please see the attached invoice from Cleansing Service Group.</p><p>Should you wish to pay by bank transfer or online please see our bank details below:</p><p>Account Name: Cleansing Service Group Ltd.<br>Bank Sort Code: 40-42-18<br>Bank Account No: 32260905<br>Reference: MP1137-26028458</p><p>Alternatively visit our website at www.csg.co.uk/pay or call 01489 776312 to make a debit or credit card payment.</p><p>Direct Debit<br>If you wish to pay by Direct Debit then please visit www.csg.co.uk/resources and print off the form and complete it and send the original to the address below.</p><p>Cleansing Service Group Limited<br>Fusion 3<br>1200 Parkway<br>Whiteley<br>Fareham<br>Hampshire<br>PO15 7AD</p><p>Any queries must be raised in writing within 31 days of the invoice date, otherwise the invoiced amount shall be deemed to be accepted by the customer.</p><p>Any requests for additional copy tickets/documents will be charged to the customer at 5 GBP per copy.</p><p>If you have any queries in respect of your invoices then please contact credit@csg.co.uk.</p><p>Cleansing Service Group<br>Fusion 3<br>1200 Parkway<br>Whiteley<br>Fareham<br>Hampshire<br>PO15 7AD<br>Tel: 01489 776312<br>Email: credit@csg.co.uk<br>Web: www.csg.co.uk</p><p>Disclaimer</p>",
  "body_text": "Please see the attached invoice from Cleansing Service Group.\n\nShould you wish to pay by bank transfer or online please see our bank details below:\n\nAccount Name: Cleansing Service Group Ltd.\nBank Sort Code: 40-42-18\nBank Account No: 32260905\nReference: MP1137-26028458\n\nAlternatively visit our website at www.csg.co.uk/pay or call 01489 776312 to make a debit or credit card payment.\n\nDirect Debit\nIf you wish to pay by Direct Debit then please visit www.csg.co.uk/resources and print off the form and complete it and send the original to the address below.\n\nCleansing Service Group Limited\nFusion 3\n1200 Parkway\nWhiteley\nFareham\nHampshire\nPO15 7AD\n\nAny queries must be raised in writing within 31 days of the invoice date, otherwise the invoiced amount shall be deemed to be accepted by the customer.\n\nAny requests for additional copy tickets/documents will be charged to the customer at 5 GBP per copy.\n\nIf you have any queries in respect of your invoices then please contact credit@csg.co.uk.\n\nCleansing Service Group\nFusion 3\n1200 Parkway\nWhiteley\nFareham\nHampshire\nPO15 7AD\nTel: 01489 776312\nEmail: credit@csg.co.uk\nWeb: www.csg.co.uk\n\nDisclaimer",
  "calls_classification_source": "default",
  "calls_override": null,
  "cc_email": "<robp@hec.co.uk>",
  "closed_date": null,
  "contact_email": "accounts@csg.co.uk",
  "contact_id": 1976,
  "contact_is_safe": true,
  "contact_name": "\"CSG Ltd\" <accounts@csg.co.uk>",
  "contact_open_url": "/contacts?open=1976&search=accounts%40csg.co.uk",
  "contact_type": "",
  "display_body_html": "<p>Please see the attached invoice from Cleansing Service Group.</p><p>Should you wish to pay by bank transfer or online please see our bank details below:</p><p>Account Name: Cleansing Service Group Ltd.<br>Bank Sort Code: 40-42-18<br>Bank Account No: 32260905<br>Reference: MP1137-26028458</p><p>Alternatively visit our website at www.csg.co.uk/pay or call 01489 776312 to make a debit or credit card payment.</p><p>Direct Debit<br>If you wish to pay by Direct Debit then please visit www.csg.co.uk/resources and print off the form and complete it and send the original to the address below.</p><p>Cleansing Service Group Limited<br>Fusion 3<br>1200 Parkway<br>Whiteley<br>Fareham<br>Hampshire<br>PO15 7AD</p><p>Any queries must be raised in writing within 31 days of the invoice date, otherwise the invoiced amount shall be deemed to be accepted by the customer.</p><p>Any requests for additional copy tickets/documents will be charged to the customer at 5 GBP per copy.</p><p>If you have any queries in respect of your invoices then please contact credit@csg.co.uk.</p><p>Cleansing Service Group<br>Fusion 3<br>1200 Parkway<br>Whiteley<br>Fareham<br>Hampshire<br>PO15 7AD<br>Tel: 01489 776312<br>Email: credit@csg.co.uk<br>Web: www.csg.co.uk</p><p>Disclaimer</p>",
  "display_body_invalid_reason": "",
  "display_body_source": "text/html",
  "display_body_text": "Please see the attached invoice from Cleansing Service Group.\n\nShould you wish to pay by bank transfer or online please see our bank details below:\n\nAccount Name: Cleansing Service Group Ltd.\nBank Sort Code: 40-42-18\nBank Account No: 32260905\nReference: MP1137-26028458\n\nAlternatively visit our website at www.csg.co.uk/pay or call 01489 776312 to make a debit or credit card payment.\n\nDirect Debit\nIf you wish to pay by Direct Debit then please visit www.csg.co.uk/resources and print off the form and complete it and send the original to the address below.\n\nCleansing Service Group Limited\nFusion 3\n1200 Parkway\nWhiteley\nFareham\nHampshire\nPO15 7AD\n\nAny queries must be raised in writing within 31 days of the invoice date, otherwise the invoiced amount shall be deemed to be accepted by the customer.\n\nAny requests for additional copy tickets/documents will be charged to the customer at 5 GBP per copy.\n\nIf you have any queries in respect of your invoices then please contact credit@csg.co.uk.\n\nCleansing Service Group\nFusion 3\n1200 Parkway\nWhiteley\nFareham\nHampshire\nPO15 7AD\nTel: 01489 776312\nEmail: credit@csg.co.uk\nWeb: www.csg.co.uk\n\nDisclaimer",
  "display_body_used_placeholder": false,
  "due_date": null,
  "duplicate_of": null,
  "effective_is_accounts": true,
  "effective_is_calls": false,
  "effective_is_internal": false,
  "effective_is_safe": true,
  "effective_is_spam": false,
  "escalated_date": null,
  "escalted_to": null,
  "extracted_entities": [
    {
      "confidence": "0.9400",
      "entity_type": "company_name",
      "entity_value_normalised": "CSG Ltd",
      "entity_value_raw": "CSG Ltd",
      "extraction_method": "header_parse",
      "id": 723458,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_display_company",
      "rule_version": "v1",
      "source_area": "from_header",
      "source_index": 0,
      "source_subarea": "display_name"
    },
    {
      "confidence": "0.8700",
      "entity_type": "company_name",
      "entity_value_normalised": "MP1137 -Haigh Environmental Co. Ltd",
      "entity_value_raw": "MP1137 -Haigh Environmental Co. Ltd",
      "extraction_method": "header_parse",
      "id": 723461,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_display_company",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 0,
      "source_subarea": "display_name"
    },
    {
      "confidence": "0.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@csg.co.uk",
      "entity_value_raw": "accounts@csg.co.uk",
      "extraction_method": "header_parse",
      "id": 723457,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "from_header",
      "source_index": 0,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9200",
      "entity_type": "email_address",
      "entity_value_normalised": "credit@csg.co.uk",
      "entity_value_raw": "credit@csg.co.uk",
      "extraction_method": "regex",
      "id": 723466,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "email_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "robp@hec.co.uk",
      "entity_value_raw": "robp@hec.co.uk",
      "extraction_method": "header_parse",
      "id": 723463,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "cc_header",
      "source_index": 0,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "robp@hec.co.uk",
      "entity_value_raw": "robp@hec.co.uk",
      "extraction_method": "regex",
      "id": 723464,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "cc_header",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@csg.co.uk",
      "entity_value_raw": "accounts@csg.co.uk",
      "extraction_method": "regex",
      "id": 723459,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "from_header",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@mpcservices.co.uk",
      "entity_value_raw": "accounts@mpcservices.co.uk",
      "extraction_method": "header_parse",
      "id": 723460,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 0,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "accounts@mpcservices.co.uk",
      "entity_value_raw": "accounts@mpcservices.co.uk",
      "extraction_method": "regex",
      "id": 723462,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9600",
      "entity_type": "invoice_reference",
      "entity_value_normalised": "26028458",
      "entity_value_raw": "26028458",
      "extraction_method": "regex",
      "id": 723465,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "invoice_keyword_numeric",
      "rule_version": "v1",
      "source_area": "subject",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9100",
      "entity_type": "money_amount",
      "entity_value_normalised": "GBP 5.00",
      "entity_value_raw": "5 GBP",
      "extraction_method": "regex",
      "id": 723471,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "money_amount_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.8600",
      "entity_type": "phone_number",
      "entity_value_normalised": "01489776312",
      "entity_value_raw": "01489 776312",
      "extraction_method": "regex",
      "id": 723472,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "phone_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9500",
      "entity_type": "postcode",
      "entity_value_normalised": "PO15 7AD",
      "entity_value_raw": "PO15 7AD",
      "extraction_method": "regex",
      "id": 723470,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "uk_postcode_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9300",
      "entity_type": "url",
      "entity_value_normalised": "www.csg.co.uk/pay",
      "entity_value_raw": "www.csg.co.uk/pay",
      "extraction_method": "regex",
      "id": 723467,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "url_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 0,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9300",
      "entity_type": "url",
      "entity_value_normalised": "www.csg.co.uk/resources",
      "entity_value_raw": "www.csg.co.uk/resources",
      "extraction_method": "regex",
      "id": 723468,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "url_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 1,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9300",
      "entity_type": "url",
      "entity_value_normalised": "www.csg.co.uk",
      "entity_value_raw": "www.csg.co.uk",
      "extraction_method": "regex",
      "id": 723469,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "url_regex",
      "rule_version": "v1",
      "source_area": "body_main",
      "source_index": 2,
      "source_subarea": "regex"
    }
  ],
  "extracted_entities_json": {
    "counts": {
      "company_name": 2,
      "date": 0,
      "email_address": 4,
      "invoice_reference": 1,
      "job_reference": 0,
      "money_amount": 1,
      "order_reference": 0,
      "person_name": 0,
      "phone_number": 1,
      "po_reference": 0,
      "postcode": 1,
      "quote_reference": 0,
      "url": 3
    },
    "entities": {
      "company_name": [
        "CSG Ltd",
        "MP1137 -Haigh Environmental Co. Ltd"
      ],
      "date": [],
      "email_address": [
        "accounts@csg.co.uk",
        "accounts@mpcservices.co.uk",
        "robp@hec.co.uk",
        "credit@csg.co.uk"
      ],
      "invoice_reference": [
        "26028458"
      ],
      "job_reference": [],
      "money_amount": [
        "GBP 5.00"
      ],
      "order_reference": [],
      "person_name": [],
      "phone_number": [
        "01489776312"
      ],
      "po_reference": [],
      "postcode": [
        "PO15 7AD"
      ],
      "quote_reference": [],
      "url": [
        "www.csg.co.uk/pay",
        "www.csg.co.uk/resources",
        "www.csg.co.uk"
      ]
    },
    "last_processed_at": "2026-04-30T15:34:49Z",
    "primary": {
      "company_name": "CSG Ltd",
      "email_address": "accounts@csg.co.uk",
      "invoice_reference": "26028458",
      "money_amount": "GBP 5.00",
      "phone_number": "01489776312",
      "postcode": "PO15 7AD",
      "url": "www.csg.co.uk/pay"
    },
    "version": "v1"
  },
  "from_email": "\"CSG Ltd\" <accounts@csg.co.uk>",
  "full_message": "Please see the attached invoice from Cleansing Service Group.\n\nShould you wish to pay by bank transfer or online please see our bank details below:\n\nAccount Name: Cleansing Service Group Ltd.\nBank Sort Code: 40-42-18\nBank Account No: 32260905\nReference: MP1137-26028458\n\nAlternatively visit our website at www.csg.co.uk/pay or call 01489 776312 to make a debit or credit card payment.\n\nDirect Debit\nIf you wish to pay by Direct Debit then please visit www.csg.co.uk/resources and print off the form and complete it and send the original to the address below.\n\nCleansing Service Group Limited\nFusion 3\n1200 Parkway\nWhiteley\nFareham\nHampshire\nPO15 7AD\n\nAny queries must be raised in writing within 31 days of the invoice date, otherwise the invoiced amount shall be deemed to be accepted by the customer.\n\nAny requests for additional copy tickets/documents will be charged to the customer at 5 GBP per copy.\n\nIf you have any queries in respect of your invoices then please contact credit@csg.co.uk.\n\nCleansing Service Group\nFusion 3\n1200 Parkway\nWhiteley\nFareham\nHampshire\nPO15 7AD\nTel: 01489 776312\nEmail: credit@csg.co.uk\nWeb: www.csg.co.uk\n\nDisclaimer",
  "human_notes": null,
  "human_summary": null,
  "human_title": null,
  "id": 71610,
  "in_reply_to": "",
  "internal_classification_source": "default",
  "internal_override": null,
  "is_accounts": true,
  "is_accounts_inbox_recipient": true,
  "is_action_required": false,
  "is_ai": false,
  "is_calls": false,
  "is_closed": false,
  "is_complaint": false,
  "is_duplicate": false,
  "is_escalated": false,
  "is_flagged": false,
  "is_internal": false,
  "is_lead": false,
  "is_newemailaddr": false,
  "is_opportunity": false,
  "is_private": false,
  "is_shared": true,
  "is_shared_inbox_recipient": false,
  "is_spam": false,
  "is_transaction": false,
  "message_id": "20260430.163436.0131-O6PLAD2YQ6E@PROD-02.CSG.local",
  "primary_action_case": null,
  "primary_company_href": "",
  "primary_company_name": "",
  "received_at": "Thu, 30 Apr 2026 15:34:36 GMT",
  "safe_classification_source": "rule",
  "snippet": "Please see the attached invoice from Cleansing Service Group. Should you wish to pay by bank transfer or online please\u2026",
  "source": "Mailcow IMAP",
  "spam_classification_source": "safe_override",
  "status": "new",
  "subject": "Invoice 26028458 from Cleansing Service Group",
  "suggested_company": null,
  "suggested_customerid": null,
  "tags": null,
  "to_email": "\"MP1137 -Haigh Environmental Co. Ltd\" <accounts@mpcservices.co.uk>",
  "type": "inbound"
}
