- Created by Ludovica Vanoncini, last modified on 21 Jan, 2021
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 defaultwsValidaDatiNuovoCliente
To check if informations about a new customer are correct and complete.
@GET
@Path("/wsValidaDatiNuovoCliente")
@QueryParam("CODE") String CODE,
@QueryParam("LANG") String LANG,
@QueryParam("IDORDINE") BigDecimal IDORDINE,
@QueryParam("CNT_NOME") String CNT_NOME,
@QueryParam("CNT_IND") String CNT_IND,
@QueryParam("CNT_LOC") String CNT_LOC,
@QueryParam("CNT_CAP") String CNT_CAP,
@QueryParam("CNT_CIT") String CNT_CIT,
@QueryParam("CNT_PROV") String CNT_PROV,
@QueryParam("CNT_STAT") String CNT_STAT,
@QueryParam("CNT_TEL") String CNT_TEL,
@QueryParam("CNT_FAX") String CNT_FAX,
@QueryParam("CNT_EMAIL") String CNT_EMAIL,
@QueryParam("CNT_NOTE") String CNT_NOTE,
@QueryParam("CNT_VEND2") String CNT_VEND2,
@QueryParam("CNT_TIPSOGFISC") String CNT_TIPSOGFISC,
@QueryParam("CNT_FATTURA") String CNT_FATTURA,
@QueryParam("CNT_PASSWORD") String CNT_PASSWORD,
@QueryParam("CNT_INCA") String CNT_INCA,
@QueryParam("CNT_CTBAUTORNEWSLETTER") String CNT_CTBAUTORNEWSLETTER,
@QueryParam("CTB_NOME") String CTB_NOME,
@QueryParam("CTB_IND") String CTB_IND,
@QueryParam("CTB_LOC") String CTB_LOC,
@QueryParam("CTB_CAP") String CTB_CAP,
@QueryParam("CTB_CIT") String CTB_CIT,
@QueryParam("CTB_PROV") String CTB_PROV,
@QueryParam("CTB_STAT") String CTB_STAT,
@QueryParam("CTB_TEL") String CTB_TEL,
@QueryParam("CTB_FAX") String CTB_FAX,
@QueryParam("CTB_CF") String CTB_CF,
@QueryParam("CTB_PIVA") String CTB_PIVA,
@QueryParam("CNT_RUCO_SESSO") String CNT_RUCO_SESSO,
@QueryParam("CNT_RUCO_CELL") String CNT_RUCO_CELL,
@QueryParam("COGNOME") String COGNOME,
@QueryParam("DATADINASCITA") String DATADINASCITA,
@QueryParam("LUOGODINASCITA") String LUOGODINASCITA,
@QueryParam("CONFERMAPWD") String CONFERMAPWD,
@QueryParam("COMPANY") String COMPANY)
PARAMETERS | DESCRIPTION | VALUES |
CODE | control code, built as md5hash of a value that depends from db | Mandatory |
LANG | language to be used to retrieve descriptions from db | it = Italian |
IDORDINE | numeric order identifier | |
CNT_NOME | new customer’s name | name, if subject tax type is natural person, otherwise operating office business name – line 1 |
CNT_IND | new customer’s address | |
CNT_LOC | new customer’s place | |
CNT_CAP | new customer’s postcode | |
CNT_CIT | new customer’s town | |
CNT_PROV | new customer’s province | |
CNT_STAT | new customer’s country | |
CNT_TEL | new customer’s phone number | |
CNT_FAX | new customer’s fax number | |
CNT_EMAIL | new customer’s e-mail address | |
CNT_NOTE | notes from the new customer | |
CNT_VEND2 | seller | |
CNT_TIPSOGFISC | Tax type of the subject. Only for db configurations that allow to insert new customers. Otherwise null | |
CNT_FATTURA | Tells if the customer asks for an invoice or a delivery note | S = invoice; |
CNT_PASSWORD | Password | |
CNT_INCA | Contact person at the new customer | |
CNT_CTBAUTORNEWSLETTER | authorization for the newsletter | |
CTB_NOME | Registered office name for the new customer, if it is different from CNT_NOME | |
CTB_IND | Registered office address for the new customer, if it is different from CNT_IND | |
CTB_LOC | Registered office place for the new customer, if it is different from CNT_LOC | |
CTB_CAP | Registered office postcode for the new customer, if it is different from CNT_CAP | |
CTB_CIT | Registered office town for the new customer, if it is different from CNT_CIT | |
CTB_PROV | Registered office province for the new customer, if it is different from CNT_PROV | |
CTB_STAT | Registered office country for the new customer, if it is different from CNT_STAT | |
CTB_TEL | Registered office phone for the new customer, if it is different from CNT_TEL | |
CTB_FAX | Registered office fax number for the new customer, if it is different from CNT_FAX | |
CTB_CF | Registered office tax code | |
CTB_PIVA | Registered office VAT registration number | |
CNT_RUCO_SESSO | new customer gender, if tax type is natural person | |
CNT_RUCO_CELL | new customer mobile phone number | |
COGNOME | new customer surname, if tax type is natural person | |
DATADINASCITA | new customer date of birth, if tax type is natural person | |
LUOGODINASCITA | new customer birth place, if tax type is natural person | |
CONFERMAPWD | Parameter to check password value. It must be equal to CNT_PASSWORD | |
COMPANY | Code of customer’s company. Null if unknown (it'll be used default company for rest service) or companies are not defined in Vega |
OUTPUT DATA | TYPE | DESCRIPTION | VALUE |
Codice | BigDecimal | Method result | 1 if no errors. Cf. error codes description for other values |
Error | String | Error description, if present |
ERROR CODE | DESCRIPTION |
Codes for bad CODE | |
Codes for this method |
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,
Error codes for wsValidaDatiNuovoCliente ERROR CODE DESCRIPTION IDORDINE is null or an order with IDORDINE code doesn’t exist in Vegaweb db Length of registered office registration number value (CTB_PIVA) differs from 11 characters or it is not in a correct format for the registration number, if new customer country (CNT_STAT) equals to Italy Missing registered office tax code value (CTB_CF) and registered office registration number value (CTB_PIVA), when subject tax type differs from P (Natural Person) and new customer country (CNT_STAT) equals to Italy Missing configuration for company parameter value or default configuration, if company parameter is null Missing new customer’s name value (CNT_NOME) Missing new customer’s address value (CNT_IND) Missing seller value (CNT_VEND2)-2 -3 A new customer with the same tax code value or same registration number value or same e-mail address has been already moved to Vega -4 A customer with the same tax code value or same registration number value or same e-mail address already exixts in Vega -5 Missing registered office province for the new customer (CTB_PROV), when it's required by configuration and subject tax type is natural person -6 Missing registered office postcode for the new customer (CTB_CAP), when it's required by configuration and subject tax type is natural person -7 Registered office tax code value (CTB_CF) is more then 16 characters long or it is not in a correct format for the tax code, if new customer country (CNT_STAT) equals to Italy
Registered office tax code value (CTB_CF) is more then 20 characters long, if new customer country (CNT_STAT) differs from Italy-8
Registered office registration number value (CTB_PIVA) is more then 20 characters long, if new customer country (CNT_STAT) differs from Italy-10 Missing registered office tax code value (CTB_CF) or registered office registration number value (CTB_PIVA), when they're required by configuration and subject tax type equals S (Company) or I (Sole Company) -11 Registered office tax code value (CTB_CF) differs from registered office registration number value (CTB_PIVA), when they're required by configuration and subject tax type equals S (Company) -12 Registered office tax code value (CTB_CF) equals registered office registration number value (CTB_PIVA), when they're required by configuration and subject tax type equals I (Sole Company) -13 Missing registered office tax code value (CTB_CF), when it's required by configuration and subject tax type equals E (Public Authority) -14 Missing registered office registration number value (CTB_PIVA), when it's required by configuration and subject tax type equals C (Foundation/Association) -15 Missing registered office tax code value (CTB_CF), when subject tax type equals P (Natural Person), customer asks for an invoice (CNT_FATTURA = S) and new customer country (CNT_STAT) equals to Italy
Missing registered office tax code value (CTB_CF), when subject tax type equals P (Natural Person) or A (Private) or Y (Employee) , customer asks for an invoice (CNT_FATTURA = S) and new customer country (CNT_STAT) differs from Italy and France-16
Missing registered office tax code value (CTB_CF) and registered office registration number value (CTB_PIVA), when subject tax type differs from P (Natural Person), from A (Private) and from Y (Employee) and new customer country (CNT_STAT) differs from Italy-17 Missing new customer’s postal code value (CNT_CAP), when it's required by configuration -18 Missing new customer’s mobile phone number value (CNT_RUCO_CELL), when it's required by configuration -20 Missing new customer’s phone number value (CNT_TEL), when it's required by configuration -21 Missing new customer’s e-mail address value(CNT_EMAIL) -22 CNT_FATTURA equals N (delivery note) while invoice is required by configuration -98 -102 -103 -105 Missing new customer’s town value (CNT_CIT) -106 Missing new customer’s province value (CNT_PROV) -107 Missing new customer’s country value (CNT_STAT) -110 -113 Missing contact person name (CNT_INCA) -114 Missing password value (CNT_PASSWORD) -202 Missing registered office name value (CTB_NOME), if tax type of the subject differs from natural personal -203 Missing registered office address value (CTB_IND), if tax type of the subject differs from natural personal -205 Missing registered office town value (CTB_CIT), if tax type of the subject differs from natural personal -207 Missing registered office country value (CTB_STAT), if tax type of the subject differs from natural personal -214 Password (CNT_PASSWORD) value is less then 6 characters long -220 Missing new customer's gender vaue or new customer date of birth or new customer birth place, when subject tax type equals P (Natural Person), customer asks for an invoice (CNT_FATTURA = S) and check of tax code is required by configuration -300 Missing new customer’s surname value, if tax type of the subject is natural personal -314 Missing (CONFERMAPWD) value -414 CONFERMAPWD differs from CNT_PASSWORD -500 New customer's e-mail address is not in a correct format
- No labels
Add Comment