als_get_rates.cgi

Top  Previous  Next

Description

The als_get_ rates_.cgi http interface will retrieve product rate information needed for a product.

 

Example Usage             http://127.0.0.1/als_get_rates.cgi

 

Inputs

Parameter

Description

Required

Example

Data Type

Product

Product Code to limit the result set to a specific product.

 

See also als_get_products.cgi for Product Codes

 

Optional

product=5

Integer

Category

Category Code to limit the result set to a specific product category

 

See also als_get_product_categories.cgi

Optional

category=2

Integer

Agency

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

 

Required

 

agency=1

Integer

Date

Date of the booking. If no date is included todays date will be used as the default.

Optional

date=2005-09-01

 

 

 

 

 

 

 

 

Returned Fields

#

Field Name

Description

Data Type

1

Price

Rate

Currency

2

FixedTax

Amount of Tax

Currency

3

Commission

Amount of Commission

Currency

4

NetRate

Total of Price+FixedTax

Currency

5

Product code

AL-Pro Associated Code for Product

Integer

6

ProductName

Product Name Text

String

7

CategoryCode

Code for the Category

Integer

8

CategoryName

Category Name

String

 

XML Example

 

<?xml version="1.0" encoding="utf-8" ?> 

- <rates> 

- <data count="21"> 

<row price="65" fixedtax="3" commission="0" netrate="68" productcode="1" productname="Celebration Tour" categorycode="1" categoryname="Adult" /> 

<row price="45" fixedtax="3" commission="0" netrate="48" productcode="1" productname="Celebration Tour" categorycode="2" categoryname="Child" /> 

<row price="379" fixedtax="18" commission="0" netrate="397" productcode="13" productname="Colorado River Voyage" categorycode="6" categoryname="EcoAdlt" /> 

<row price="309" fixedtax="18" commission="0" netrate="327" productcode="2" productname="Grand Celebration" categorycode="1" categoryname="Adult" /> 

<row price="289" fixedtax="18" commission="0" netrate="307" productcode="2" productname="Grand Celebration" categorycode="2" categoryname="Child" /> 

<row price="309" fixedtax="18" commission="0" netrate="327" productcode="2" productname="Grand Celebration" categorycode="6" categoryname="EcoAdlt" /> 

<row price="289" fixedtax="18" commission="0" netrate="307" productcode="2" productname="Grand Celebration" categorycode="7" categoryname="EcoChld" /> 

<row price="20" fixedtax="" commission="0" netrate="20" productcode="2" productname="Grand Celebration" categorycode="9" categoryname="Limo Upcharge Per Person" /> 

<row price="109" fixedtax="6" commission="0" netrate="115" productcode="27" productname="North Canyon Tour" categorycode="1" categoryname="Adult" /> 

<row price="78.1" fixedtax="6" commission="0" netrate="84.1" productcode="27" productname="North Canyon Tour" categorycode="2" categoryname="Child" /> 

<row price="139" fixedtax="6" commission="0" netrate="145" productcode="27" productname="North Canyon Tour" categorycode="6" categoryname="EcoAdlt" /> 

<row price="89" fixedtax="6" commission="0" netrate="95" productcode="27" productname="North Canyon Tour" categorycode="7" categoryname="EcoChld" /> 

<row price="7" fixedtax="" commission="0" netrate="7" productcode="27" productname="North Canyon Tour" categorycode="14" categoryname="Imax Upsale" /> 

<row price="329" fixedtax="18" commission="0" netrate="347" productcode="5" productname="Sunset Grand Celebration" categorycode="1" categoryname="Adult" /> 

<row price="309" fixedtax="18" commission="0" netrate="327" productcode="5" productname="Sunset Grand Celebration" categorycode="2" categoryname="Child" /> 

<row price="329" fixedtax="18" commission="0" netrate="347" productcode="5" productname="Sunset Grand Celebration" categorycode="6" categoryname="EcoAdlt" /> 

<row price="309" fixedtax="" commission="0" netrate="309" productcode="5" productname="Sunset Grand Celebration" categorycode="7" categoryname="EcoChld" /> 

<row price="72" fixedtax="3" commission="0" netrate="75" productcode="10" productname="Wedding With The Stars" categorycode="10" categoryname="Additional Adult" /> 

<row price="52" fixedtax="3" commission="0" netrate="55" productcode="10" productname="Wedding With The Stars" categorycode="11" categoryname="Additional Child" /> 

<row price="750" fixedtax="" commission="0" netrate="750" productcode="10" productname="Wedding With The Stars" categorycode="12" categoryname="Base Price" /> 

<row price="7" fixedtax="" commission="0" netrate="7" productcode="6" productname="Western Canyon Wilderness" categorycode="1" categoryname="Adult" /> 

</data> 

</rates>