My favorites | Sign in
Project Home Downloads Wiki Issues
Search
for
index_v2_1  
car2go API Documentation - Index API 2.0
Updated Aug 17, 2011 by claus.na...@daimler.com

car2go API v2.1

Endpoints

Name Method Url Access
Get all parking spots GET http://www.car2go.com/api/v2.1/parkingspots public
Get all locations GET http://www.car2go.com/api/v2.1/locations public
Get all gas stations GET http://www.car2go.com/api/v2.1/gasstations public
Get all free vehicles GET http://www.car2go.com/api/v2.1/vehicles public
Get all accounts GET https://www.car2go.com/api/v2.1/accounts protected
Get bookings GET https://www.car2go.com/api/v2.1/bookings protected
Create booking POST https://www.car2go.com/api/v2.1/bookings protected
Get booking GET https://www.car2go.com/api/v2.1/booking protected
Cancel booking DELETE https://www.car2go.com/api/v2.1/booking/bookingId protected

See OAuth Documentation if you want to learn how to access protected API functions.

Return values

Response format is defined in [openapi.xsd openapi.xsd]

The following return codes may occur:

Code Description
0 Operation successful.
1 Location invalid.
2 UserId invalid.
3 No valid accounts found.
4 Not all necessary url parameters provided.
5 A technical error occured.
6 Invalid url parameter provided.
7 No valid driver license information could be found.
8 The account is locked.
9 The vehicle can not be booked.
10 Vehicle invalid.
11 Booking id invalid.
12 No reserved vehicle found.

Some API functions result in KML response. More information can be found here: KML Reference at code.google.com

(c) 2010 car2go GmbH. All rights reserved. Generated 17.08.11 16:28


Sign in to add a comment
Powered by Google Project Hosting