|
getbooking_v2_1
car2go API Documentation - Get booking
Get bookingProvides the detailed information of a recently booked vehicle for the current user. The vehicle must have been assigned to the authenticated user. Access to this function is restricted. See OAuth documentation for more details.
Parameters
Request ExamplesGET https://www.car2go.com/api/v2.1/booking?loc=austin GET https://www.car2go.com/api/v2.1/booking?loc=ulm ResponseBooking details of the current reserved car consists of:
Response ExamplesA XML response example of reserved vehicle:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bookingResponse xmlns="http://www.car2go.com/openapi/xmlschema">
<returnValue>
<code>0</code>
<description>Operation successful.</description>
</returnValue>
<booking>
<bookingId>2910</bookingId>
<reservationTime>2010-03-29T09:00:00+01:00</reservationTime>
<bookingposition>
<latitude>48.423291</latitude>
<longitude>9.939559</longitude>
<address>Daimler Mitarbeiterparkplatz, Wilhelm-Runge-Strasse</address>
</bookingposition>
<account>
<accountId>1002</accountId>
<description>Max Mustermann1002</description>
</account>
<vehicle>
<vin>WME0000000K000010</vin>
<numberPlate>UL-C1010</numberPlate>
<fuel>90</fuel>
<interior>GOOD</interior>
<exterior>GOOD</exterior>
<position>
<latitude>48.42188</latitude>
<longitude>9.9411</longitude>
<address>Wilhelm-Runge-Strasse 10, 89081 Ulm</address>
</position>
<engineType>CE</engineType>
</vehicle>
</booking>
</bookingResponse>
A JSON example:
Test ModeResponse contains one booking for one of the test accounts. Return CodesThe following return codes may occur:
(c) 2010 car2go GmbH. All rights reserved. Generated 03.02.12 08:59 | |||||||||||||||||||||||||||||||||||||||||||
► Sign in to add a comment