I have a long-running application making journal entries to Free Agent which has been working fine. I run the application every 3-4 weeks.
Today it stopped working. I retrieve all categories in order to find the “Stock” category 609 by name. But suddenly, I can’t find the “Stock” category. Running my application in the debugger, I can see that the description for the 609 category is “Stock Item”, and there is no longer a category with the “Stock” description.
Here it is as a python dict:
(Pdb) self.all_categories[‘general_categories’][25]
{u’url’: u’https://api.freeagent.com/v2/categories/609’, u’nominal_code’: u’609’, u’description’: u’Stock Item’}
HOWEVER, if I look at historic journal entries in the web UI, category 609 still appears as “Stock”.
Questions for Free Agent:
- Has there been a change to the description of category 609? If so, why?
- Why is this different description only appearing in the API, not the web UI.
I tried raising this issue on the helpline, but they re-directed me here, as this is where the Free AGent API engineers hang out…
Thanks