companyProfile resource issues

I’m having a few problems with the data returned by the companyProfile resource. I’m not sure if the documentation is wrong or there is a problem with the data.

The documentation shows registered_office_address.address_line_1, registered_office_address.postal_code and registered_office_address.premises all as non-optional, so should always be returned. However, I’ve found a number of cases, where these parameters are missing.

registered_office_address.country has a list of possible values (Wales, England, Scotland, Great Britain, Not specified, United Kingdom, Northern Ireland), however I’m getting values that aren’t in this list e.g. Netherlands.

Can you advise if the documentation is incorrect or if there is a problem with the data.

I have an additional issue where the companyProfile returned the following response:

{
“etag” : “c3eb3ed700ed7870ef3e5f746be582c7d587f8e8”,
“registered_office_address” : {
},
“can_file” : false
}

As you can see the majority of parameters are missing. Is this a data issue? I would have assumed that if this data were missing then the ‘company_profile_not_found’ error would be raised instead.

@sara_blair

Unfortunately it is the documentation which is incorrect. The address_line_1, postal_code and premises are all optional fields.

As for the country lists again the documentation needs to be updated to reflect the information that is being returned. The non UK addresses relate to foreign companies that are registered at Companies House with the documentation not taking this into account.

I will look to get the documentation changed to reflect this.

Thanks,

@mfairhurst

@mfairhurst

Many thanks for your response. You’ve said this is a documentation issue, is that true of the example I gave as well? As you can see the majority of the fields are missing. Should the documentation show that every field is optional?

@sara_blair

Sorry, missed that bit of the post. What company number returns that information?

Thanks

@mfairhurst

@mfairhurst

Company number NF002685. It was found during our testing.

Many thanks.