Function
The Purchase Order (PO) Schedule Edit API is used for deleting scheduling information in POs.
URL
{Root URL}/API/PO/ScheduleDelete/{API Key} |
Parameters
Parameter | Description | Required | Comment | |
1 | poNum | Purchase order number | Y | |
2 | uniqDetNo | PO schedule identifier | Y | |
3 | UNIQLNNO | Unique line number | Y |
Example Strings
Edit Schedule Qty
URL
?poNum=PONUMBER&uniqDetNo=UNIQDETNO |
JSON
{ "poNum":"PONUMBER", "uniqLnNo":"UNIQLNNO", } |
A successful add should result in the following:
{ "$id": "1", "Code": "200", "Message: "PO Schedule deleted successfully.", "SessionId": "null", "IsValidUser": "true", "ResponseObject": "null" } |
Common Errors
API Key Error
If there is an error with the API key, the system will return an error message 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 URL, the system will return an HTTP not found error:
{ "$id": "1", "Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/PO/ScheduleDelet/123456789'.", "MessageDetail": "No action was found on the controller 'Po' that matches the name 'ScheduleDelet'." } |
Schedule Delete Failed
If the parameter being used is invalid or the record being retrieved no longer exists, the system will return a Schedule Details Failed message:
{ "$id": "1", "Code": "403", "Message": "PO Schedule delete failed.An error occurred while executing the command definition. See the inner exception for details.", "SessionId": "null", "IsValidUser": "true", "ResponseObject": "null" } |