No Translation available yet
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 default
wsGetCampagnePremi
To be used to get informations about loyalty campaigns and prizes available for the customer.
@GET
@Path("/wsGetCampagnePremi")
@QueryParam("CODE") String CODE,
@QueryParam("CODICECLIENTE") String CODICECLIENTE,
@QueryParam("COMPANY") String COMPANY
PARAMETERS | DESCRIPTION | VALUES |
CODE | control code, built as md5hash of a value that depends from db |
|
CODICECLIENTE | Operating office code |
|
COMPANY | Code of customer’s company. Null only if companies are not defined in Vega |
|
OUTPUT DATA | DESCRIPTION | VALUES |
ResultCode | Method result | 1 if no errors. Cf. error codes description for other values |
Campagne | List of loyalty campaigns, with gifts, for customer with operating office code = CODICECLIENTE (cf. Campagne recordset) |
|
Vincite | List of gifts the customer has already asked for (Cf. Vincite recordset) |
|
Error | Error description, if present |
|
ERROR CODE | DESCRIPTION |
Codes for bad CODE | |
-1 | It’s for |
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, |
Campagne recordset
One row for each loyalty campaign
FIELD NAME | TYPE | DESCRIPTION | VALUE |
CodiceCampagna | String | Loyalty campaign code |
|
DescrCampagna | String | Loyalty campaign description |
|
MinimoPunti | int | minimum amount of points needed to ask for a prize in this campaign |
|
SaldoPunti | int | points that are still available for the customer |
|
PuntiRimasti | int | points that are still available for the customer | Theis value is always the same as SaldoPunti |
DirittoAlPremio | String | chance for the customer to ask for a prize in this campaign | S=yes: the customer can ask for the prize; N=no: the customer can’t ask for the prize |
premi | Premi[] | prizes in the campaign (Cf. Premi recordset) |
|
Vincite recordset
One row for each prize the customer has already asked for.
FIELD NAME | TYPE | DESCRIPTION | VALUE |
CodiceCampagna | String | Loyalty campaign code |
|
CodiceProdotto | String | Product code |
|
DescrCampagna | String | Loyalty campaign description |
|
DescrProdotto | String | Product description |
|
ValoreInPunti | int | points needed to ask for this prize |
|
DataAssegnazione | String | date of booking or delivery of the prize |
|
Add Comment