{
  "accounts_classification_source": "classifier",
  "accounts_classifier": {
    "confidence": "high",
    "effective": true,
    "evidence": [
      "invoice reference 16897453 matched the email content",
      "strong accounts wording detected: invoice"
    ],
    "invoice_matches": [
      {
        "evidence": "subject contained invoice reference 16897453",
        "match_text": "Invoice 16897453",
        "score": 96,
        "source": "subject",
        "sources": [
          "subject"
        ],
        "value": 16897453
      }
    ],
    "medium_keyword_hits": [],
    "score": 84,
    "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>Thanks for your business!</p><p>Please find attached your latest invoice.</p><p>We&#x27;d like to take this opportunity to thank you for your continued business.</p><p>If you have any queries, please feel free to drop us an email to dpd.credit@dpd.co.uk</p>",
  "body_text": "Thanks for your business!\n\nPlease find attached your latest invoice.\n\nWe'd like to take this opportunity to thank you for your continued business.\n\nIf you have any queries, please feel free to drop us an email to dpd.credit@dpd.co.uk",
  "calls_classification_source": "default",
  "calls_override": null,
  "cc_email": "",
  "closed_date": null,
  "contact_email": "fatoumatta.sanneh@dpd.co.uk",
  "contact_id": 1420,
  "contact_is_safe": false,
  "contact_name": "Fatoumatta Sanneh",
  "contact_open_url": "/contacts?open=1420&search=fatoumatta.sanneh%40dpd.co.uk",
  "contact_type": "b2b",
  "display_body_html": "<p>Thanks for your business!</p><p>Please find attached your latest invoice.</p><p>We&#x27;d like to take this opportunity to thank you for your continued business.</p><p>If you have any queries, please feel free to drop us an email to dpd.credit@dpd.co.uk</p>",
  "display_body_invalid_reason": "",
  "display_body_source": "text/html",
  "display_body_text": "Thanks for your business!\n\nPlease find attached your latest invoice.\n\nWe'd like to take this opportunity to thank you for your continued business.\n\nIf you have any queries, please feel free to drop us an email to dpd.credit@dpd.co.uk",
  "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.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "fatoumatta.sanneh@dpd.co.uk",
      "entity_value_raw": "fatoumatta.sanneh@dpd.co.uk",
      "extraction_method": "header_parse",
      "id": 919043,
      "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.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "fatoumatta.sanneh@dpd.co.uk",
      "entity_value_raw": "fatoumatta.sanneh@dpd.co.uk",
      "extraction_method": "regex",
      "id": 919044,
      "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.9200",
      "entity_type": "email_address",
      "entity_value_normalised": "dpd.credit@dpd.co.uk",
      "entity_value_raw": "dpd.credit@dpd.co.uk",
      "extraction_method": "regex",
      "id": 919050,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "email_regex",
      "rule_version": "v1",
      "source_area": "signature",
      "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": 919045,
      "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": 919047,
      "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.9950",
      "entity_type": "email_address",
      "entity_value_normalised": "mcooke@haigh.co.uk",
      "entity_value_raw": "mcooke@haigh.co.uk",
      "extraction_method": "header_parse",
      "id": 919046,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_address_parse",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 1,
      "source_subarea": "address"
    },
    {
      "confidence": "0.9400",
      "entity_type": "email_address",
      "entity_value_normalised": "mcooke@haigh.co.uk",
      "entity_value_raw": "mcooke@haigh.co.uk",
      "extraction_method": "regex",
      "id": 919048,
      "is_primary": 0,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_email_regex",
      "rule_version": "v1",
      "source_area": "to_header",
      "source_index": 1,
      "source_subarea": "regex"
    },
    {
      "confidence": "0.9600",
      "entity_type": "invoice_reference",
      "entity_value_normalised": "16897453",
      "entity_value_raw": "16897453",
      "extraction_method": "regex",
      "id": 919049,
      "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"
    }
  ],
  "extracted_entities_json": {
    "counts": {
      "company_name": 0,
      "date": 0,
      "email_address": 4,
      "invoice_reference": 1,
      "job_reference": 0,
      "money_amount": 0,
      "order_reference": 0,
      "person_name": 0,
      "phone_number": 0,
      "po_reference": 0,
      "postcode": 0,
      "quote_reference": 0,
      "url": 0
    },
    "entities": {
      "company_name": [],
      "date": [],
      "email_address": [
        "fatoumatta.sanneh@dpd.co.uk",
        "accounts@mpcservices.co.uk",
        "mcooke@haigh.co.uk",
        "dpd.credit@dpd.co.uk"
      ],
      "invoice_reference": [
        "16897453"
      ],
      "job_reference": [],
      "money_amount": [],
      "order_reference": [],
      "person_name": [],
      "phone_number": [],
      "po_reference": [],
      "postcode": [],
      "quote_reference": [],
      "url": []
    },
    "last_processed_at": "2026-05-19T01:30:04Z",
    "primary": {
      "email_address": "fatoumatta.sanneh@dpd.co.uk",
      "invoice_reference": "16897453"
    },
    "version": "v1"
  },
  "from_email": "fatoumatta.sanneh@dpd.co.uk",
  "full_message": "Thanks for your business!\n\nPlease find attached your latest invoice.\n\nWe'd like to take this opportunity to thank you for your continued business.\n\nIf you have any queries, please feel free to drop us an email to dpd.credit@dpd.co.uk",
  "human_notes": null,
  "human_summary": null,
  "human_title": null,
  "id": 58754,
  "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": true,
  "message_id": "20260412115705.8662440CF4@smtp-out-set2-1.geopostuk.com",
  "primary_action_case": null,
  "primary_company_href": "/contacts?search=DPD",
  "primary_company_name": "DPD",
  "received_at": "Sun, 12 Apr 2026 11:57:05 GMT",
  "safe_classification_source": "rule",
  "snippet": "Thanks for your business! Please find attached your latest invoice. We'd like to take this opportunity to thank you for\u2026",
  "source": "Mailcow IMAP",
  "spam_classification_source": "safe_override",
  "status": "new",
  "subject": "Invoice 16897453 from DPD for 412154",
  "suggested_company": null,
  "suggested_customerid": null,
  "tags": null,
  "to_email": "accounts@mpcservices.co.uk, mcooke@haigh.co.uk",
  "type": "inbound"
}
