api/ProductPrice/Update (POST)
Updates an existing Product Price using the supplied update data.
HTTP Method: POST
Required Fields: PART_ID, PRICE_CODE, EFFECTIVE_DATE, ORDER_QTY to locate the record and at least one other field to update
Requires an Authentication Token in the AuthToken HTTP header. Authentication Tokens are obtained from api/Security/Login (POST).
Returns the updated Product Price.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| RequestData | This is a JSON object containing Product Price update data.
Update Product Price Example:
{
"PART_ID": "646-7202",
"PRICE_CODE": "LP",
"EFFECTIVE_DATE": "10/10/2014",
"ORDER_QTY": "1000",
"END_DATE": "12/31/2029",
"NOTES": "Notes can be up to 32,765 characters long.",
"ATTACHMENTS": "http://www.expandable.com/|C:\\Expandable.docx"
}
Returns 1 Product Price if successful.
This is like 'Edit' in Expandable.
Accepted Product Price Fields:
ATTACHMENTS, CURR_CODE, EFFECTIVE_DATE, END_DATE,
ITEM_DISC_PCT, NOTES, ORDER_QTY, PART_ID,
PRICE_CHG, PRICE_CODE, SALES_COMM, SO_UNIT_PRICE |
Define this parameter in the request body. |
Response Information
Success:200/OK
Body contains JSON object with updated Product Price.
Error:
400/Request JSON is invalid.
401/AuthToken was not provided.
401/AuthToken is malformed.
401/AuthToken is expired.
401/AuthToken login failure.
500/(Message)
Body contains JSON object with Message and MessageCode.
Returned Product Price Fields:
ATTACHMENTS, CREATED_BY, CURR_CODE, DATE_CREATED, DATE_MODIFIED, EFFECTIVE_DATE, END_DATE, ITEM_DISC_PCT, MODIFIED_BY, NOTES, ORDER_QTY, PART_ID, PRICE_CHG, PRICE_CODE, SALES_COMM, SO_UNIT_PRICE