Product Price, Query
Queries existing Product Prices using the provided criteria and returns a list of found Product Prices.
URL
/api/product-price-query
Request Method
POST
Expandable Program
Product Price Editor (SOEPL)
Required Fields
(at least one field to be used as query criteria)
AUTH_TOKEN
AUTH_TOKEN
Auth Token
This API call requires an Authentication Token ("Auth Token") for the required field AUTH_TOKEN. Auth Tokens are obtained from Auth Token, Get.
Example Request JSON
{
"PART_ID": "PUMP002",
"END_DATE": ">2020-01-01",
"ORDER_QTY": "BETWEEN 100 AND 1000",
"AUTH_TOKEN": ""
}
Full Request JSON
{
"PART_ID": "",
"PRICE_CODE": "",
"EFFECTIVE_DATE": "",
"ORDER_QTY": "",
"END_DATE": "",
"CURR_CODE": "",
"SO_UNIT_PRICE": "",
"ITEM_DISC_PCT": "",
"PRICE_CHG": "",
"SALES_COMM": "",
"CREATED_BY": "",
"DATE_CREATED": "",
"MODIFIED_BY": "",
"DATE_MODIFIED": "",
"DATE_LAST_UPDT": "",
"TIME_LAST_UPDT": "",
"AUTH_TOKEN": ""
}
QBE Notation
This query uses Expandable Query By Example (QBE) Notation. QBE Notation allows for conditional query criteria.
Not Equal To:
Greater Than:
Greater Than Or Equal To:
Less Than:
Less Than Or Equal To:
Between:
In:
Wildcard (any length):
Wildcard (single character):
Not Equal To:
"SO_STATUS": "<>X"
Greater Than:
"ON_HAND_QTY": ">0"
Greater Than Or Equal To:
"EFFECTIVE_DATE": ">=2016-01-01"
Less Than:
"AMOUNT": "<100"
Less Than Or Equal To:
"DATE_APPROVED": "<=2019-05-30"
Between:
"ORDER_QTY": "BETWEEN 10 AND 100"
In:
"LOT_STATUS": "IN A,C"
Wildcard (any length):
"PART_ID": "MOTOR%"
Wildcard (single character):
"SERIAL_NUMBER": "GC0000406_"
Success Response
Returned HTTP status indicates success:
200/OK
Returned JSON contains the Product Prices which were found by the query:
200/OK
Returned JSON contains the Product Prices which were found by the query:
[
{
"PART_ID": "",
"PRICE_CODE": "",
"EFFECTIVE_DATE": "",
"ORDER_QTY": "",
"END_DATE": "",
"CURR_CODE": "",
"SO_UNIT_PRICE": "",
"ITEM_DISC_PCT": "",
"PRICE_CHG": "",
"SALES_COMM": "",
"CREATED_BY": "",
"DATE_CREATED": "",
"MODIFIED_BY": "",
"DATE_MODIFIED": "",
"DATE_LAST_UPDT": "",
"TIME_LAST_UPDT": "",
"NOTES": "",
"ATTACHMENTS": ""
}
]
Failure Response
Returned HTTP status indicates failure:
400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)
Returned JSON contains error information for the failed Product Price query:
400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)
Returned JSON contains error information for the failed Product Price query:
{
"MESSAGE": "",
"MESSAGE_CODE": ""
}
