At the moment (2020-06-28 18:40) I also get 405 Method Not Allowed
for these.
I don’t normally use this (company profile has this covered anyway). I thought I remembered another post saying the same a while back but can’t find it. Possibly coincidence but I don’t think I’ve ever seen this returned in the links section of the company profile endpoint (not that this proved anything).
I tried:
curl -uMY_API_KEY: "https://api.companieshouse.gov.uk/company/NF004299"
{
"date_of_creation": "2008-11-18",
"company_name": "PLATTS DRIEVAP ENGINEERING LIMITED",
"type": "oversea-company",
"undeliverable_registered_office_address": false,
"registered_office_address": {
"address_line_1": "10 Dargan Crescent",
"address_line_2": "Belfast",
"postal_code": "BT3 9JP"
},
"company_number": "NF004299",
"jurisdiction": "united-kingdom",
"etag": "7383e99a622ec09a92981cb4db514c5fa5accbf6",
"company_status": "active",
"links": {
"self": "/company/NF004299",
"filing_history": "/company/NF004299/filing-history",
"officers": "/company/NF004299/officers",
"uk_establishments": "/company/NF004299/uk-establishments"
},
...
}
But:
curl -uMY_API_KEY: "https://api.companieshouse.gov.uk/company/NF004299/registered-office-address"
HTTP/1.1 405 Method Not Allowed
Date: Sun, 28 Jun 2020 17:35:19 GMT
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-RateLimit-Query, origin, content-type, content-length, user-agent, host, accept, authorization
Access-Control-Expose-Headers: X-RateLimit-Window, X-RateLimit-Limit, X-RateLimit-Remain, X-RateLimit-Reset, Location, www-authenticate, cache-control, pragma, content-type, expires, last-modified
Access-Control-Max-Age: 3600
X-Ratelimit-Limit: 600
X-Ratelimit-Remain: 597
X-Ratelimit-Reset: 1593365982
X-Ratelimit-Window: 5m
Server: CompaniesHouse
Same story with e.g. https://api.companieshouse.gov.uk/company/00048839/registered-office-address