On 6 Feb., 11:06, Andreas Kern <andreask
...@mac.com> wrote:
Hi Andreas,
> I have one question:
> If I call the getBookings API request. The API will return me two bookings. One with a vehicle and one without. The value for the "vehicle" key is null in the second booking. I can remember that, the behavior of the 2.0 API was, that bookings without a vehicle didn't contain a "vehicle" key. Now there is a vehicle key with the value null. Was this behavior changed in the 2.1 API? Or is this a bug in the Testing API?
Are you referring to the JSON or XML Output? For JSON the null value
should be there with or without test=1 (for long term booking which do
not yet have an vehicle assigned). For XML there should not be a
vehicle key if the value is null.
This is not realy a consistent behaviour between the JSON and the XML
output, but it should be consistent between test and non test
requests.
Claus