This method allows dealership staff members to be added.


Method : AddStaff

Input Parameters :

XMLSecurity (XML packet)
XMLData (XML packet)

There are always 2 parameters passed, these are both XML strings, and the first is XMLSecurity which holds the secuirty information, i.e your access code and the dealercode that you want to access the data for, and the second is the XML data you are going to pass in.

If you need to view the information on how to format the XMLSecurity data string, please click here

XMLData Input fields Description:

Field Name Field Type Mandatory Field Description
StaffMember.Name String
The users name
StaffMember.DisplayLang String
Display Language, set to EN, unless a none english language is required
StaffMember.Email String
The users email address
.StaffMember.Mobile Numeric
The users mobile number
StaffMember.LevelName String

The users userlevel name. Valid Names are:
Sales Manager
Sales Exec

Example XML Data packet you need to pass in:

<?xml version="1.0" encoding="UTF-8" ?>
<NAME>Mike Harrison</NAME>



After your webservice call, you will either get a successful message for the output, or an error message depending on whats happened.

Example of a successful output

<?xml version="1.0" encoding="UTF-8"?>
<Messagetxt>Record Inserted Successfully</Messagetxt>

Example output of an error message

<?xml version="1.0" encoding="UTF-8" ?>
<ErrorInfo>Your XML data packet is not correctly formed XML</ErrorInfo>

There may be multiple errors returned in the XML packet, they are separated by <Error> blocks and each block contains an ErrorCode to allow you to do some processing logic on the numerical value returned, and an ErrorInfo which is used by the developer or administrator to visually see what the problem is with the submission.Click here to see all the ErrorCodes