Delete a Transaction Line
delete
/rest/v7/commerceDocuments{ProcessVarName}{MainDocVarName}/{_id}/{subDocVarName}/{subDocNumber}
Delete a particular transaction line item
Request
Supported Media Types
- application/x-www-form-urlencoded
Path Parameters
-
MainDocVarName: string
The variable name of the main document, the first letter must be capitalized
-
ProcessVarName: string
The variable name of the Commerce process, the first letter must be capitalized
-
_id: integer
Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
-
subDocNumber: string
Unique document number for this sub doc to be used as document identifier in a commerce process
-
subDocVarName: string
The variable name of the sub-document
Response
Supported Media Types
- application/json
Default Response
No content. This task does not return elements in the response body.
Examples
The following example shows how to delete a particular line item from a Transaction by submitting a DELETE request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X DELETE -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" https://sitename.oracle.com/rest/v7/commerceDocumentsOraclecpqoTransaction/36365444/transactionLine/2