Functions
Schedule Edit API is used to delete scheduling information in Purchase Orders.
URL-{Root URL}/API/PO/ScheduleDelete/{API Key}
Parameters
Parameter |
Description |
Required |
Comment |
poNum |
Purchase Order Number |
Y |
|
uniqDetNo |
PO Schedule Identifier |
Y |
|
Example Strings
Edit Schedule Qty
URL-?poNum=PONUMBER&uniqDetNo=UNIQDETNO
JSON
{
'poNum':'PONUMBER',
'uniqLnNo':'UNIQLNNO',
}
A successful add should result in
{
$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 a 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 used parameter 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
}
|