Function

  

The Work Order (WO) Edit API is used to edit the details of an existing WO.


 

URL

   

{Root URL}/API/WO/Edit/{API Key}


 

Parameters 



Parameter DescriptionRequiredComment
1 WoNoWork order numberY 
2Uniq_KeyItem unique identifierYUsed to choose the item to be built in the work order.
3openclosWork order statusYCan be "STANDARD", "PRIORITY-1", "PRIORITY-2", "FIRM PLAN", "ADMIN HOLD", "MFG HOLD", "REWORK", "REWORK FIRM", or "CANCEL".
4Due_DateWork order due dateNUses the following date format: MM-DD-YYYY.
5custNo Customer numberYMust be an existing customer.
6bldQtyBuild quantityNAmount to be built in the work order.


Example Strings


Edit Work Order Quantity


URL

  

?WoNo=WONO&uniq_key=UNIQKEY&openclos=STANDARD&custno=CUSTOMERNUMBER&bldqty=QTY'


JSON


{

WoNo”:”WONO”,

uniq_key”:”UNIQKEY”,

openclos”:”STANDARD”,

custno”:”CUSTOMERNUMBER”,

bldqty”:”QTY

{



A successful edit should result in:

 

{

"$id": "1",

"Code": "200",

"Message": "WorkOrder edited successfully.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}



Common Errors


API Key Error


If there is a problem with the entered API key, the system will return an error describing it:

 

{

"$id": "1",

"Code": "403",

"Message": "Invalid API Key.",

"SessionId": "null",

"IsValidUser": "false",

"ResponseObject": "null"

}



URL Error


If there is an error with the used URL, the system will return an HTTP error message:

 

{

"$id": "1",

"Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/WOEdit/123456789'.",

"MessageDetail": "No type was found that matches the controller named 'WOEdit'."

}


   

JSON Error


If there is a problem with the setup of the JSON string, the system will return a "non-static method" message:

 

{

"$id": "1",

"Code": "403",

"Message": "WorkOrder edit failed.Non-static method requires a target.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}



Missing Required Parameter


If a required parameter is missing, the system will return an error message showing the missing parameter:

 

{

"$id": "1",

"Code": "403",

"Message": "WorkOrder edit failed.Please Provide Work Order Number.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}