als_update_client.cgi

Top  Previous  Next

Description

The als_update_client.cgi interface updates client info for a specific client code. To view client information use als_get_client.cgi.

 

The primary key of the Client table is an Integer field named Code.

 

As is normal for all Put calls a valid webusercode is required.

 

All client changes, including inserts and updates are logged so that AL-Desk Audit trail changes are preserved.

 

Example Usage          

http://www.alstracker.dnsalias.com/aldesk/als_update_client.cgi?client=102809&lastname=Joness&webusercode=1&firstname=george&room=102&homephone=208.342.7800&email=test@hello.com&faxphone=208.389.4643&cellphone=208.890.5859&otherphone=208.861.6841&workphone=208.342.7800&hotel=1&arrivaldate=2005-11-01&departuredate=2005-11-30

 

 

Inputs

Parameter

Description

Required

Example

Data Type

client

 

Primary Key of Client Table.

This is the value created by an als_insert_client.cgi method call

 

Required

clientcode=1696

Integer

webusercode

Code from WiUsers required for insert access

 

Required

webusercode=5

Integer

lastname

Last Name of the Client

Optional

lastname=Smith

String

firstname

First Name of the client

Optional

firstname=John

String

email

Email of the Client

Optional

email=

jsmith@gmail.com

String

hotelname

Hotel of the Client

Optional

hotelname=weston

String

room

Room of the Client

Optional

room=200

String

homephone

Client home phone

Optional

homephone=

415-323-2322

String

faxphone

Fax of the Client

Optional

faxphone=

415-634-3222

String

cellphone

Client Cell Phone

Optional

cellphone=

415-654-2322

String

workphone

Client Work Phone

Optional

workphone=

415-323-2331

String

otherphone

Client Other Phone

Optional

otherphone=

415-987-4422

String

notes

Notes for the client

Optional

notes=

hello%20world

String

webreference

assigned by AL-Desk

Required

webreference=1

Integer

arrivaldate

Client Arrival Date

Optional

arrivaldate=

2005-05-31

Date

depaturedate

Client Departure Date

Optional

depaturedate=

2005-06-10

Date

 

 

Returned Fields

#

Field Name

Description

Data Type

1

Code

AL-Desk Associated Code

Integer

 

 

 

 

 

XML Example

 

 

<?xml version="1.0" encoding="utf-8" ?>

- <root>

- <client>

<row code="102804" desk="4" fname="Duke" lname="Gater" name="Gater, Duke" hotel="159" room="100" arrive="11/5/2005" depart="2/25/2006" homephone="" guarantee="4423-2333-2333-2233" source="5" notes="" lastvoucher="3" usercode="103" agency="58" creditcardexp="11/30/2008" archived="False" email="" affiliatereference="333" fax="" cell="" otherphone="" workphone="" imported="False" agent="" webid="" wiuser="" />

</client>

</root>