Filing "type" missing from a getFilingHistoryItem

Hello, I’ve come across a case where a filing in getFilingHistoryItem (and the same filing in it’s corresponding getFilingHistoryList) does not have a “type” (which according to the docs should be required). However viewing that same filing on beta.companieshouse.go.uk lists the correct type.

The filing is for SC311560 and the transaction id is MzE5NTU5MDY4MWFkaXF6a2N4, the response body from the API at /company/SC311560/filing-history/MzE5NTU5MDY4MWFkaXF6a2N4 is:

{
    "annotations": [
        {
            "annotation": "Clarification A second filed SH01 was registered on 31/01/2018.",
            "category": "annotation",
            "date": "2018-01-31",
            "description": "annotation",
            "description_values": {
                "description": "Clarification a second filed SH01 was registered on 31/01/2018."
            },
            "type": "ANNOTATION"
        }
    ],
    "barcode": null,
    "links": {
        "self": "/company/SC311560/filing-history/MzE5NTU5MDY4MWFkaXF6a2N4"
    },
    "paper_filed": true,
    "transaction_id": "MzE5NTU5MDY4MWFkaXF6a2N4"
}

While you can see the filing type is RP04SH01 at https://beta.companieshouse.gov.uk/company/SC311560/filing-history?page=2 (title is “Second filing of a statement of capital following an allotment of shares on 6 April 2017” in case new filings shift it off linked page)

The filing history item to which you refer is an incorrect entry in the company’s filing history record and has been deleted accordingly.
I believe the document you refer to as seeing on beta.companieshouse.gov.uk is /company/SC311560/filing-history/MzE5NjYxNTQ0NGFkaXF6a2N4.
You are absolutely correct in stating that all filing history documents must contain a type and date.