als_insert_reservation.cgi

Top  Previous  Next

Description

The als_insert_reservation.cgi interface inserts a new reservation just like if a user was entering a reservation using the AL-Pro client. There is quite a bit of data validation contained in the als_insert_reservation.cgi call in order to make sure that only clean data is processed and accepted by AL-Pro.

 

Typically a reservation is created and then products are added as part of that reservation using als_insert_reservation_product.cgi which also will auto create seat information with each passenger assigned the lastname of the person booking the reservation. Each seat can be updated with actual passenger information using als_update_reservation_seat.cgi

 

Upon a successful call to als_insert_reservation.cgi the inserted reservation is returned as XML and will contain the new Reservation Code:Integer unique identifier. This reservation code can then be used to insert products onto the reservation.

 

Reservations can be changed using als_update_reservation.cgi.

 

 

Description of Required Inputs

 

Reservations can optionally use a webclient parameter.

 

A valid Agency code Integer is required or a default agency.

A valid Agent Code Integer is required or a default agent.

A date is required.

A LastName and First Name is required

 

 

Inputs

Parameter

Description

Required

Example

Data Type

Agency

Agency Code is required but if a default setting exist it will be added if there is no agency param found

 

Required

agency=5

Integer

Agent

Agent Code is required but if a default setting exist it will be added if there is no agent

param found

 

Required

agent=1001

Integer

Hotel

Code of the Hotel

Optional

hotel=54

Integer

date

date of the reservation

Required

date=2005-12-25

 

Date

event

event code.

Optional

event=839

 

LastName

Last Name of the Client

Required

lastname='Jones'

String

FirstName

First Name of the Client

Required

 

firstname='Jim'

String

notes

Free Text field

 

Optional

wheelchair access required

String

email

 

 

Optional

email=jam@shost.com

String

faxphone

 

 

Optional

faxphone=555-2333

String

homephone

.

 

Optional

homephone=555-2333

String

room


Optional

 

room=432

String

cellphone


Optional

 

cellphone=555-2333

String

otherPhone


Optional

 

otherphone=555-2333

String

source

Code of the Source

Optional

source=12

Integer

webclient

Code of the WebClient

Optional

webclient=2

Integer

packageenddate

If the reservation has a Package, the last day of the Package

 

Optional

packageenddate=2007-07-18

Date

giftcert

if the reservation is a gift certificate

Optional

giftcert=true

Boolean

 

 

Returned Fields

#

Field Name

Description

Data Type

1