als_update_vendor.cgi

Top  Previous  Next

Description

The als_update_vendor.cgi interface updates vendor information. 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.

 

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:

 

The unique key of vendor:Integer is required to use this method.

 

 

Example Usage          

 

http://www.alstracker.dnsalias.com/aldesk/als_update_vendor.cgi?vendor=520&address1=1000%20main%20street&webusercode=1

 

 

Inputs

Parameter

Description

Required

Example

Data Type

webusercode

Code from WiUsers required for insert access

 

Required

webusercode=5

Integer

vendor

vendor code

Required

vendor=23

Integer

name


Optional


String

address1


Optional


String

address2


Optional


String

city


Optional


String

state


Optional


String

zip


Optional


String

phone


Optional


String

contact


Optional


String

fax


Optional


String

email


Optional


String

notes


Optional


String

taxrate


Optional


Float

webexport


Optional


Boolean

tollnumber


Optional


String

groupcode


Optional


Integer

outputbusiness


Optional


Boolean

phone2


Optional


String

description


Optional


String

imagepath


Optional


String

logopath


Optional


String

contactdate


Optional


Date

contractnote


Optional


String

 

 

Returned Fields

#

Field Name

Description

Data Type

1

 

AL-Desk Associated Code

Integer

 

 

 

 

 

XML Example

Upon a successful update a call to als_update_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>