|
InfoWebXMLWebServiceCalculatePriceWithOffer Method |
Calculates the price based on product, term, currency, discount, offer, number of copies and zip code.
The price value is to be found in the Price property of the InfoWebPrice object which is returned.
Namespace: Infosoft.WebservicesAssembly: Infosoft.Webservices (in Infosoft.Webservices.dll) Version: 4.00.0.0
Syntax No code example is currently available or this language may not be supported.
Parameters
- titleCode String
- The code for the subscription title
- productCode String
- Product code
- termCode String
- Term code
- zipCode String
- Zip code
- currencyCode String
- Currency code
- numberOfCopies Int32
- Number of copies
- offerCode String
- Offer code
Return Value
InfoWebPriceInfoWebPrice object with status code StatusCodes.OK if the price was calculated successfully. If the term is invalid it returns status code "226".
Exceptions Exception | Condition |
---|
SoapException | A soap exception due to no currency found for given currency code |
Remarks Possible status codes:
string titleCode = "VIN";
string productCode = "V6";
string termCode = "12";
string zipCode = "0178";
string currencyCode = "NOK";
int numberOfCopies = 1;
string offerCode = "DN50";
InfoWebPrice priceObject = CalculatePriceWithOffer(titleCode, productCode, termCode, zipCode, currencyCode, numberOfCopies, offerCode);
if (priceObject.StatusCode == StatusCodes.OK)
{
decimal price = priceObject.Price;
}
else
{
}
No code example is currently available or this language may not be supported.
See Also