- Created by Ludovica Vanoncini, last modified on 10 Dec, 2020
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 defaultwsCreaNuovoCliente
To be called to insert a new customer in the db.
@GET
@Path("/wsCreaNuovoCliente")
@QueryParam("CODE") String CODE,
@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_INDICAZIONI_PER_CONSEGNA") String CNT_INDICAZIONI_PER_CONSEGNA,
@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("ALT_SPED_NOME") String ALT_SPED_NOME,
@QueryParam("ALT_SPED_IND") String ALT_SPED_IND,
@QueryParam("ALT_SPED_LOC") String ALT_SPED_LOC,
@QueryParam("ALT_SPED_CAP") String ALT_SPED_CAP,
@QueryParam("ALT_SPED_CIT") String ALT_SPED_CIT,
@QueryParam("ALT_SPED_PROV") String ALT_SPED_PROV,
@QueryParam("ALT_SPED_STAT") String ALT_SPED_STAT,
@QueryParam("ALT_SPED_TEL") String ALT_SPED_TEL,
@QueryParam("ALT_SPED_FAX") String ALT_SPED_FAX,
@QueryParam("CNT_RUCO_SESSO") String CNT_RUCO_SESSO,
@QueryParam("CNT_RUCO_CELL") String CNT_RUCO_CELL,
@QueryParam("CNT_PVPROMO") String CNT_PVPROMO,
@QueryParam("TIPOSCELTAINDSPED") String TIPOSCELTAINDSPED,
@QueryParam("CNT_NOME2") String CNT_NOME2,
@QueryParam("CTB_RAG2") String CTB_RAG2,
@QueryParam("IDCONTATTO") BigDecimal IDCONTATTO)
PARAMETERS | DESCRIPTION | VALUES |
CODE | control code, built as md5hash of a value that depends from db | |
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_INDICAZIONI_PER_CONSEGNA | Notes for delivery | |
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 | |
ALT_SPED_NOME | Name for delivery address, if it differs from new customer name; else null | |
ALT_SPED_IND | delivery address street, if it differs from new customer address; else null | |
ALT_SPED_LOC | Delivery address place, if it differs from new customer place; else null | |
ALT_SPED_CAP | Delivery address postalcode, if it differs from new customer postalcode; else null | |
ALT_SPED_CIT | Delivery address town, if it differs from new customer town; else null | |
ALT_SPED_PROV | Delivery address province, if it differs from new customer province; else null | |
ALT_SPED_STAT | Delivery address country, if it differs from new customer country; else null | |
ALT_SPED_TEL | phone for delivery addres, if it differs from new customer phone; else null | |
ALT_SPED_FAX | Fax number for delivery address, if it differs from new customer fax number; else null | |
CNT_RUCO_SESSO | new customer gender, if tax type is natural person | |
CNT_RUCO_CELL | new customer mobile phone number | |
CNT_PVPROMO | Not to be used | Always null |
TIPOSCELTAINDSPED | Not to be used | |
CNT_NOME2 | new customer’s name | surname, if subject tax type is natural person, otherwise operating office business name – line 2 |
CTB_RAG2 | Registered office name for the new customer, if it is different from CNT_NOME2 | surname, if subject tax type is natural person, otherwise registered office business name – line 2 |
IDCONTATTO | Numeric identifier for new customer. | If Vegaweb configuration in Vega allows it, null to insert a new customer, identifier of a new customer to update it; otherwise always null |
OUTPUT DATA | TYPE | DESCRIPTION | VALUE |
Result | BigDecimal | Method result | Numeric identifier for new customer, if no errors. Cf. error codes description for other values |
ERROR CODE | DESCRIPTION |
Codes for bad CODE | |
Codes from wsValidadatiNuovoCliente | |
-3 | IDOrdine is null |
-4 | IDCONTATTO is not null, but an update of the new customer is not possible |
-93 | VEGAWEBNEWCUSTOMER Vega module is not active |
-98 | Missing configuration for default company for new prospects or default configuration, if company parameter is null |
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