Archive Transactions

post

/rest/v16/commerceDocuments{ProcessVarName}{MainDocVarName}/actions/_archive_transactions

Use this endpoint to archive the specified transactions. Note: This action is only available for CPQ administrators with superuser access.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Transaction-_archive_transactionsCollectionRequest
Type: object
Show Source
Nested Schema : Selection Query Definition
Type: object
Title: Selection Query Definition
Captures the query definition for resource requests, specifically for collection-based process actions.
Show Source
Nested Schema : fields
Type: array
Array of field names for display.
Show Source
Nested Schema : orderBy
Type: array
Array of field names, each optionally followed by asc or desc, that specifies the order of items filtered.
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Transaction-_archive_transactionsCollectionResponse
Type: object
Back to Top

Examples

The following example shows how to archive the specified Commerce transactions by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_archive_transactions

Request Body Sample

{
  "selectionCriteria": {
    "q": "{'bsid':{$eq:'3022127625'}}",
    "orderBy": ["field1:ASC", "field2:DESC"]
  }
}

Success Response: 204 No Content

Back to Top