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




Customer Part, Create

Creates a new Customer Part using the supplied data and returns the details of the created Customer Part.

URL
/api/customer-part-create
Request Method
POST
Expandable Program
Customer Part Editor (SOECP)
Required Fields
PART_ID
CUSTOMER_ID
CUST_PART_ID
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",
  "CUSTOMER_ID": "ABCCORP",
  "CUST_PART_ID": "LARGE-HYDRAULIC-PUMP",
  "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": "",
  "CUSTOMER_ID": "",
  "CUST_PART_ID": "",
  "SALESMAN_ID": "",
  "CONTRACT": "",
  "SALE_STATUS": "",
  "REFERENCE": "",
  "SHIP_LT": "",
  "SO_DESC": "",
  "SO_UM": "",
  "SALE_CONV": "",
  "SO_ORDER_QTY": "",
  "ECN": "",
  "PARTIAL_SHIP": "",
  "DWG_REV": "",
  "DEF_STORES_CODE": "",
  "EARLY_SHIP": "",
  "SN_REQD": "",
  "TAX_CODE": "",
  "PRODUCT_LINE": "",
  "VAT_CODE": "",
  "DATE_LAST_QUOTE": "",
  "PRICE_CODE": "",
  "QUOTE_QTY": "",
  "CURR_CODE": "",
  "QUOTE_UNIT_PRIC": "",
  "ITEM_DISC_PCT": "",
  "PRICE_CHG": "",
  "LAST_SO_ENTERED": "",
  "DATE_LAST_SO": "",
  "LAST_SO_QTY": "",
  "LAST_SO_UM": "",
  "LAST_SO_PRICE": "",
  "LAST_DISC_PCT": "",
  "LAST_PRICE_CODE": "",
  "COMMENT_ID": "",
  "COMMENT_1": "",
  "COMMENT_2": "",
  "COMMENT_3": "",
  "COMMENT_4": "",
  "SOFCP_USER_1": "",
  "SOFCP_USER_2": "",
  "SOFCP_USER_3": "",
  "SOFCP_USER_4": "",
  "SOFCP_USER_5": "",
  "SOFCP_USER_6": "",
  "SOFCP_USER_7": "",
  "SOFCP_USER_8": "",
  "SOFCP_USER_9": "",
  "SOFCP_USER_10": "",
  "SOFCP_USER_11": "",
  "SOFCP_USER_12": "",
  "SOFCP_USER_13": "",
  "SOFCP_USER_14": "",
  "NOTES": "",
  "ATTACHMENTS": "",
  "AUTH_TOKEN": ""
}
Success Response
Returned HTTP status indicates success:

200/OK

Returned JSON contains the successfully created Customer Part:
{
  "PART_ID": "",
  "CUSTOMER_ID": "",
  "CUST_PART_ID": "",
  "SALESMAN_ID": "",
  "CONTRACT": "",
  "SALE_STATUS": "",
  "REFERENCE": "",
  "SHIP_LT": "",
  "SO_DESC": "",
  "SO_UM": "",
  "SALE_CONV": "",
  "SO_ORDER_QTY": "",
  "ECN": "",
  "PARTIAL_SHIP": "",
  "DWG_REV": "",
  "DEF_STORES_CODE": "",
  "EARLY_SHIP": "",
  "SN_REQD": "",
  "TAX_CODE": "",
  "PRODUCT_LINE": "",
  "VAT_CODE": "",
  "DATE_LAST_QUOTE": "",
  "PRICE_CODE": "",
  "QUOTE_QTY": "",
  "CURR_CODE": "",
  "QUOTE_UNIT_PRIC": "",
  "ITEM_DISC_PCT": "",
  "PRICE_CHG": "",
  "LAST_SO_ENTERED": "",
  "DATE_LAST_SO": "",
  "LAST_SO_QTY": "",
  "LAST_SO_UM": "",
  "LAST_SO_PRICE": "",
  "LAST_DISC_PCT": "",
  "LAST_PRICE_CODE": "",
  "COMMENT_ID": "",
  "COMMENT_1": "",
  "COMMENT_2": "",
  "COMMENT_3": "",
  "COMMENT_4": "",
  "SOFCP_USER_1": "",
  "SOFCP_USER_2": "",
  "SOFCP_USER_3": "",
  "SOFCP_USER_4": "",
  "SOFCP_USER_5": "",
  "SOFCP_USER_6": "",
  "SOFCP_USER_7": "",
  "SOFCP_USER_8": "",
  "SOFCP_USER_9": "",
  "SOFCP_USER_10": "",
  "SOFCP_USER_11": "",
  "SOFCP_USER_12": "",
  "SOFCP_USER_13": "",
  "SOFCP_USER_14": "",
  "CREATED_BY": "",
  "DATE_CREATED": "",
  "MODIFIED_BY": "",
  "DATE_MODIFIED": "",
  "OPERATOR_ID": "",
  "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 Customer Part creation:
{
  "MESSAGE": "",
  "MESSAGE_CODE": ""
}
Try the API