Product Price, Update
Updates an existing Product Price using the supplied data and returns the details of the updated Product Price.
URL
/api/product-price-update
Request Method
POST
Expandable Program
Product Price Editor (SOEPL)
Required Fields
PART_ID
PRICE_CODE
EFFECTIVE_DATE
ORDER_QTY
(at least one field to update)
AUTH_TOKEN
PRICE_CODE
EFFECTIVE_DATE
ORDER_QTY
(at least one field to update)
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",
"PRICE_CODE": "LP",
"EFFECTIVE_DATE": "2014-10-10",
"ORDER_QTY": "1000",
"END_DATE": "2029-12-31",
"NOTES": "Notes can be up to 32,765 characters long.",
"ATTACHMENTS": "http://www.expandable.com/|C:\\Expandable.docx",
"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": "",
"NOTES": "",
"ATTACHMENTS": "",
"AUTH_TOKEN": ""
}
Success Response
Returned HTTP status indicates success:
200/OK
Returned JSON contains the successfully updated Product Price:
200/OK
Returned JSON contains the successfully updated Product Price:
{
"PART_ID": "",
"PART_TYPE": "",
"PART_DESC": "",
"PART_UM": "",
"SO_ORDER_QTY": "",
"MIN_SALES_QTY": "",
"PART_STATUS": "",
"STD_UNIT_COST": "",
"PRODUCT_LINE": "",
"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 update:
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 update:
{
"MESSAGE": "",
"MESSAGE_CODE": ""
}
