Delete a Requisition Header, a Line, and a Distribution

You can perform a DELETE operation to delete an incomplete requisition header, or a line, or distribution.

Delete a Requisition Header

Prerequisite

Launch the GET request to get the requisition header ID of the requisition to delete it.

Example URL

Use this resource URL format:

DELETE

cURL Command
curl -u username:password -X DELETE "https://servername/fscmRestApi/resources/version/purchaseRequisitions/purchaseRequisitionsUniqID"

Example Request

Here's an example of the request body in JSON format:
curl -u username:password -X DELETE "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169237494"

Example Response

Here's an example of the response body in JSON format.

204 - No content

Delete a Requisition Line

You can delete requisition lines of incomplete requisitions. This deletes only the line and the distributions associated with it.

Prerequisite

Launch the GET request to get the requisition header ID and requisition line ID of the requisition line to delete it.

Example URL

DELETE

cURL Command
Here's an example of the request body in JSON format:
curl -u username:password -X DELETE "https://servername/fscmRestApi/resources/version/purchaseRequisitions/purchaseRequisitionsUniqID/child/lines/RequisitionLineId"

Example Request

Here's an example of the request body in JSON format.

curl -u username:password -X DELETE "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100542842819/child/lines/300100542842820"

Example Response

Here's an example of the response body in JSON format:

204 - No content

Delete a Requisition Distribution

You can delete distributions of lines belonging to incomplete requisitions.

Prerequisite

Launch the GET request to get the requisition header ID, requisition line ID, requisition distribution ID of the distribution to delete it.

Example URL

DELETE

cURL Command
Here's an example of the request body in JSON format:
curl -u username:password -X DELETE "https://servername/fscmRestApi/resources/version/purchaseRequisitions/purchaseRequisitionsUniqID/child/lines/RequisitionLineId/child/distributions/RequisitionDistributionId"

Example Request

Here's an example of the request body in JSON format:

curl -u username:password -X DELETE "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100542842864/child/lines/300100542842865/child/distributions/300100542842866"

Example Response

Here's an example of the response body in JSON format:

204 - No content