Can't get company_details working

Hi,

I thought that this would be easy. I have got the Oracle PLSQL code working to search for a company and I am trying to follow that up with an API call to get company details for a specific company - and so far failing.
I am using

https://developer.companieshouse.gov.uk/api/docs/company/company_number/readCompanyProfile.html

so my endpoint is https://api.companieshouse.gov.uk/company/
and I then pass in a parameter called ‘company_number’ with a string value of the actual company number that I’m interested in.

The result returned is simply {}.

I’m sure that I’m doing something silly, but I have been trying variations all afternoon with no luck.

Regards,
Chris

More information:
I’m trying to exclude my Oracle code as being the problem and have found this website (hurl.it). It is also not returning any data so may help in showing what I’m doing wrong.

Regards,
Chris

@phillips_chris

The URL that should be used is

https://api.companieshouse.gov.uk/company/01414945

the…

?company_number=01414945 is incorrect

Thanks

@mfairhurst

Hi,

Thanks, that’s it. I knew it had to be something simple.
I just couldn’t see the difference between the Search companies call and this basic company information call.

Thanks,
Chris