Function
The Purchase Order (PO) Item Delete API is used to remove existing items from POs.
URL
{Root URL}/API/PO/ItemDelete/{API Key} |
Parameters
Parameter | Description | Required | Comment | |
1 | PoNum | Purchase order number | Y | |
2 | itemNumber | Item number | N | Used to choose which item to delete from the PO. |
3 | part_no | Part number | N | Used to choose which item to delete from the PO. |
4 | revision | Part revision | N | Used with Part_no to choose an item. |
5 | uniq_key | Part unique identifier | N | Can be used instead of part_no and revision. |
6 | partMfgr | Part manufacturer | N | Can be used to choose which item to delete from PO by the part manufacturer. |
7 | mfgr_pt_no | Manufacturer part number | N | Used with partMfgr. |
8 | uniqmfgrhd | Unique manufacturer part identifier | N | Can be used in place of mfgr_pt_no and uniqmfgrhd. |
9 | uniqlnno | Unique PO item Identifier | Y | Can be used in place of part_no or partMfgr. |
Example Strings
PO Item Delete
URL
?PoNum=PONUMBER&UNIQLNNO=UNIQLNNO |
JSON
{ "poNum":"PONUMBER "UNIQLNNO":"UNIQLNNO" } |
A successful request should return the following:
{ "$id": "1", "Code": "200", "Message": "PO Items deleted successfully.", "SessionId": "null", "IsValidUser": "true", "ResponseObject": "null" } |
Common Errors
Incorrect Parameter
If a parameter is incorrect, the system will return an error message describing the error:
{ "$id": "1", "Code": 403, "Message": "PO Items delete failed.Po Item does not exists.", "SessionId": "null", "IsValidUser": "true", "ResponseObject": "null" } |
URL Error
If there is an error with the URL, the system will return the following error message:
{ "$id": "1", "Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/PO/ItemDelet/123456789'.", "MessageDetail": "No action was found on the controller 'Po' that matches the name 'ItemDelet'." } |