The booking request is done after the Booking Info request was completed, and you have collected all the customer details required for the booking. Booking Request <request version="4.0"> <auth> <username>example</username> <password>example</password> <agent><![CDATA[example]]></agent> <customfields></customfields> </auth> <cars-book session="h2.8001232341126" token="h2.914343416" clientRef="12345" pickUpStation="z1" dropOffStation="z2"> <customer> <title>MS</title> <firstName>Sophie</firstName> <lastName>McBoo</lastName> <phone type="home">123456</phone> <email>sophiemcboo@example.com</email> <address>123 Main st.</address> <postCode>88888</postCode> <city>Somewhere</city> <state>N/A</state> <countryCode>UK</countryCode> <age>33</age> </customer> <special-request-fields> <field code="0"></field> </special-request-fields> <optional-components> <optional-component token="h1.17345555606" /> </optional-components> </cars-book> </request>
Notes:
Booking Response <?xml version="1.0"?> <response success="1" time="2015-02-16 12:44:14" session="h1.12323434111135"> <reservation id="tt.20823434371" status="confirmed" clientReference="12334"> <item id="1" status="confirmed" token="h1.1323434453514"> <source provider="example-provider"> <reference>abc-123</reference> <price amount="101.24" currency="GBP"></price> </source> <booking billable="1"> <price amount="101.24" currency="GBP"></price> </booking> <stations> <station type="pickUp"> <carCompany companyId="EP"><![CDATA[Europcar]]></carCompany> <stationName><![CDATA[Dublin Airport, Ireland]]></stationName> <address><![CDATA[MAIN ARRIVALS HALL DUBLIN AIRPORT]]></address> <city><![CDATA[Dublin, Ireland]]></city> <country><![CDATA[IE]]></country> <zipCode><![CDATA[]]></zipCode> <state><![CDATA[]]></state> <phone><![CDATA[]]></phone> <airport><![CDATA[DUBT01]]></airport> <coordinates> <latitude>0534220</latitude> <longitude>-0062254</longitude> </coordinates> <days> <day day="Monday" isClosed="0" is24="1"> <hours> <hour open="00:00:00" close="00:00:00"></hour> <hour open="00:00:00" close="00:00:00"></hour> </hours> </day> <day day="Tuesday" isClosed="0" is24="0"> <hours> <hour open="05:00:00" close="23:59:00"></hour> <hour open="00:00:00" close="00:00:00"></hour> </hours> </day> ... </days> </station> <station type="dropOff"> <carCompany companyId="EP"><![CDATA[Europcar]]></carCompany> <stationName><![CDATA[Dublin Airport, Ireland]]></stationName> <address><![CDATA[MAIN ARRIVALS HALL DUBLIN AIRPORT]]></address> <city><![CDATA[Dublin, Ireland]]></city> <country><![CDATA[IE]]></country> <zipCode><![CDATA[]]></zipCode> <state><![CDATA[]]></state> <phone><![CDATA[]]></phone> <airport><![CDATA[DUBT01]]></airport> <coordinates> <latitude>0534220</latitude> <longitude>-0062254</longitude> </coordinates> <days> <day day="Monday" isClosed="0" is24="1"> <hours> <hour open="00:00:00" close="00:00:00"></hour> <hour open="00:00:00" close="00:00:00"></hour> </hours> </day> <day day="Tuesday" isClosed="0" is24="0"> <hours> <hour open="05:00:00" close="23:59:00"></hour> <hour open="00:00:00" close="00:00:00"></hour> </hours> </day> ... </station> </stations> <car-details transmission="manual" airConditionIndication="" doors="0" maxPassengers="5" luggageLarge="1" luggageSmall="1"> <carName><![CDATA[VW Polo 2 Door Economy 2/4 Dr.]]></carName> <carCompany><![CDATA[Europcar]]></carCompany> <type><![CDATA[]]></type> <class><![CDATA[Economy]]></class> </car-details> <additional-components> <component> <name><![CDATA[SuperMax Insurance]]></name> <desc><![CDATA[]]></desc> <price amount="21.4" currency="GBP"></price> </component> </additional-components> <driver-info> <title>M</title> <firstName><![CDATA[Sophie]]></firstName> <lastName><![CDATA[McBoo]]></lastName> <age>47</age> </driver-info> <cancellation> <frame endTime="" timezone="UTC" type="non-refundable"></frame> </cancellation> <rules-restrictions> <rule> <name><![CDATA[Cover Description]]></name> <description><![CDATA[Europcar Ireland Covers - Collision Damage Waiver, Theft Wavier, Third Party Liability, Eco and Road Tax Fees, Unlimited Mileage ]]></description> </rule> ... </rules-restrictions> </item> </reservation> </response>
1. all rules and restrictions MUST be displayed on the voucher you issue to the client without any change |