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 DescriptionRequiredComment
1PoNum Purchase order number       
2itemNumberItem number NUsed to choose which item to delete from the PO.
3part_no Part numberNUsed to choose which item to delete from the PO.
4revisionPart revisionUsed with Part_no to choose an item. 
5uniq_keyPart unique identifier NCan be used instead of part_no and revision.
6partMfgrPart manufacturerNCan be used to choose which item to delete from PO by the part manufacturer.
7mfgr_pt_noManufacturer part number NUsed with partMfgr.
8uniqmfgrhdUnique manufacturer part identifierNCan be used in place of mfgr_pt_no and uniqmfgrhd.
9uniqlnno Unique PO item IdentifierYCan 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'."

}