Sorry, I had misunderstood your question indeed. If what you meant was “where can I find the ‘officer_id’ parameter that we need to feed in to the ‘Officer Disqualifications’ endpoint” then the answer is “you get that from the ‘search disqualified officer’ endpoint”. Specifically, you search there with a search term, and that returns a list (‘items’) of search results. The “links” member of each of these should have a “self” item which points to the appropriate disqualified officer resource. Because that endpoint contains the officer_id - that’s your answer.
Example using curl (some data clipped for clarity) - search for “smith”:
curl -uMYAPI_KEY: "https://api.companieshouse.gov.uk/search/disqualified-officers?q=smith"
This returns:
{
"page_number": 1,
"total_results": 71,
"items_per_page": 20,
"start_index": 0,
"kind": "search#disqualified-officers",
"items": [
{
"description": "Born on 10 December 1963 - Disqualified",
"address": {
...
},
"kind": "searchresults#disqualified-officer",
"links": {
"self": "/disqualified-officers/natural/ZiqZVf1F4yMpQS0UjdnYB63YAMw"
},
...
},
...
}
We can take the links.self value and request this directly (no need to parse out the officer_id - you’d then need to know whether to use “natural” or “corporate” …):
curl -uMYAPI_KEY: "https://api.companieshouse.gov.uk/disqualified-officers/natural/ZiqZVf1F4yMpQS0UjdnYB63YAMw"
This returns:
{
"nationality": "British",
"etag": "05f59e38a8b529f271ff355e0c22646145272c08",
"kind": "natural-disqualification",
"disqualifications": [
...
],
...
}
Unfortunately that’s as far as it goes - this data doesn’t directly link anywhere else in the API making this whole process a bit of a fishing expedition.
I thought you were asking (as others have done) whether there was a link between the disqualified officer “officer_id” and the officers “officer_id” e.g. if there was a one-to-one link you could invoke. Companies House have stated this is not the case - if you need to make the link you’ve got to do your own lookup and matching. Exception to this - the (chargeable) XML Gateway appears to allow you to link the two data sets - but that’s outside the scope of this forum.