Steps to Creating a Reservation

Top  Previous  Next

 

Get a list of tours for a current price schedule. this uses the default agency

 

als_get_tours_agency.cgi

 

 

Get Rates for a tour. Using Tour=1

 

als_get_rates.cgi?tour=1

 

<root>

<rates>

<row productname="Molokini & Turtle Arches Snorkel" categorycode="1" categoryname="Adult" basename="Maui" basecode="1" tourname="Molokini & Turtle Arches" tourcode="1" tourshortname="MOTA" price="79.95" fixedtax="3" commission="0" netrate="80.11" productcode="1" discount="8" discpercent="10" variabletaxamount="5.16" variabletaxrate="7.167"/>

<row productname="Molokini & Turtle Arches Snorkel" categorycode="5" categoryname="Child 7-12 (or Additional Child)" basename="Maui" basecode="1" tourname="Molokini & Turtle Arches" tourcode="1" tourshortname="MOTA" price="34.95" fixedtax="3" commission="0" netrate="36.7" productcode="1" discount="3.5" discpercent="10" variabletaxamount="2.25" variabletaxrate="7.167"/>

<row productname="Molokini & Turtle Arches Snorkel" categorycode="9" categoryname="Free Child 0-6 Per 1 Adult" basename="Maui" basecode="1" tourname="Molokini & Turtle Arches" tourcode="1" tourshortname="MOTA" price="0" fixedtax="0" commission="0" netrate="0" productcode="1" discount="0" discpercent="" variabletaxamount="" variabletaxrate="0"/>

<row productname="Molokini & Turtle Arches Snorkel" categorycode="6" categoryname="Other Comp" basename="Maui" basecode="1" tourname="Molokini & Turtle Arches" tourcode="1" tourshortname="MOTA" price="0" fixedtax="0" commission="0" netrate="0" productcode="1" discount="0" discpercent="" variabletaxamount="" variabletaxrate="0"/>

</rates>

</root>

 

This call returns Rate info as well as extended product info, perfect for a shopping cart page:

 

als_get_rates.cgi?product=1&productinfo=true

 

<root>

<rates>

<row categoryname="Adult" fixedtax="3" netrate="80.11" ratecode="1"/>

<row categoryname="Child 7-12 (or Additional Child)" fixedtax="3" netrate="36.7" ratecode="2"/>

<row categoryname="Free Child 0-6 Per 1 Adult" fixedtax="0" netrate="0" ratecode="3"/>

<row categoryname="Other Comp" fixedtax="0" netrate="0" ratecode="5"/>

</rates>

<products>

<row code="1" name="Molokini & Turtle Arches Snorkel" shortname="MOTA" salesinfo="What to bring: Towel, sunscreen, cover up, hat.  Menu: Breakfast: Includes fruits, pastries, island fruit juices and hot coffee. Barbeque Lunch: Grilled chicken, hot dogs, veggie burgers, pasta salad, chips, and cookies. Refreshments: Soda, juices, beer, wine, and mai tais   Includes: Snorkel gear (optical masks available) and flotation devices, Free learn to snorke class for beginners, Free guided reef tour led by naturalists, Free Jr. Naturalist program for kids  All reservations are non-refundable within 24 hours prior to the scheduled check-in.  All no-shows are non refundable. Pacific Whale Foundation reserves the right to reschedule or cancel due to weather at the discretion of the Captain.  " basecode="1" basename="Maui" groupname="" groupcode="" tour="Molokini & Turtle Arches"/>

</products>

</root>

 

 

Get Tour Availability

 

als_get_events.cgi?date=2007-09-20&tour=1

 

<root>

<events>

<row date="9/20/2007" eventcode="3574" time="07:00" tour="1" vessel="3" vesselname="Odyssey" operator="" openvesselno="0" tourshortname="MOTA" tourname="Molokini & Turtle Arches" maxseats="130" capacity="130" seats="0" blocks="70" seatsavail="60" operatorshortname="" operatorname="" durationminutes="300"/>

</events>

</root>

 

 

