Where to find transaction_id required for Documents API?


As per the documentation for https://developer.companieshouse.gov.uk/api/docs/company/company_number/filing-history/transaction_id/getFilingHistoryItem.html, 2 pieces of information are required: the company number and the transaction_id. However, the documentation doesn’t mention anywhere that I can see, where this transaction id is to be found? Is it returned as part of some other endpoint?

Kind Regards,

Check these:

It’s non-optional part of the item returned when you list a file history that acts as a unique identifier for that item.

We would recommend you use the document_metadata link returned by the filing history resource, instead of manipulating the API URL yourself. Every resource for a company should be discoverable from the company profile resource, however we are aware that some are missing due to an oversight early on in development. This is in the process of being corrected.

Please take a look at the following post, particularly my response (two or three replies in) for an explanation of the issues with URL manipulation: