Request for expense types api response

Hi all,

In the “New Out-of-pocket Expense” web page, the “Category” dropdown control
has expense types in four different groups (“Admin expenses (normally
VATable)”, etc) which correspond to the xml result returned by the
“GET expenses/types” api call. However, the group nodes in the api response
have no human readable value. It would be nice to add an attribute to the
“normally-vatable-admin-expenses” node for example with key-value pair as
follows: name=“Admin expenses (normally VATable)”, and likewise for the
other group nodes.

So, by way of example, the current response of…

Accommodation and Meals ...

… should be changed to…

Accommodation and Meals ...

… or something like this, unless there is another way to get expense group
names?

Regards,
Adil Hussain

Hi Adil

Out of interest, what would you be using the readable name for? I would
recommend just providing a mapping in your own app for now.

Olly

Thanks for the response Olly. It’s for the text to put in in grouping the
category options when creating a new expense. I’ve put in a mapping in my
code for now which maps “cost-of-sales” to “Cost of Sales (normally
VATable)” and likewise for the other three category groups. However, the
problem with this is that it’s hardwired in my code and relies on me (or
someone) updating the code if there is a change in the api response (e.g. if
a new category group is introduced) and I would prefer any changes to the
api being handled automatically by my code. Just a nicety to have. Feel free
to ignore if not worth the effort.

Regards,
AdilOn Thu, Oct 20, 2011 at 5:26 PM, Olly olly@freeagent.com wrote:

Hi Adil

Out of interest, what would you be using the readable name for? I would
recommend just providing a mapping in your own app for now.

Olly


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/wf52E2MJR7kJ.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.