Get prices for a query and query parameters
The following example shows how to get prices for a query and query parameters.
Request
POST /wcs/resources/store/10101/price HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json
{
"query": {
"name": "byProductID",
"products": [
{
"contractIds": [
"43221"
],
"currencies": [
"USD"
],
"dates": [
"2011-08-22T16:00:00Z"
],
"productId": "2135",
"quantities": [
{
"quantity": 1.5,
"uom": "C44"
}
]
}
]
}
}
{
"query": {
"name": "byPartNumber",
"contractIds": [
"24331"
],
"products": [
{
"contractIds": [
"43221"
],
"currencies": [
"USD"
],
"partNumber": "A2135",
"quantities": [
{
"quantity": 1.5,
"uom": "C44"
}
]
},
{
"currencies": [
"CNY"
],
"partNumber": "A4135",
"quantities": [
{
"quantity": 1.8,
"uom": "C64"
}
]
}
]
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"EntitledPrice": [
{
"UnitPrice": [
{
"price": {
"currency": "USD",
"value": 60.00
},
"quantity": {
"uom": "C62",
"value": 1.0
}
}
],
"contractId": "10001",
"partNumber": "WCL004_041404",
"productId": "11724"
}
],
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/price",
"resourceName": "price"
}