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
- application/json
Path Parameters
-
MainDocVarName(required): string
The variable name of the main document, note the first letter must be capitalized.
-
ProcessVarName(required): string
The variable name of the commerce process, note the first letter must be capitalized.
Root Schema : Transaction-_archive_transactionsCollectionRequest
Type:
Show Source
object
-
selectionCriteria:
object Selection Query Definition
Title:
Selection Query Definition
Captures the query definition for resource requests, specifically for collection-based process actions.
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
-
fields:
array fields
Array of field names for display.
-
orderBy:
array orderBy
Array of field names, each optionally followed by asc or desc, that specifies the order of items filtered.
-
q:
string
Filter(a "where"clause) to restrict the items returned in the collection. By default, no filtering is applied.
-
search:
string
Seeded Search Name
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
Response
Supported Media Types
- application/json
Default Response
Root Schema : Transaction-_archive_transactionsCollectionResponse
Type:
object
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