POST DESCUENTOS/OBTENER_GANADOR

Método que valida un codigo de descuento

Request Information

URI Parameters

None.

Body Parameters

DiscountOfferRequestVM
NameDescriptionTypeAdditional information
CANTIDAD_PRODUCTO

integer

None.

DESCUENTO

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CANTIDAD_PRODUCTO": 1,
  "DESCUENTO": true
}

application/xml, text/xml

Sample:
<DiscountOfferRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Discount">
  <CANTIDAD_PRODUCTO>1</CANTIDAD_PRODUCTO>
  <DESCUENTO>true</DESCUENTO>
</DiscountOfferRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DiscountOfferResponseVM
NameDescriptionTypeAdditional information
ES_GANADOR

boolean

None.

ID_CAMPANA

string

None.

CODIGO_CAMPANA

string

None.

MENSAJE_USR

string

None.

MENSAJE_SIS

string

None.

COD_ERROR

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ES_GANADOR": true,
  "ID_CAMPANA": "sample string 2",
  "CODIGO_CAMPANA": "sample string 3",
  "MENSAJE_USR": "sample string 4",
  "MENSAJE_SIS": "sample string 5",
  "COD_ERROR": "sample string 6"
}

application/xml, text/xml

Sample:
<DiscountOfferResponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Discount">
  <CODIGO_CAMPANA>sample string 3</CODIGO_CAMPANA>
  <COD_ERROR>sample string 6</COD_ERROR>
  <ES_GANADOR>true</ES_GANADOR>
  <ID_CAMPANA>sample string 2</ID_CAMPANA>
  <MENSAJE_SIS>sample string 5</MENSAJE_SIS>
  <MENSAJE_USR>sample string 4</MENSAJE_USR>
</DiscountOfferResponseVM>