# Filing History Description Formatting

**URL:** <http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102>\
**Category:** API Issues\
**Created:** [June 16, 2015, 2:11pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102 "2015-06-16T14:11:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![hywel\_bromby](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@hywel\_bromby](http://forum.companieshouse.gov.uk/u/hywel_bromby)\
**Post date:** [June 16, 2015, 2:11pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/1 "2015-06-16T14:11:26Z")

</div>

Hi,

The description in the Filing History call returns in the form

“a-string-of-words-separated-by-hyphens”

Is there any plan to have a different description returned, similar to on the beta site?

---

<div class="post-metadata">

**Author:** ![csmith](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/csmith/32/8_2.png) [@csmith](http://forum.companieshouse.gov.uk/u/csmith)\
**Post date:** [June 18, 2015, 4:46pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/2 "2015-06-18T16:46:19Z")

</div>

Hi Hywel.

What you’re missing is access to the enumeration repository, which will initially be made available through github. This will give you the necessary enum to display string lookups. We are also looking at providing an API endpoint to access the enumeration lists, which will allow mobile apps and other rolled-out applications to avoid building in the lookups and to keep in step with enumeration value changes.

As you will have seen, through customer feedback we’re changing and cleaning up some of the resources, such as the search API, and this affects the enumeration values. We’re currently doing the work required to release the enumerations.

Best.

---

<div class="post-metadata">

**Author:** ![hywel\_bromby](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@hywel\_bromby](http://forum.companieshouse.gov.uk/u/hywel_bromby)\
**Post date:** [July 1, 2015, 3:02pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/3 "2015-07-01T15:02:34Z")

</div>

Has any progress been made on this? For a service who’s PRIMARY purpose is to provide filing history, it seems a bit remiss to not actually give a valid description of each item in the filing history

---

<div class="post-metadata">

**Author:** ![mfairhurst](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mfairhurst](http://forum.companieshouse.gov.uk/u/mfairhurst)\
**Post date:** [July 2, 2015, 8:15am UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/4 "2015-07-02T08:15:14Z")

</div>

We have made the github repository available with the descriptions and can be found at the following link:

> **[companieshouse/api-enumerations](https://github.com/companieshouse/api-enumerations)**
>
> Contribute to companieshouse/api-enumerations development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [July 2, 2015, 9:28am UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/5 "2015-07-02T09:28:06Z")

</div>

Are there any plans to provide a simple plain text description similar to what we get with the XML gateway with the response? The amount of post-processing now required to get what used to come with the response feels like a bit of a step backwards.

---

<div class="post-metadata">

**Author:** ![hywel\_bromby](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@hywel\_bromby](http://forum.companieshouse.gov.uk/u/hywel_bromby)\
**Post date:** [July 6, 2015, 2:35pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/6 "2015-07-06T14:35:15Z")

</div>

Hi

Can you please explain the rational behind providing a lookup value, with enumerations and possibly an API, rather than just populating the description with the actual value. No other part of CHS works this way.

The way you have gone will require ANY user to have to do a lot of post processing on the data, which is less than ideal.

Given that your BETA site populates the “full” description, I assume you already have a module to create this description, could you either prepopulate a “full” description or make the module accessible via an API?

Cheers

Hywel

---

<div class="post-metadata">

**Author:** ![hywel\_bromby](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@hywel\_bromby](http://forum.companieshouse.gov.uk/u/hywel_bromby)\
**Post date:** [July 9, 2015, 10:58am UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/7 "2015-07-09T10:58:55Z")

</div>

Hi it would appear that your GitHub repository stores a list of strings, that need parameters added.

e.g.  
‘capital-cancellation-shares’ : “\*_Cancellation of shares._\* Statement of capital on {date}”

**Do you have a mapping document between the parameters needed and the API values returned?**

Since there are numerous dates returned in many of the calls that would use this (and other) examples, how is the end user to know which one to use?

Again I ask, why not provide the formatted description that you use in your BETA site?

---

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [July 13, 2015, 9:12am UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/8 "2015-07-13T09:12:46Z")

</div>

If you loop through the items in **description\_values** you can use these to fill in the blanks. Which requires more post processing on our part and is not ideal.

It also creates a whole other problem which I’ll make a seperate thread for.

For items where the description is “legacy” then the actual fully rendered description string is in descitpion\_values.

---

<div class="post-metadata">

**Author:** ![hywel\_bromby](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@hywel\_bromby](http://forum.companieshouse.gov.uk/u/hywel_bromby)\
**Post date:** [July 13, 2015, 9:31am UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/9 "2015-07-13T09:31:11Z")

</div>

Thanks Ash, hadn’t noticed the “description\_values” field, What a fantastically elegant solution… 🙂

---

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [July 13, 2015, 12:38pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/10 "2015-07-13T12:38:24Z")

</div>

And then you need to recursively check associated filing(s) and resolutions and they have their own descriptions that need to be looked up and description\_values that need to be replaced!

It gets more confusing when you look at something like a “statement-of-capital” as this has a single value {date} that needs to be substituted as well a description\_value “capital” which is actually a tuple of two other values with no indication of where it should go in the description. It also has an “original description” value.

---

<div class="post-metadata">

**Author:** ![daniel\_aston](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@daniel\_aston](http://forum.companieshouse.gov.uk/u/daniel_aston)\
**Post date:** [January 7, 2016, 10:26am UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/11 "2016-01-07T10:26:53Z")

</div>

Question on this topic: why the double asterisks in the enumerated descriptions?

---

<div class="post-metadata">

**Author:** ![mfairhurst](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mfairhurst](http://forum.companieshouse.gov.uk/u/mfairhurst)\
**Post date:** [January 11, 2016, 1:32pm UTC](http://forum.companieshouse.gov.uk/t/filing-history-description-formatting/102/12 "2016-01-11T13:32:42Z")

</div>

@daniel_aston

It’s standard markdown language, so double asterisks is to identify bold. Not sure how useful this is though to API users.

Thanks

Mark.