Get Tour Availability using a product

 

als_get_events.cgi?date=2007-09-20&product=1

 

<root>

<events>

<row date="9/20/2007" eventcode="3574" time="07:00" tour="1" vessel="3" vesselname="Odyssey" operator="" openvesselno="0" tourshortname="MOTA" tourname="Molokini & Turtle Arches" maxseats="130" capacity="130" seats="0" blocks="70" seatsavail="60" operatorshortname="" operatorname="" durationminutes="300"/>

</events>

</root>

 

Create a reservation

 

als_insert_reservation.cgi?date=2007-10-15&lastname=Lohan&firstname=Lindsey

 

<root>

<reservation>

<row code="38308" reconfirmed="False" agency="671" agent="" entereduser="" enteredon="9/24/2007 6:49:52 AM" sellinguser="" hotel="" resetype="1" room="" hotelphone="" pickup="False" pickuparea="" lastname="Lohan" firstname="Lindsey" fullname="Lohan, Lindsey" reservationnotes="" manifestnotes="" pickuphotel="" dropoff="False" dropoffhotel="" dropoffarea="" enteredagentcollected="" enteredcustomercollect="" agencypymt="" autoreleasehours="" active="True" lastupdate="9/24/2007 6:49:52 AM" base="" source="" datevalue="10/15/2007" forcepostfield="" pickuptime="" dropofftime="" otherphone="" email="" fax="" guarantee="" waitlist="False" noshow="False" giftcert="False" waitlistthroughdate="" invoiced="False" invoiceno="" invoicedate="" origin="" pickupoperator="" dropoffoperator="" cancellationno="" nobill="False" cancelreason="" leftmessage="False" phonecell="" eventno="" ticketed="False" specialeventnotes="" bookeddesk="" address1="" address2="" city="" state="" country="" zip="" aln_trans="" packageoffering="" aln_import="" masterreservation="" division="" lasteventdate="" packagegroup="" reseref1="" reseref2="" reseref3="" reseref4="" reseref5="" alnconf="" deletedseatdata="" ar_export="" product=""/>

</reservation>

 

the "Code" returned is the Reservation Number and is used to insert products into the reservation

 

Add a product/rate to a reservation

 

reservation: 38308

product=1

productcategory=1 //adult

qty of seats

 

als_insert_reservation_product.cgi?reservation=38308&productcategory=1&product=1&qty=2

 

<root>

<products>

<row seq="42931" reservation="38308" prodcatassign="1" datevalue="" timevalue="" quantity="2" seat="True" gross="79.95" variabletax="5.16" fixedtax="3" totaltax="8.16" total="80.11" commission="0" net="80.11" collectoncheckin="" billamount="80.11" lastupdate="" product="1" category="1" priceschrate="919" pricesch="9" discount="8" rateadjusted="" commonvariabletax="True" commonfixedtax="False" commbeforedisc="False" variabletaxrate="7.167" commrate="0" discpercent="10" priceschdate="10" trantype="3" vouchervalue="80.11" basebooked="" basetoured="" aln_transdet="" packagegroup=""/>

</products>

<seats>

<row seq="126131" reservation="38308" prodcatassign="" reserate="42931" reserateitemno="1" eventno="" lastupdate="9/24/2007 6:52:05 AM" weight="" weighttype="" seatno="" lastname="Lohan" firstname="" notes="" checkedin="False" paid="False" origin="" altable="" origweight="" origweighttype="" van="" datevalue="" base="" reseratepkgtour="" timevalue="" packagegroup="" person="" scaled="False"/>

<row seq="126132" reservation="38308" prodcatassign="" reserate="42931" reserateitemno="2" eventno="" lastupdate="9/24/2007 6:52:05 AM" weight="" weighttype="" seatno="" lastname="Lohan" firstname="" notes="" checkedin="False" paid="False" origin="" altable="" origweight="" origweighttype="" van="" datevalue="" base="" reseratepkgtour="" timevalue="" packagegroup="" person="" scaled="False"/>

</seats>

</root>

 

