CyberStore Price Web Service
CyberStore Price Web Service > All Operations Resource Group : GetDisplayPriceByStockCode (Method)
Gets the display pricing information in the current shopper context, for the specified stock code,  in a specified Quantity using the specified Unit of Measure.
Request (GetDisplayPriceByStockCodeSoapIn)

The request body is of type GetDisplayPriceByStockCode.

Request Body Parameters

NameDescriptionData Type
The stock code to price.xml:string
The number of the stock code to price.xml:decimal

The unit of measure type to price.

Valid options are:

  • Preferred Unit:   0
  • Stocking Unit:    1
  • Alternate Unit:   2
  • Other Unit:         3
The following example shows how to perform the web operation in CyberStore.
// Example: Gets pricing information for the current shopper
//      for the Stock Code A100,
//      in a quantity of 1,
//      in the preferred unit of measure
// then send the response to the browser console

MakeAJAXCall("Price.GetDisplayPriceByStockCode", {
    StockCode: 'BB100',
    Quantity: 1,
    UOM: 0
}, console.log);
200 Response (GetDisplayPriceByStockCodeSoapOut)

The response body is of type GetDisplayPriceByStockCodeResponse.

Response Body Parameters

NameDescriptionData Type

A string value containing a JSON object.

    "DefaultPrice": "$560.00",
    "DefaultPriceLabelText": "Default Price",
    "DefaultPriceAmount": 560.000,
    "DefaultPricePerUnit": "",
    "DefaultPricePerUnitAmount": 0,
    "ShowDefaultPrice": false,
    "CustomerPrice": "$560.00",
    "CustomerPriceLabelText": "Customer Price",
    "CustomerPriceAmount": 560.00000,
    "CustomerPricePerUnit": "",
    "CustomerPricePerUnitAmount": 0,
    "ShowCustomerPrice": true,
    "DiscountPrice": "$560.00",
    "DiscountPriceLabelText": "Discounted Price",
    "DiscountPriceAmount": 560.00000,
    "DiscountPricePerUnit": "",
    "DiscountPricePerUnitAmount": 0,
    "ShowDiscountPrice": false,
    "LinePriceAmount": 560.00000,
    "WebPrice": "$560.00",
    "WebPriceLabelText": "Web Price",
    "WebPriceAmount": 560.00000,
    "WebPricePerUnit": "",
    "WebPricePerUnitAmount": 0,
    "ShowWebPrice": false,
    "WebTotalPriceAmount": 56000.00000,
    "WebTotalPrice": "$56,000.00",
    "Quantity": 100,
    "UnitOfMeasureText": "EA",
    "UnitOfMeasureType": "STOCKING",
    "CanShow": true
See Also
All Operations Resource GroupCyberStore Price Web Service