api/ProductPrice/Create (POST)
Creates a new Product Price using the supplied creation data.
HTTP Method: POST
Required Fields: PART_ID, PRICE_CODE
Requires an Authentication Token in the AuthToken HTTP header. Authentication Tokens are obtained from api/Security/Login (POST).
Returns the created Product Price.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| RequestData | This is a JSON object containing Product Price creation data.
Create Product Price Example:
{
"PART_ID": "646-7202",
"PRICE_CODE": "LP",
"EFFECTIVE_DATE": "10/10/2014",
"ORDER_QTY": "1000",
"SO_UNIT_PRICE": "10",
"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 'Insert' 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 created 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