display_price

This class provides RESTful services to get display price(list price) for catalog entry. It uses the DisplayPrice noun.

Handler Class:

com.ibm.commerce.rest.price.handler.DisplayPriceHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/display_price?q={q}Finds display prices by a query. See each query for details on input and output.
GET/store/{storeId}/display_price?q=byCatalogEntryIdsAndPriceRuleIdGet the display prices for catalog entries by catalog entry ids and price rule id.
GET/store/{storeId}/display_price?q=byCatalogEntryIdsAndPriceRuleNameGet the display prices for catalog entries by catalog entry ids and price rule name.
GET/store/{storeId}/display_price?q=byPartNumbersAndPriceRuleIdGet the display prices for catalog entries by part numbers and price rule id.
GET/store/{storeId}/display_price?q=byPartNumbersAndPriceRuleNameGet the display prices for catalog entries by part numbers and price rule name.

Method Details

GET /store/{storeId}/display_price?q={q}

Finds display prices by a query. See each query for details on input and output.

Handler Method:

findByQuery

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.

GET /store/{storeId}/display_price?q=byCatalogEntryIdsAndPriceRuleId

Get the display prices for catalog entries by catalog entry ids and price rule id.

Handler Method:

byCatalogEntryIdsAndPriceRuleId

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
catalogEntryIdThe unique id of catalog entry.querystringtruetrue
priceRuleIdThe unique id of price rule.querystringtruefalse
quantityThe quantity of the catalog entry.querystringfalsefalse
uomThe unit of measurement of the quantity.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

display_price-IBM_Store_DisplayPrice


Example

Request:
GET /wcs/resources/store/10001/display_price?q=byCatalogEntryIdsAndPriceRuleId&catalogEntryId=13011&priceRuleId=10002
HTTP Status Code:

200

Response:
{
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/display_price?q=byCatalogEntryIdsAndPriceRuleId&catalogEntryId=13011&priceRuleId=10002",
	"resourceName": "display_price",
	"resultList": [
		{
			"catalogEntryId": "13011",
			"priceRuleId": "10002",
			"unitPrice": [
				{
					"price": {
						"currency": "USD",
						"value": 20.00
					},
					"quantity": {
						"uom": "C62",
						"value": 1.0
					}
				}
			]
		}
	]
}

GET /store/{storeId}/display_price?q=byCatalogEntryIdsAndPriceRuleName

Get the display prices for catalog entries by catalog entry ids and price rule name.

Handler Method:

byCatalogEntryIdsAndPriceRuleName

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
catalogEntryIdThe unique id of catalog entry.querystringtruetrue
priceRuleNameThe price rule name.querystringfalsefalse
quantityThe quantity of the catalog entry.querystringfalsefalse
uomThe unit of measurement of the quantity.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

display_price-IBM_Store_DisplayPrice


Example

Request:
GET /wcs/resources/store/10001/display_price?q=byCatalogEntryIdsAndPriceRuleName&catalogEntryId=13011&priceRuleName=%2522
HTTP Status Code:

200

Response:
{
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/display_price?q=byCatalogEntryIdsAndPriceRuleName&catalogEntryId=13011&priceRuleName=%2522",
	"resourceName": "display_price",
	"resultList": [
		{
			"catalogEntryId": "13011",
			"priceRuleId": "10001",
			"priceRuleName": "%22",
			"unitPrice": [
				{
					"price": {
						"currency": "USD",
						"value": 20.00
					},
					"quantity": {
						"uom": "C62",
						"value": 1.0
					}
				}
			]
		}
	]
}

GET /store/{storeId}/display_price?q=byPartNumbersAndPriceRuleId

Get the display prices for catalog entries by part numbers and price rule id.

Handler Method:

byPartNumbersAndPriceRuleId

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
partNumberThe unique id of catalog entry.querystringtruetrue
priceRuleIdThe unique id of price rule.querystringtruefalse
quantityThe quantity of the catalog entry.querystringfalsefalse
uomThe unit of measurement of the quantity.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

display_price-IBM_Store_DisplayPrice


Example

Request:
GET /wcs/resources/store/10001/display_price?q=byPartNumbersAndPriceRuleId&partNumber=HTA029_292001&partNumber=AAAZZZ&priceRuleId=10002
HTTP Status Code:

200

Response:
{
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/display_price?q=byPartNumbersAndPriceRuleId&partNumber=HTA029_292001&partNumber=AAAZZZ&priceRuleId=10002",
	"resourceName": "display_price",
	"resultList": [
		{
			"catalogEntryId": "13011",
			"partNumber": "HTA029_292001",
			"priceRuleId": "10002",
			"unitPrice": [
				{
					"price": {
						"currency": "USD",
						"value": 20.00
					},
					"quantity": {
						"uom": "C62",
						"value": 1.0
					}
				}
			]
		}
	]
}

GET /store/{storeId}/display_price?q=byPartNumbersAndPriceRuleName

Get the display prices for catalog entries by part numbers and price rule name.

Handler Method:

byPartNumbersAndPriceRuleName

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
partNumberThe part number of the catalog entry.querystringtruetrue
priceRuleNameThe price rule name.querystringfalsefalse
quantityThe quantity of the catalog entry.querystringfalsefalse
uomThe unit of measurement of the quantity.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

display_price-IBM_Store_DisplayPrice


Example

Request:
GET /wcs/resources/store/10001/display_price?q=byPartNumbersAndPriceRuleName&partNumber=HTA029_292001&qPartNumer=AAAZZZ&priceRuleName=List%20price%20rule
HTTP Status Code:

200

Response:
{
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/display_price?q=byPartNumbersAndPriceRuleName&partNumber=HTA029_292001&qPartNumer=AAAZZZ&priceRuleName=List%20price%20rule",
	"resourceName": "display_price",
	"resultList": [
		{
			"catalogEntryId": "13011",
			"partNumber": "HTA029_292001",
			"priceRuleId": "10002",
			"priceRuleName": "List price rule",
			"unitPrice": [
				{
					"price": {
						"currency": "USD",
						"value": 20.00
					},
					"quantity": {
						"uom": "C62",
						"value": 1.0
					}
				}
			]
		}
	]
}

Data Type Details

com.ibm.commerce.foundation.common.datatypes.MonetaryAmountType

Properties:
NameData TypeRequired
valuestringfalse
currencystringfalse

com.ibm.commerce.foundation.common.datatypes.QuantityType

Properties:
NameData TypeRequired
valuestringfalse
uomstringfalse

display_price-IBM_Store_DisplayPrice

Properties:
NameData TypeRequired
recordSetTotalstringfalse
recordSetStartNumberstringfalse
recordSetCompletestringfalse
resultListdisplay_price-IBM_Store_DisplayPrice_item arrayfalse
recordSetCountstringfalse

display_price-IBM_Store_DisplayPrice_item

Properties:
NameData TypeRequired
priceRuleNamestringfalse
priceRuleIdstringfalse
catalogEntryIdstringfalse
unitPricedisplay_price-IBM_Store_DisplayPrice_item.unitPrice arrayfalse
userDataFielddisplay_price-IBM_Store_DisplayPrice_item.userDataField arrayfalse
partNumberstringtrue

display_price-IBM_Store_DisplayPrice_item.unitPrice

display_price-IBM_Store_DisplayPrice_item.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue