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




Serial Number, Create

Creates a new Serial Number using the supplied data and returns the details of the created Serial Number.

URL
/api/serial-number-create
Request Method
POST
Expandable Program
Serial Number Editor (SOESN)
Required Fields
PART_ID
SERIAL_NUMBER
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": "MOTOR003",
  "SERIAL_NUMBER": "GC00004057",
  "SN_STATUS": "A",
  "STORES_CODE": "MS",
  "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": "",
  "SERIAL_NUMBER": "",
  "LOT_ID": "",
  "SHIP_TO_CUST": "",
  "SN_STATUS": "",
  "STORES_CODE": "",
  "STOCK_LOCATION": "",
  "SO_ID": "",
  "SO_LINE_NO": "",
  "SHIPMENT_NO": "",
  "SOLD_TO_CUST": "",
  "BILL_TO_CUST": "",
  "SHIPPED_DATE": "",
  "SHIP_TYPE": "",
  "RETURNED_DATE": "",
  "DATE_SCRAPPED": "",
  "RA_REASON": "",
  "DWG_REV": "",
  "ECN": "",
  "ON_WARRANTY": "",
  "OFF_WARRANTY": "",
  "SERV_CONTRACT": "",
  "CONTACT": "",
  "LOCATION": "",
  "REFERENCE": "",
  "LAST_SERVICE": "",
  "NEXT_SERVICE": "",
  "SOFSN_USER_1": "",
  "SOFSN_USER_2": "",
  "SOFSN_USER_3": "",
  "SOFSN_USER_4": "",
  "SOFSN_USER_5": "",
  "SOFSN_USER_6": "",
  "SOFSN_USER_7": "",
  "SOFSN_USER_8": "",
  "SOFSN_USER_9": "",
  "SOFSN_USER_10": "",
  "SOFSN_USER_11": "",
  "SOFSN_USER_12": "",
  "NOTES": "",
  "ATTACHMENTS": "",
  "AUTH_TOKEN": ""
}
Success Response
Returned HTTP status indicates success:

200/OK

Returned JSON contains the successfully created Serial Number:
{
  "PART_ID": "",
  "SERIAL_NUMBER": "",
  "LOT_ID": "",
  "SHIP_TO_CUST": "",
  "SN_STATUS": "",
  "STORES_CODE": "",
  "STOCK_LOCATION": "",
  "FROM_STORES": "",
  "FROM_LOCATION": "",
  "SO_ID": "",
  "SO_LINE_NO": "",
  "SHIPMENT_NO": "",
  "SOLD_TO_CUST": "",
  "BILL_TO_CUST": "",
  "SHIPPED_DATE": "",
  "SHIP_TYPE": "",
  "RETURNED_DATE": "",
  "DATE_SCRAPPED": "",
  "DATE_CONSIGNED": "",
  "RA_REASON": "",
  "DWG_REV": "",
  "ECN": "",
  "ON_WARRANTY": "",
  "OFF_WARRANTY": "",
  "SERV_CONTRACT": "",
  "CONTACT": "",
  "LOCATION": "",
  "REFERENCE": "",
  "LAST_SERVICE": "",
  "NEXT_SERVICE": "",
  "ORDER_ID": "",
  "LINE_NUMBER": "",
  "ORDER_REFERENCE": "",
  "BATCH_NUMBER": "",
  "PROGRAM_ID": "",
  "ORIG_SO_ID": "",
  "ORIG_SHIP_TO": "",
  "ORIG_SHIP_DATE": "",
  "LAST_INVOICE": "",
  "SOFSN_USER_1": "",
  "SOFSN_USER_2": "",
  "SOFSN_USER_3": "",
  "SOFSN_USER_4": "",
  "SOFSN_USER_5": "",
  "SOFSN_USER_6": "",
  "SOFSN_USER_7": "",
  "SOFSN_USER_8": "",
  "SOFSN_USER_9": "",
  "SOFSN_USER_10": "",
  "SOFSN_USER_11": "",
  "SOFSN_USER_12": "",
  "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 Serial Number creation:
{
  "MESSAGE": "",
  "MESSAGE_CODE": ""
}
Try the API