to get complete reservation info, use the complete=true flag for als_get_reservations.cgi

 

als_get_reservation.cgi?reservation=38311&complete=true

 

<root>

-

       <reservation>

<row code="38311" reconfirmed="False" agency="671" agent="2" entereduser="2" enteredon="9/24/2007 7:19:55 AM" sellinguser="" hotel="" resetype="1" room="" hotelphone="" pickup="False" pickuparea="" lastname="spears" firstname="Britney" fullname="spears, Britney" reservationnotes="" manifestnotes="" pickuphotel="" dropoff="False" dropoffhotel="" dropoffarea="" enteredagentcollected="" enteredcustomercollect="" agencypymt="" autoreleasehours="" active="True" lastupdate="9/24/2007 7:19:55 AM" base="1" source="1" datevalue="10/15/2007" forcepostfield="" pickuptime="" dropofftime="" otherphone="" email="" fax="" guarantee="" waitlist="False" noshow="False" giftcert="False" waitlistthroughdate="" invoiced="False" invoiceno="" invoicedate="" origin="" pickupoperator="" dropoffoperator="" cancellationno="" nobill="False" cancelreason="" leftmessage="False" phonecell="" eventno="" ticketed="False" specialeventnotes="" bookeddesk="" address1="" address2="" city="" state="" country="" zip="" aln_trans="" packageoffering="" aln_import="" masterreservation="" division="" lasteventdate="" packagegroup="" reseref1="" reseref2="" reseref3="" reseref4="" reseref5="" alnconf="" deletedseatdata="" ar_export="" product="" clientname="spears, Britney" agencyname="INTERNET DIRECT BOOKINGS" hotelname="" soldusername=""/>

</reservation>

-

       <products>

<row reservationproductcode="42932" productname="Molokini & Turtle Arches Snorkel" tourname="Molokini & Turtle Arches" eventno="" categoryname="Adult" seq="42932" reservation="38311" prodcatassign="1" datevalue="" timevalue="" quantity="2" seat="True" gross="79.95" variabletax="5.16" fixedtax="3" totaltax="8.16" total="80.11" commission="0" net="80.11" collectoncheckin="" billamount="80.11" lastupdate="9/24/2007 7:21:58 AM" product="1" category="1" priceschrate="919" pricesch="9" discount="8" rateadjusted="False" commonvariabletax="True" commonfixedtax="False" commbeforedisc="False" variabletaxrate="7.167" commrate="0" discpercent="10" priceschdate="10" trantype="3" vouchervalue="80.11" basebooked="" basetoured="" aln_transdet="" packagegroup=""/>

</products>

-

       <seats>

<row seatcode="126134" tourtime="" tourname="Molokini & Turtle Arches" tour="1" tourdate="10/15/2007" eventno="" readyfordispatch="" eventtime="" seatrow="" seatnum="" tablecode="" operatorshortname="" vesselshortname="" base="1" seatno="" lastname="spears" firstname="" notes="" weight="" checkedin="False" reservation="38311"/>

<row seatcode="126133" tourtime="" tourname="Molokini & Turtle Arches" tour="1" tourdate="10/15/2007" eventno="" readyfordispatch="" eventtime="" seatrow="" seatnum="" tablecode="" operatorshortname="" vesselshortname="" base="1" seatno="" lastname="spears" firstname="" notes="" weight="" checkedin="False" reservation="38311"/>

</seats>

<payments/>

</root>

 

To just get the reservation products use

 

als_get_reservation_products.cgi?reservation=38311

 

 

to just get the reservation seats use:

 

als_get_reservation_seats.cgi?reservation=38311

 

 

Change Product Qty or to Remove Products from a reservation . use Qty=0 to remove a product from a reservation

 

als_update_reservation_product.cgi?reservation=38311&qty=0&productcategory=1

 

Normal Flow for creating a reservation.

 

a. find out what product/tour the user is interested in

b. get availability

c. get rates

d. add up all the rates

e. create reservation,add product and seats

f. assign event to reservation

g. process credit card