|
delbooking_v2_1
car2go API Documentation - Cancel booking
Cancel bookingThis function provides cancellation of an existing booking. Currently only HTTP DELETE is allowed. Access to this function is restricted. See OAuth documentation for more details.
Parameters
Request ExamplesDELETE https://www.car2go.com/api/v2.1/booking/1234 DELETE https://www.car2go.com/api/v2.1/booking/8152 ResponseThe cancellation information of a booking consists of:
Response ExamplesA XML response example of cancel booking request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cancelBookingResponse xmlns="http://www.car2go.com/openapi/xmlschema">
<returnValue>
<code>0</code>
<description>Operation successful.</description>
</returnValue>
<cancelBooking>
<cancelFeeExists>true</cancelFeeExists>
<cancelFee>4.00</cancelFee>
<cancelFeeCurrency>EUR</cancelFeeCurrency>
</cancelBooking>
</cancelBookingResponse>
A JSON example:
TestModeDeletion of a booking in test mode requires one of test booking ids to be passed. 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