Creating Mileage Expense

I use this (in c#)

public enum VehicleType
{
Car = 0,
Motorcycle = 1,
Bicycle = 2
}

the easiest way I’ve found to work out what the api wants, is to make
something in the web ui, then GET the item out using the api, and
follow the json you get back.On 3 May 2013 15:11, adders73@gmail.com wrote:

Hi

We new to freeagent API. Been trying to create a mileage post using the
required fields per the documentation. However, the error message (422) is
vehicle_type is not valid. We have duly added (though not specified as
required in the API), - vehicle_type: “Car” - error message 404 "
resource not found"

Any guidance would be great

Do we need to create the vehicle types or are they preset , if creation is
need how is this done?

Thanks
Paul


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/