API Version Auth Token Data Sources Server Time
AP Check Update AP Invoice Entry
AR Invoice Entry AR Remittance Entry
GL Account
Adjustments Entry Backflush Kit Issue Issues Entry Part Physical Count Entry Stock Status Stores Transfer
Serial Number Cross Reference WIP Completions Entry
Lot
Multiple Location
Bill of Material
Purchase Order PO Receipts Entry Receipt Transaction Vendor Vendor Contact Vendor Part
Customer Customer Contact Customer Part
Product Price
Sales Order Serial Number Shipments Entry Shipment Transaction




Product Price, Create

Creates a new Product Price using the supplied data and returns the details of the created Product Price.

URL
/api/product-price-create
Request Method
POST
Expandable Program
Product Price Editor (SOEPL)
Required Fields
PART_ID
PRICE_CODE
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",
  "SO_UNIT_PRICE": "10",
  "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 created 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 creation:
{
  "MESSAGE": "",
  "MESSAGE_CODE": ""
}
Try the API