- Created by Ludovica Vanoncini, last modified on 16 Feb, 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 defaultwsCreaProspect
To insert a new prospect in the db
@GET
@Path("/wsCreaProspect")
@QueryParam("CODE") String CODE,
@QueryParam("AZIENDA") String AZIENDA,
@QueryParam("INDIRIZZO") String INDIRIZZO,
@QueryParam("LOCALITA") String LOCALITA,
@QueryParam("CAP") String CAP,
@QueryParam("CITTA") String CITTA,
@QueryParam("PROVINCIA") String PROVINCIA,
@QueryParam("STATO") String STATO,
@QueryParam("EMAIL") String EMAIL,
@QueryParam("TELEFONO") String TELEFONO,
@QueryParam("FAX") String FAX,
@QueryParam("SEGNALATORE") String SEGNALATORE,
@QueryParam("SOGGETTOFISCALE") String SOGGETTOFISCALE,
@QueryParam("NOTE") String NOTE,
@QueryParam("COMPANY") String COMPANY,
@QueryParam("INCARICATO") String INCARICATO,
@QueryParam("INFOWEB_L1") String INFOWEB_L1,
@QueryParam("INFOWEB_L2") String INFOWEB_L2,
@QueryParam("INFOWEB_L3") String INFOWEB_L3,
@QueryParam("INFOWEB_L4") String INFOWEB_L4,
@QueryParam("INFOWEB_L5") String INFOWEB_L5,
@QueryParam("TIPOAPPWEB") String TIPOAPPWEB
PARAMETERS | DESCRIPTION | VALUES |
CODE | control code, built as md5hash of a value that depends from db | Mandatory |
AZIENDA | Name of the new prospect | Mandatory |
INDIRIZZO | Address of the new prospect | Mandatory |
LOCALITA | Place of the new prospect | Not mandatory |
CAP | Postcode of the new prospect | Mandatory |
CITTA | Town of the new prospect | Mandatory |
PROVINCIA | Province of the new prospect | Mandatory |
STATO | Country of the new prospect | Mandatory. |
E-mail address of the new prospect | Mandatory | |
TELEFONO | Phone number of the new prospect | Mandatory |
FAX | Fax number of the new prospect | Not mandatory |
SEGNALATORE | Prospect introducer code | Mandatory |
SOGGETTOFISCALE | Fiscal subject type of the new prospect | Mandatory. |
NOTE | Notes from the new prospect | Not mandatory |
COMPANY | Code of the company for the new prospect. Null only if companies are not defined in Vega | Mandatory |
INCARICATO | Contact person | Not mandatory |
INFOWEB_L1 | Details about the new prospect | Not mandatory |
INFOWEB_L2 | Details about the new prospect | Not mandatory |
INFOWEB_L3 | Details about the new prospect | Not mandatory |
INFOWEB_L4 | Details about the new prospect | Not mandatory |
INFOWEB_L5 | Details about the new prospect | Not mandatory |
TIPOAPPWEB | It identifies the application that uses the web service | W = vegaweb web site |
OUTPUT DATA | TYPE | DESCRIPTION | VALUE |
Result | BigDecimal | Method result | 1 if no errors. Cf. error codes description for other values |
ERROR CODE | DESCRIPTION |
Codes for bad CODE | |
-2 | AZIENDA is null |
-3 | INDIRIZZO is null |
-4 | CAP is null |
-5 | CITTA is null |
-6 | PROVINCIA is null |
-7 | STATO is null |
-8 | EMAIL is null |
-9 | TELEFONO is null |
-12 | SOGGETTOFISCALE is null |
-13 | SEGNALATORE is null |
-74 | STATO parameter is more then 4 characters long |
-121 | SOGGETTOFISCALE parameter is more then 1 character long |
-129 | Not admitted value for SOGGETTOFISCALE parameter |
-136 | SEGNALATORE parameter is more then 6 characters long |
-96 | Already exists in Vega an operating office for which e-mail address equals EMAIL parameter value (only if duplicates e-mail address are not allowed in configuration) |
-97 | Already exists in Vega a prospect for which e-mail address equals EMAIL parameter value (only if duplicates e-mail address are not allowed in configuration) |
-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,
- No labels
Add Comment