This method verifies that customer’s username and password are correct.
@GET
@Path("/wsLoginEstesa")
@QueryParam("CODE") String CODE,
@QueryParam("USERNAME") String USERNAME,
@QueryParam("PASSWORD") String PASSWORD,
@QueryParam("LANG") String LANG),
@QueryParam("USERAGENT") String USERAGENT),@QueryParam("FILTROCOMPANY") String FILTROCOMPANY,
@QueryParam("COMPANY") String COMPANY,
@QueryParam("TIPOAPPWEB") String TIPOAPPWEB
PARAMETERS | DESCRIPTION |
|
CODE | control code, built as md5hash of a value that depends from db |
|
USERNAME | Can be point of sale code, point of sale e-mail address or operating office code, as saved in UNOPV table of Vega. If operating office code is used and that office has more then one point of sale with same password, this method retrieve from db all these points of sale and, after login in, customer has to select the point of sale for which he wants to order products. As well as if e-mail address is used and more points of sales share same address and same password |
|
PASSWORD | password as saved in UNOPV table of Vega |
|
LANG | language to be used to retrieve descriptions from db | Multiexcerpt include |
---|
SpaceWithExcerpt | VKB |
---|
MultiExcerptName | VegawebLanguages |
---|
PageWithExcerpt | Vegaweb languages |
---|
|
|
USERAGENT | Not used at the moment |
|
FILTROCOMPANY | in multicompany Vega db, list of company codes (as defined in Vega db) for companies whose points of sale can place order on Vegaweb. Null if points of sale from all companies can place order or if companies are not defined in Vega |
|
COMPANY | Not used at the moment |
|
TIPOAPPWEB | It identifies the application that uses the web service | W = vegaweb web site L = LiPETS app |
OUTPUT DATA | DESCRIPTION | VALUES |
ResultCode | Method result | 1 if no errors. Cf. error codes description for other values |
Unopv | Recordset with points of sale data (Cf. Unopv recordset) |
|
Cliente | Operating office data (Cf. Cliente Recordset) |
|
NewToken | Token to be used with wsLoginToken |
|
Contatto | New customer‘s data. Null for login with customer of Vega |
|
ERROR CODE | DESCRIPTION |
Codes for bad CODE | Cf. Error codes for bad CODE parameter |
-2 | Forbidden access due to wrong username/password or missing point of sale serial number |
-3 | Username is null |
-4 | Password is null |
-5 | More registered offices share the same e-mail address, that is not possible in Vegaweb |
-6 | Inactive point of sale |
-7 | Withdrawn point of sale |
-56 | IfPASSWORD is not valid. The customer can’t log in before he has change it. Call method wsForzaCambiaPassword to set a new password. |