- Created by Ludovica Vanoncini, last modified on 16 Feb, 2021
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 23 Current »
You have English selected as language but this page has not been translated yet. Translate the page or view the content in the default space language below.
Display defaultThis 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 | it = Italian |
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 |
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 | If PASSWORD is not valid. The customer can’t log in before he has change it. Call method wsForzaCambiaPassword to set a new password. |
Error codes for bad CODE parameter ERROR CODE DESCRIPTION-1 Null value for CODE parameter -95 VEGAWEBSERVICES Vegamodule is not active -94 Value to build CODE is null in the db -99 CODE received as parameter and CODE built by vegaweb rest service are different,
Unopv recordset FIELD NAME TYPE DESCRIPTION VALUE upvAtt String Active/Inactive point of sale S = active; N = inactive upvDes2 String Description of point of sale – second part E-mail address on point of sale Do not care of maximum quantity in order for products S=yes: customer can order more then maximum quantity for products; Date First installation date Pending amount for logged point of sale Working type Always k=selling point of sale internal company representative Machine model code Price list for point of sale Applay discounts by payment condition S = yes: N = no Date Date of retreat Operating office code Point of sale code Registred office code serial number Machine model description Model type as defined in Vega by customer autorefill/operating B For selling points of sale always N Permanent order number for orders placed by the customer rsListaSetupChiamate point of sale setup for operation on web upvForzaCambioPaswdupvDes1 String Description of point of sale – first part upvEmail String upvIgnoraqtamaxinord String
N=no: quantities of ordered products must be less or equal to maximum quantity allowed for each productsupvInst upvIsos String upvFunz String upvInca String upvMod String upvClis String upvUsaScontiPerCondpag String upvRit upvTrd String upvCod String upvCli String upvMatr String descrMod String modTipo String autorefill String upvVostroOrdineFisso String lstSetupChiamate String Duty to change password on point of sale S = yes: N = no upvChiu String First closing day for the point of sale upvChu2 String Second closing day for the point of sale
Cliente recordset FIELD NAME TYPE DESCRIPTION VALUE cliCont String Registered office code cliCap String Operating office postcode cliTel String Operating office phone number cliInd2 String Operating office address - line 2 cliCpag String Payment term for outstanding payments cliNome String Operating office business name – line 1 cliCit String Operating office town cliCod String Operating office code cliFili BigDecimal Operating office branch cliSconto BigDecimal Discount on list (only for selling points of sale) cliWebcondpag String Payment term for Vegaweb cliLoc String Operating office place cliEmail String Operating office e-mail address cliStat String Operating office country cliFax String Operating office fax number cliNome2 String Operating office business name – line 2 cliCccCliente String Reference to customer cost centre cliInd String Operating office address – line 1 cliProv String Operating office province cliInca String Person in charge by the customer cliObbligovsordine String Permanent order number for orders placed by the customer is compulsory S=yes; N=no cliCompany String Operating office company cliIndicazioniPerConsegna String Operating office notes for carrier ctbTipsogfisc String Registered office fiscal subject type Only wsLoginEstesa provides this value
- No labels