|
als_insert_product.cgi |
Top Previous Next |
|
Description The als_insert_product.cgi interface adds a new product to the product list. Upon a successful execution of this method the product definition will be returned along with a unique identifier (code) that can be used to change the product definition via als_update.product.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 any ramification on product pricing, sales tax and reporting
As is normal for all Put calls a valid webusercode is required along with the following fields:
Note: a check is done for duplicate product names from a specific vendor when this call is executed and an error will be returned if the product name is in use from a vendor
<?xml version="1.0" encoding="utf-8" ?> - <error> - <row> <row error="Product Name:[spencer] already exists [code=530]" errorcode="0" /> </row> </error>
Example Usage
Inputs
Returned Fields
XML Example Upon a successful call to als_insert_product.cgi all fields available will be returned.
<?xml version="1.0" encoding="utf-8" ?> - <root> - <products> <row code="1" vendor="1" name="Hana/Haleakala- A Star" prodcat="7" location="3" description="45 min flight - Haleakala Crater, Seven Pools, Hana, Rainforest, Waterfalls! Wear Dark Colored Shirt and sunglasses. Check in at heliport 30 mins prior to flight." vouchernotes="some note" timevalue="" checkintime="8:00:00 AM" nopremium="False" agentcomm="" groupcode="0" active="True" taxrate="" commrate="" taxcommstat="" newcommrate="" newcommratedate="" ckinminutesprior="" servicechargestate="" shortname="" preferred="False" serviceonly="False" usespickup="False" agentnotes="" sequenceorder="0" bookonlyonblock="False" beachscuba="False" beachsections="" webexport="True" rental="False" turnaroundhours="" renttimeout="" renttimein="" trantype="1" cantour="True" retailrental="False" nobookingsafter="" useswebinterface="True" webjpglocation="http://www.alstracker.dnsalias.com/aldesk/images/test.jpg" giftingmethod="" lastupdatedon="11/22/2005 4:29:28 AM" /> </products> </root>
|