|
als_insert_vendor.cgi |
Top Previous Next |
|
Description The als_insert_vendor.cgi interface inserts a vendor. Upon a successful execution of this method the all the fields returned from the als_get_vendors.cgi with the extendedinfo=true parameter will be returned along with a code value that is required to be passed to als_update_vendor.cgi as a vendor:integer if you want to change the vendor information.
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 vendor 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:
Required Parameters include
Note: a check is done for duplicate vendor names when this call is executed and an error will be returned if the vendor name is in use.
<?xml version="1.0" encoding="utf-8" ?> - <error> - <row> <row error="Vendor Name:[spencer] already exists [code=530]" errorcode="0" /> </row> </error>
Example Usage
Inputs
Returned Fields
XML Example Upon a successful update a call to als_insert_vendor.cgi is executed that includes all the fields.
<?xml version="1.0" encoding="utf-8" ?> - <root> - <vendors> <row code="520" name="Germaines Luau" address1="1000 main street" address2="" city="boise" state="id" zip="" phone="333-2121" contact="" fax="" email="ssmith@host.com" notes="my blah blah notes" taxrate="" trantype="1" commrate="" taxcommstat="" newcommrate="" newcommratedate="" ckinminutesprior="" servicechargestate="" location="3" shortname="" insuranceexpirationdate="" allowbookafterexpdate="False" taxrateoverride="False" preferredlevel="" webexport="True" tollnumber="" groupcode="" outofbusiness="False" phone2="" excludefromap="False" description="" imagepath="" logopath="" showgiftdiscount="False" contractdate="" contractnote="" nobookingsafter="" giftingmethod="" /> </vendors> </root> |