als_insert_product_pricing.cgi

Top  Previous  Next

Description

The als_insert_product_pricing.cgi interface inserts new product pricinginformation. Upon a successful execution of this method the all the fields returned from the als_get_product_pricing.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 pricing information is stored and managed by AL-Desk.

 

Note2: There is no update pricing method to stay in line with the way AL-Desk handles pricing definition.

 

 

As is normal for all Put calls a valid webusercode is required along with the following fields:

 

productrate
product
rate
commission rate or commission amount

 

Taxes

AL-Desk provides very flexible methods for computing taxes which translates into a lot of options for setting a formula for tax calculations. For a full understand of tax issues, it is essential that you have experience in using the AL-Desk pricing form.

 

Taxes can be defined as a fixed amount or a percentage.

 

Commission on taxes can be

 

Applied (yes)
Not Applied (no)
Keep All Tax

 

Note: A check is performed to not have an entry for a specific product rate for the same dates that is active. If a duplicate entry is found, an exception will be raised.

 

Example Usage          

http://localhost/als_insert_product_rate.cgi?name=Adult&webusercode=1&rate=189

 

Note: Although productrate information already contains a reference to the product, the Web Portal API requires both a product and product rate as an added check that you are adding pricing for a valid product and rate.

 

Inputs

Parameter

Description

Required

Example

Data Type

webusercode

Code from WiUsers required for insert access

 

Required

webusercode=5

Integer

product

Product code see

als_get_products.cgi

 

A check is performed to match the product with the product defined in the product rate.

 

Required

product=32

Integer

rate

Value of the rate

Required

rate=23.43

Currency

productrate

Product Rate code see

 

als_get_product_rates.cgi

 

 

Required

productrate=342

Integer

EffectiveTourDate

The date the rate will become effective. default 

1 Jan 1980

 

Optional

effectivetourdate=2006-06-11

Date

EffectiveDate

The date the rate will become effective. default 

1 Jan 1980

 

Optional

effectivetourdate=2006-06-11

Date

FixedTax1

FixedTax2

FixedTax3

 


Optional


Currency

FixedTaxCommStat1

FixedTaxCommStat2

FixedTaxCommStat3

 


Optional

Yes=1

No=2

Keep All Tax=3


Integer

VarTaxCommStat1

VarTaxCommStat2

VarTaxCommStat3

 


Optional

Yes=1

No=2

Keep All Tax=3


Integer

vartax1

vartax2

vartax3

 


Optional


Currency

vartaxrate1

vartaxrate2

vartaxrate3

 


Optional


Float

Active

 


Optional

active=true

Boolean






 

Returned Fields

#

Field Name

Description

Data Type

1

 

AL-Desk Associated Code

Integer

 

 

 

 

 

XML Example