Hello there,
Thank you for your work to update your publicly facing resources, first and foremost.
I’m helping my employer migrate an existing product to the new API.
I’m wondering, can we access document barcodes for “/company/company_number/filing-history” in their XML gateway form?
We rely on these to determine if we already have local copies to transfer to users or whether we would need to file an offline document request.
Thanks and kind regards,
Luke Brooks
Luke,
Could you confirm which XML Gateway element you are using to identify the document which you are then attempting to translate to the JSON API?
Given the fact that documents are now free of charge then you could develop the service to retrieve a fresh local copy on demand from the new API which you could then cache locally.
Thanks,
Mark.
Hello Mark,
I believe It’s the “bar_code_ref” element in the old API.
One issue I’m experiencing with migrating this app to the new API is that in “/company/company_number/filing-history” most barcodes seem to be missing at the moment, and that’s requiring a visit to the document[‘links’][‘document_metadata’] attribute for barcodes that appear to have been omitted from the initial request.
This can result in an unnecessary five or so seconds of latency for what should really just be the one initial request.
Are there any plans to include the barcodes in /company/company_number/filing-history?
Cheers,
Luke