|
als_insert_product_rate.cgi |
Top Previous Next |
|
Description The als_insert_product_rate.cgi interface inserts new product rate information. Upon a successful execution of this method the all the fields returned from the als_get_product.rates.cgi
Note:This is a powerful call with little or no error checking so it is up to you to make sure that you understand the way rate information is stored and managed by AL-Desk.
As is normal for all Put calls a valid webusercode is required along with the following fields:
Example Usage http://localhost/als_insert_product_rate.cgi?name=Adult&webusercode=1&rate=189
Note: Product Rate Names must be unique for products and a check is done to insure that the name is unique for the product. Here is an example of an error when an attempt to change a rate name to a name that is already in use for a given product.
<?xml version="1.0" encoding="utf-8" ?> - <error> - <row> <row error="Product Rate Name:[Adult] already exists[code=1] from Hana/Haleakala- A Star" errorcode="0" /> </row> </error>
Inputs
Returned Fields
XML Example
<?xml version="1.0" encoding="utf-8" ?> - <root> - <productrate> <row code="1" product="1" name="Adult" rate="189" newrate="" newratedate="" commrate="23.255241394043" newcommrate="" newcommratedate="" taxrate="7.5" taxcommstat="" servicechargestate="" preferred="False" manualrate="False" requiretour="False" active="True" seat="True" sequenceorder="1" wholesaleprice="" newwholesaleprice="" discountedprice="" newdiscountedprice="" newdiscountedpricedate="" discountprice2="" webexport="False" rrtype="" rrcategory="" rentalhours="" rrreplvalue="" nobookingsafter="" useswebinterface="True" giftingmethod="" lastupdatedon="12/4/2005 7:11:23 AM" vendor="1" productname="Hana/Haleakala- A Star" vendorname="Blue Hawaiian Helicopters" /> </productrate> </root>.
|