{
  "accounts_classification_source": "classifier",
  "accounts_classifier": {
    "confidence": "high",
    "effective": true,
    "evidence": [
      "invoice reference 248 matched the email content",
      "strong accounts wording detected: invoice, remittance, statement",
      "supporting payment wording detected: payment, paid, bacs"
    ],
    "invoice_matches": [
      {
        "evidence": "subject contained invoice reference 248",
        "match_text": "Invoice ME248",
        "score": 96,
        "source": "subject",
        "sources": [
          "subject"
        ],
        "value": 248
      }
    ],
    "medium_keyword_hits": [
      "payment",
      "paid",
      "bacs"
    ],
    "score": 110,
    "strong_keyword_hits": [
      "invoice",
      "remittance",
      "statement"
    ]
  },
  "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>Dear MPC SERVICES (UK) LTD,</p><p>Please find attached your invoice(s): #Z0600347, Z0600350 and where applicable statement.</p><p>Note: Please ignore this email if you have already paid your invoice.</p><p>PAYING YOUR INVOICE(s)</p><p>ONLINE / TELEPHONE CARD PAYMENT<br>You can make payment by logging into your online account - www.huwsgray.co.uk/shop/pay. Alternatively you may call our accounts team direct on 01248 724750 to pay over the phone.</p><p>BACS<br>Huws Gray Ltd<br>Sort Code 40-30-14<br>Acc Number 91135848<br>HSBC Plc<br>Please quote your customer account number (Found on your invoice or statement)</p><p>CHEQUE<br>Please attach remittance advice and make your cheque payable to Huws Gray Ltd then send your cheques to:<br>Huws Gray Ltd, Please write the account number on the reverse side of cheque.</p><p>AT YOUR LOCAL BRANCH<br>You may also make payment at your local branch. Please visit our website to find your nearest branch.</p>",
  "body_text": "Dear MPC SERVICES (UK) LTD,\n\nPlease find attached your invoice(s): #Z0600347, Z0600350 and where applicable statement.\n\nNote: Please ignore this email if you have already paid your invoice.\n\nPAYING YOUR INVOICE(s)\n\nONLINE / TELEPHONE CARD PAYMENT\nYou can make payment by logging into your online account - www.huwsgray.co.uk/shop/pay. Alternatively you may call our accounts team direct on 01248 724750 to pay over the phone.\n\nBACS\nHuws Gray Ltd\nSort Code 40-30-14\nAcc Number 91135848\nHSBC Plc\nPlease quote your customer account number (Found on your invoice or statement)\n\nCHEQUE\nPlease attach remittance advice and make your cheque payable to Huws Gray Ltd then send your cheques to:\nHuws Gray Ltd, Please write the account number on the reverse side of cheque.\n\nAT YOUR LOCAL BRANCH\nYou may also make payment at your local branch. Please visit our website to find your nearest branch.",
  "calls_classification_source": "default",
  "calls_override": null,
  "cc_email": "",
  "closed_date": null,
  "contact_email": "salesledger@huwsgray.co.uk",
  "contact_id": 1568,
  "contact_is_safe": false,
  "contact_name": "",
  "contact_open_url": "/contacts?open=1568&search=salesledger%40huwsgray.co.uk",
  "contact_type": "b2b",
  "display_body_html": "<p>Dear MPC SERVICES (UK) LTD,</p><p>Please find attached your invoice(s): #Z0600347, Z0600350 and where applicable statement.</p><p>Note: Please ignore this email if you have already paid your invoice.</p><p>PAYING YOUR INVOICE(s)</p><p>ONLINE / TELEPHONE CARD PAYMENT<br>You can make payment by logging into your online account - www.huwsgray.co.uk/shop/pay. Alternatively you may call our accounts team direct on 01248 724750 to pay over the phone.</p><p>BACS<br>Huws Gray Ltd<br>Sort Code 40-30-14<br>Acc Number 91135848<br>HSBC Plc<br>Please quote your customer account number (Found on your invoice or statement)</p><p>CHEQUE<br>Please attach remittance advice and make your cheque payable to Huws Gray Ltd then send your cheques to:<br>Huws Gray Ltd, Please write the account number on the reverse side of cheque.</p><p>AT YOUR LOCAL BRANCH<br>You may also make payment at your local branch. Please visit our website to find your nearest branch.</p>",
  "display_body_invalid_reason": "",
  "display_body_source": "text/html",
  "display_body_text": "Dear MPC SERVICES (UK) LTD,\n\nPlease find attached your invoice(s): #Z0600347, Z0600350 and where applicable statement.\n\nNote: Please ignore this email if you have already paid your invoice.\n\nPAYING YOUR INVOICE(s)\n\nONLINE / TELEPHONE CARD PAYMENT\nYou can make payment by logging into your online account - www.huwsgray.co.uk/shop/pay. Alternatively you may call our accounts team direct on 01248 724750 to pay over the phone.\n\nBACS\nHuws Gray Ltd\nSort Code 40-30-14\nAcc Number 91135848\nHSBC Plc\nPlease quote your customer account number (Found on your invoice or statement)\n\nCHEQUE\nPlease attach remittance advice and make your cheque payable to Huws Gray Ltd then send your cheques to:\nHuws Gray Ltd, Please write the account number on the reverse side of cheque.\n\nAT YOUR LOCAL BRANCH\nYou may also make payment at your local branch. Please visit our website to find your nearest branch.",
  "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": "salesledger@huwsgray.co.uk",
      "entity_value_raw": "salesledger@huwsgray.co.uk",
      "extraction_method": "header_parse",
      "id": 641601,
      "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": "salesledger@huwsgray.co.uk",
      "entity_value_raw": "salesledger@huwsgray.co.uk",
      "extraction_method": "regex",
      "id": 641603,
      "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": 641604,
      "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": 641605,
      "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": "ME248",
      "entity_value_raw": "ME248",
      "extraction_method": "regex",
      "id": 641606,
      "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.9300",
      "entity_type": "person_name",
      "entity_value_normalised": "Huws Gray Sales Ledger",
      "entity_value_raw": "Huws Gray Sales Ledger",
      "extraction_method": "header_parse",
      "id": 641602,
      "is_primary": 1,
      "is_valid": 1,
      "notes": null,
      "rule_name": "header_display_person",
      "rule_version": "v1",
      "source_area": "from_header",
      "source_index": 0,
      "source_subarea": "display_name"
    },
    {
      "confidence": "0.8600",
      "entity_type": "phone_number",
      "entity_value_normalised": "01248724750",
      "entity_value_raw": "01248 724750",
      "extraction_method": "regex",
      "id": 641608,
      "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.9300",
      "entity_type": "url",
      "entity_value_normalised": "www.huwsgray.co.uk/shop/pay",
      "entity_value_raw": "www.huwsgray.co.uk/shop/pay",
      "extraction_method": "regex",
      "id": 641607,
      "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"
    }
  ],
  "extracted_entities_json": {
    "counts": {
      "company_name": 0,
      "date": 0,
      "email_address": 2,
      "invoice_reference": 1,
      "job_reference": 0,
      "money_amount": 0,
      "order_reference": 0,
      "person_name": 1,
      "phone_number": 1,
      "po_reference": 0,
      "postcode": 0,
      "quote_reference": 0,
      "url": 1
    },
    "entities": {
      "company_name": [],
      "date": [],
      "email_address": [
        "salesledger@huwsgray.co.uk",
        "accounts@mpcservices.co.uk"
      ],
      "invoice_reference": [
        "ME248"
      ],
      "job_reference": [],
      "money_amount": [],
      "order_reference": [],
      "person_name": [
        "Huws Gray Sales Ledger"
      ],
      "phone_number": [
        "01248724750"
      ],
      "po_reference": [],
      "postcode": [],
      "quote_reference": [],
      "url": [
        "www.huwsgray.co.uk/shop/pay"
      ]
    },
    "last_processed_at": "2026-04-23T10:30:36Z",
    "primary": {
      "email_address": "salesledger@huwsgray.co.uk",
      "invoice_reference": "ME248",
      "person_name": "Huws Gray Sales Ledger",
      "phone_number": "01248724750",
      "url": "www.huwsgray.co.uk/shop/pay"
    },
    "version": "v1"
  },
  "from_email": "Huws Gray Sales Ledger <salesledger@huwsgray.co.uk>",
  "full_message": "Dear MPC SERVICES (UK) LTD,\n\nPlease find attached your invoice(s): #Z0600347, Z0600350 and where applicable statement.\n\nNote: Please ignore this email if you have already paid your invoice.\n\nPAYING YOUR INVOICE(s)\n\nONLINE / TELEPHONE CARD PAYMENT\nYou can make payment by logging into your online account - www.huwsgray.co.uk/shop/pay. Alternatively you may call our accounts team direct on 01248 724750 to pay over the phone.\n\nBACS\nHuws Gray Ltd\nSort Code 40-30-14\nAcc Number 91135848\nHSBC Plc\nPlease quote your customer account number (Found on your invoice or statement)\n\nCHEQUE\nPlease attach remittance advice and make your cheque payable to Huws Gray Ltd then send your cheques to:\nHuws Gray Ltd, Please write the account number on the reverse side of cheque.\n\nAT YOUR LOCAL BRANCH\nYou may also make payment at your local branch. Please visit our website to find your nearest branch.",
  "human_notes": null,
  "human_summary": null,
  "human_title": null,
  "id": 65951,
  "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": "010b019db9e3f328-1f5b471a-5833-4705-bdd2-7fcd4ecf32ea-000000@eu-west-2.amazonses.com",
  "primary_action_case": null,
  "primary_company_href": "/supplier?supplierid=289",
  "primary_company_name": "Huws Gray Ltd",
  "received_at": "Thu, 23 Apr 2026 10:30:17 GMT",
  "safe_classification_source": "rule",
  "snippet": "Dear MPC SERVICES (UK) LTD, Please find attached your invoice(s): #Z0600347, Z0600350 and where applicable statement. N\u2026",
  "source": "Mailcow IMAP",
  "spam_classification_source": "safe_override",
  "status": "new",
  "subject": "Huws Gray Invoice ME248 #Z0600347, Z0600350",
  "suggested_company": null,
  "suggested_customerid": null,
  "tags": null,
  "to_email": "\"accounts@mpcservices.co.uk\" <accounts@mpcservices.co.uk>",
  "type": "inbound"
}
