Commerce REST APIs

Overview

Oracle CPQ exposes transactional objects and transaction data through REST web services. The Commerce REST APIs allow credentialed third-party systems to retrieve, create, update, and delete transactions and transaction lines.

The following REST APIs use the CPQ Reference Application, where the commerce process is Oraclecpqo, the main document is Transaction, and the sub-document is Transaction Line.

Administration

ClosedAdd Transaction Lines

Add Transaction LinesPOST method

Description

Use this endpoint to add parts to the transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/addLineItem_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selectionMode, selections, and skipIntegration.
Refer to Request Body Objects for additional information

Response Body Parameters

documents

The JSON Transaction Line data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533 /actions/addLineItems_t


ClosedAlternate Address - Retrieve

Alternate Address - Retrieve POST method

Description

Use this endpoint to return alternative addresses that are associated with the current customer and transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_retrieve_alternate_address

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

accountAddressCriteria

Captures the query definition for the current resource request.

This endpoint supports the cacheInstanceId parameter. Refer to Request Body Objects for additional information

Response Body Parameters

accountAddressCriteria

Captures the query definition for the current resource request.

accountAddressList

Alternative 'bill_to/ship_to' addresses associated with the current customer and Transaction.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_retrieve_alternate_address


ClosedResponse Body Sample

{ "accountAddressList": { "hasMore": false, "items": [{ "dateModified": "2011-01-18", "billing_phone": "555-555-5678", "shipping_state": "Arkansas", "billing_last_name": "Jones", "dateAdded": "2008-05-07", "billing_state": "Arkansas", "shipping_company_2": "Co.", "billing_email": "Bill.Jones@email.com", "shipping_address_2": "Unit 55", "id": 4162301, "shipping_address": "401 Main Street", "billing_country": "United States", "shipping_zip": "60081", "shipping_fax": "555-555-5678", "shipping_phone": "555-555-5678", "shipping_last_name": "Jones", "billing_fax": "555-555-5678", "shipping_country": "United States", "shipping_first_name": "Bill", "shipping_city": "Little Rock", "shipping_company": "Apple", "shipping_email": "Bill.Jones@email.com", "billing_company": "Apple", "billing_zip": "60081", "billing_first_name": "Bill", "billing_city": "Little Rock", "billing_company_2": "Co.", "billing_address_2": "Unit 55", "billing_address": "401 Main Street" }, { "dateModified": "2011-01-18", "billing_phone": "555-555-5679", "shipping_state": "California", "billing_last_name": "Brown", "dateAdded": "2008-05-15", "billing_state": "California", "shipping_company_2": "Inc.", "billing_email": "Steve.Brown@email.com", "shipping_address_2": "Suite 128", "id": 5676963, "shipping_address": "501 Pine Circle", "billing_country": "United States", "shipping_zip": "60082", "shipping_fax": "555-555-5679", "shipping_phone": "555-555-5679", "shipping_last_name": "Brown", "billing_fax": "555-555-5679", "shipping_country": "United States", "shipping_first_name": "Steve", "shipping_city": "Sacramento", "shipping_company": "Oracle", "shipping_email": "Steve.Brown@email.com", "billing_company": "Oracle", "billing_zip": "60082", "billing_first_name": "Steve", "billing_city": "Sacramento", "billing_company_2": "Inc.", "billing_address_2": "Suite 128", "billing_address": "501 Pine Circle" }, { "dateModified": "2011-01-18", "billing_phone": "555-555-5680", "shipping_state": "Colorado", "billing_last_name": "Davis", "dateAdded": "2008-05-15", "billing_state": "Colorado", "shipping_company_2": "Corp.", "billing_email": "Mark.Davis@email.com", "shipping_address_2": "PO Box 458", "id": 5676964, "shipping_address": "601 Maple Court", "billing_country": "United States", "shipping_zip": "60083", "shipping_fax": "555-555-5680", "shipping_phone": "555-555-5680", "shipping_last_name": "Davis", "billing_fax": "555-555-5680", "shipping_country": "United States", "shipping_first_name": "Mark", "shipping_city": "Denver", "shipping_company": "HP", "shipping_email": "Mark.Davis@email.com", "billing_company": "HP", "billing_zip": "60083", "billing_first_name": "Mark", "billing_city": "Denver", "billing_company_2": "Corp.", "billing_address_2": "PO Box 458", "billing_address": "601 Maple Court" } ] } }


ClosedAlternate Address - Select

Alternate Address - Select POST method

Description

Use this endpoint to associate an alternate account address with a transaction. This action is only available when the Customer ID field associated with a transaction has multiple addresses.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction/{id}/actions/_select_alternate_address_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

accountAddressId

The ID for the alternate address.

alternateAddress

Alternative bill to and ship to addresses.

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selectionMode, selections, and skipIntegration.
Refer to Request Body Objects for additional information

Response Body Parameters

documents

JSON data containing a link to the transaction with updated bill to and ship to addresses.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_select_alternate_address



ClosedArchive Transactions

Archive Transactions POST method

Description

Use this endpoint to archive the specified transactions.

Note: This action is only available for CPQ administrators with superuser access.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_archive_transactions

Endpoint Parameters

None

Request Body Parameters

 

selectionCriteria

Captures the query definition for resource requests, specifically for collection-based process actions.

This operation supports the following optional parameters: fields, orderBy, and q.
Refer to Request Body Objects for additional information

HTTP Method

POST

Success Response

204 No Content

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_archive_transactions


ClosedRequest Sample

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


ClosedAuto-fill Account Information

Auto-fill Account Information POST method

Description

Use this endpoint to automatically fill related customer data using the specified Customer ID field.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction/{id}/actions/_auto_fill_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

billToAddressNumber

The number for the bill to address information.

shipToAddressNumber

The number for the ship to address information.

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selectionMode, selections, and skipIntegration.
Refer to Request Body Objects for additional information

Response Body Parameters

JSON data containing a link to the transaction with updated bill to and shop to addresses.

ClosedURI Endpoint Sample

https://sitename.oracl.come/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_auto_fill_action


ClosedRequest Body Sample

{ "billToAddressNumber": 2, "shipToAddressNumber": 3, "documents": { "quoteDescription": "updated quote description 5", "_customer_id": "account95", "_bill_to_address": "30777 Park Avenue", "lineItem": { "items": [{ "_price_quantity": 304, "_document_number": 3 } ] } } }


ClosedResponse Body Sample

{ "documents": { "quoteDescription": "updated quote description 5", "_customer_id": "account95", "_bill_to_address": "307 Park Avenue", "_ship_to_address": "207 Second Street", "lineItem": { "items": [{ "_price_quantity": 304, "_document_number": 3 } ] } } }


ClosedBack from Transaction

Back from Transaction POST method

Description

Use this endpoint to take the user back to the destination specified on the Destination tab for the Back action. If the action is associated with the Unlock operation, then the current transaction will also be unlocked.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/back

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the optional cacheInstanceId and revisionId parameters.

Refer to Request Body Objects for additional information

Response Body Parameters

The response contains the Destination URL

ClosedURI Endpoint Sample


ClosedBack from Transaction Line

Back from Transaction LinePOST method

Description

Use this endpoint to return the user to the transaction page from the line items details page.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_back

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, errorCriteria, and revisionId.

Refer to Request Body Objects for additional information

Success Response

The response contains the Destination URL.

ClosedURI Endpoint Sample


ClosedCalculate Transaction Line Item Price

Calculate Transaction Line Item PricePOST method

Description

Use this endpoint to apply pricing changes made on the line to the Price Attributes.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_calculate_price_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, and revisionId.

Refer to Request Body Objects for additional information

Response Body Parameters

The JSON Transaction Line data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/ transactionLine/3/actions/_calculate_price_action


ClosedRequest Body Sample

Notes:

  • The following attributes are not allowed: _price_list_price_each, _price_subtotal, _price_net_price, and _price_discount_comment
  • The "Override Price" attribute should be set to "Yes" to allow overrides when invoking the REST to perform recalculation.
  • If "Override Price" is set to "No" and there are new price values, the values will be reset to the original values and returned via the REST API. There will be no warning or error message when new values are provided for recalculation.
  • The recalculated values returned via the REST API are not saved in the database until a modify type action is invoked.

ClosedChange Transaction Currency

Change Transaction Currency POST method

Description

Use this endpoint to change the currency of an existing transaction. This feature is not currently supported in the Base Reference Application but can be enabled via customization.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/actions/_change_currency

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

currencyCode

The requested currency code, this item is required

This endpoint supports the following optional parameters: cacheInstanceId, criteria, documents, revisionId, selectionMode, selections, and skipIntegration.
Refer to Request Body Objects for additional information

Success Response

JSON data containing the transaction with the updated currency

The currency can only be changed for transactions without any transaction lines.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_change_currency


ClosedRequest Body Sample


ClosedCopy to Favorites

Copy to Favorites POST method

Description

Use this endpoint to copy the specified line items from the transaction to the Favorites List.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/copyToFavorites

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Parameters

selections

Required, use to specify the transaction lines.

favoriteData

Folder where the favorites will reside. An empty or -1 value indicates default folder.

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, and skipIntegration.

Refer to Request Body Objects for additional information

Response Parameters

createdFavoriteIds

List of created favorite root Ids.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533 /actions/copyToFavorites


ClosedRequest Sample

{ "selections": [lineItem/2, lineItem/4], "documents": { ... } }


ClosedCopy Transaction

Copy Transaction POST method

Description

Use this endpoint to copy the specified transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_copy_transaction

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, and revisionId.

Refer to Request Body Objects for additional information

Success Response

The JSON data for the duplicated transaction, or a subset of transaction items, depending on the input request

ClosedURI Endpoint Sample


ClosedCopy Transaction Lines

Copy Transaction Lines POST method

Description

Use this endpoint to duplicate specified transaction lines within the current transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/copyLineItems_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

numberOfCopies

Required, an array to specify the number of copies for each line listed in "selections"

selections

Required, use to specify the transaction line(s)

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, selectionMode, and revisionId.

Refer to Request Body Objects for additional information

Success Response

The JSON data for the parent transaction including the copied transaction lines, or a subset of transaction items, depending on the input request transaction

This action is used to duplicate transaction lines. Request body "selections" and "numberOfCopies" parameters are used to provide specifications.

The "numberOfCopies" parameter is an array to specify the number of copies for each line listed in the "selections" parameter.

  • The number of copies for each line is specified in an array in the same sequence as the "selections" array.
  • The default value is '1', if the number of copies value is not provided.
  • The "numberOfCopies" array size cannot be greater than the "selections" array size.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18097326/actions/copyLineItems_t


ClosedRequest Body Samples

  1. Copy transaction lines 5 and 3, copy each item once
  2. { "numberOfCopies": [1,1], "selections": ["transactionLine/5", "transactionLine/3"] }

  1. Modify, and then copy transaction lines 5 and 7, copy each item once
  2. { "documents": {"transactionDescription": "Mar31", "transactionLine": { "items": [ {"_document_number": "5", "_price_quantity": "45"}, {"_document_number": "7", "_price_quantity": "45"} ] } }, "numberOfCopies": [1,1], "selections": ["transactionLine/5", "transactionLine/7"] }


ClosedCreate Transaction

Create TransactionPOST method

Description

Use this endpoint to create a new transaction without any line items.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_new_transaction

Endpoint Parameters

None

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, documents, partnerInfo, and revisionId.

Refer to Request Body Objects for additional information

Response Body

The JSON data of the new Transaction

ClosedURI Endpoint Sample


ClosedCreate Transaction (with Parts)

Create Transaction (with Parts)POST method

Description

Use this endpoint to create a new transaction with part line items as specified in the request payload.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction

Endpoint Parameters

TNone

HTTP Method(s)

POST

Response Body

_currency_pref

Currency preference

items

The transaction lines to be included in the new transaction.

Response Body

The JSON transaction data of the new transaction

Notes

Notes:

  • When creating a transaction through a REST call, only a line item’s part number, quantity, and Price Book can be given values. The line items’ Price Book only needs to be declared when declaring the first line item in the payload. Other updateable sub-document attributes can be given values through a subsequent POST call by invoking a Commerce action.
  • Similar to behavior in the Oracle CPQ user interface, transactions created through REST calls will exist in a temporary state until they are updated. In order to view a REST-call-created transaction in the Transaction manager, a subsequent UPDATE call must be made to update the transaction.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction


ClosedRequest Sample

{ "lineItem": { "items": [{ "_part_number": "part10", "_price_quantity": "1", "_price_book_var_name": "_default_price_book" }, { "_part_number": "part1", "_price_quantity": "5", } ] }


ClosedCreate Transaction Lines

Create Transaction LinesPOST method

Description

Use this endpoint to create transaction line items for the part items that are listed in the request body.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/transactionLine

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

_part_number

The Part Number to be added to this transaction.

_price_book_var_name

Variable Name of the Price Book used to get the price for this line item.

_price_quantity

The quantity of parts to be added to this transaction.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample


ClosedCreate Transaction Version

Create Transaction VersionPOST method

Description

Use this endpoint to create a new version of the specified transaction and displays this new version for editing.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/versionTransaction_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, documents, and revisionId.

Refer to Request Body Objects for additional information

Success Response

The JSON data of the new Transaction

ClosedURI Endpoint Sample


ClosedDelete Transaction

Delete Transaction POST method

Description

Use this endpoint to soft delete a transaction by setting the transaction status and the document step to 'Deleted', where it can no longer be edited and is only visible to a technical administrator.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/deleteTransaction_t

 Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selectionMode, selections, skipIntegration, and skipRules.

Refer to Request Body Objects for additional information

Success Response

The JSON data for the deleted transaction.

ClosedURI Endpoint Sample


ClosedDelete Transaction Line

Delete Transaction LineDELETE method

Description

Use this endpoint to delete the specified transaction line.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

DELETE

Request Body Parameters

None

Response Body Parameters

None

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/transactionLine/3


ClosedDelete Transaction Lines

Delete Transaction Lines POST method

Description

Use this endpoint to delete the specified transaction line(s) from a transaction.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/actions/_remove_transactionLine

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

Request Body Parameters

 

selections

Required, this parameter is used for transaction level actions that support line selection. Selection items are an array of transactionLine/{documentNumber} combinations.

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selectionMode, skipIntegration, and skipRules.
Refer to Request Body Objects for additional information

HTTP Method

POST

Response Body Parameters

The JSON Transaction data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_remove_transactionLine


ClosedRequest Sample


ClosedDrop Cache (Commerce)

Drop Cache (Commerce)POST method

Description

Use this endpoint to eliminate the cache created through REST web services. Drop Cache can improve site performance by removing cached objects that would otherwise remain in memory for the duration of the timeout specified in administration.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/actions/_dropCache

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

cacheInstanceId

The cache instance ID

Response Body Parameters

The requested cache instance is cleared.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18330547/actions/_dropCache


ClosedRequest Sample


ClosedeSignature - Cancel Request

eSignature - Cancel RequestPOST method

Description

Use this endpoint to cancel a pending eSignature request.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction/{id}/actions/_action_esig_cancel

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

esigAttrSetVarName

Variable name of the eSignature attribute set

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body Parameters

The JSON data for the requested transaction, or a subset of transaction items, depending on the input request.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/20487343/actions/_action_esig_cancel


ClosedSample Request Body

{ "esigAttrSetVarName": "eSignatureAttributeSet1_esig_set", "documents": { "_eSignatureAttributeSet1_esig_recipients": "John Doe<john.doe@oracle.com>;", "quoteDescription": "abcquote", "_eSignatureAttributeSet1_esig_file_attachment": { "fileID": "20600546", "fileType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "isFileSaved": false, "fileName": "DocuSignTestDocument2Signers.docx" }, "criteria": { "state": true, "childDefs": [{ "name": "lineItem", "queryDef": { "state": true } } ] } } }


ClosedSample Response Body

{ "documents": { "_eSignatureAttributeSet1_esig_recipients": "John Doe<john.doe@oracle.com>;", "_eSignatureAttributeSet1_esig_file_attachment": { "fileID": "20600546", "fileType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "isFileSaved": false, "fileName": "DocuSignTestDocument2Signers.docx" }, "_eSignatureAttributeSet1_esig_envelope_id": null, "_eSignatureAttributeSet1_esig_date_modified": "2018-03-11T20:28:44Z", "_eSignatureAttributeSet1_esig_status": { "value": "Cancelled", "displayValue": "Cancelled" }, "sub": {}, "links": [{ "rel": "self", "href": "../rest/v16/commerceDocumentsTestMain/20905405" } ], "_state": {} }, "warnings": {} }


ClosedeSignature - Request Details

eSignature - Request Details POST method

Description

Use this endpoint to connect and view the eSignature related details from an integrated site, such as DocuSign.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_action_esig_details

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

esigAttrSetVarName

Variable name of the eSignature attribute set

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, and revisionId, selections, selectionMode, and skipIntegration.

Response Body Parameters

The JSON data for the requested transaction, or a subset of transaction items, depending on the input request.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_action_esig_details


ClosedSample Request Body

{ "esigAttrSetVarName": "eSignatureAttributeSet1_esig_set", "documents": { "_eSignatureAttributeSet1_esig_recipients": "John Doe<john.doe@oracle.com>;", "quoteDescription": "abcquote", "_eSignatureAttributeSet1_esig_file_attachment": { "fileID": "20600546", "fileType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "isFileSaved": false, "fileName": "DocuSignTestDocument2Signers.docx" }, "criteria": { "state": true, "childDefs": [{ "name": "lineItem", "queryDef": { "state": true } } ] } } }


ClosedSample Response Body

{ ... "destinationNewWindowURL": "https://demo.docusign.net/Member/StartInSession.aspx?StartConsole=1&t=4afcbf24-2808-4e61-8107-496f7bd9410b&DocuEnvelope=95f8dd4d-af4c-47b4-87ec-d0c523989385" ... }


ClosedeSignature - Send Request

eSignature - Send Request POST method

Description

Use this endpoint to send eSignature documents to recipients.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_action_esig_send

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

esigAttrSetVarName

Variable name of the eSignature attribute set

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body Parameters

The JSON data for the requested transaction, or a subset of transaction items, depending on the input request.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/20563735/actions/_action_esig_send


ClosedSample Request Body

{ "esigAttrSetVarName": "eSignatureAttributeSet1_esig_set", "documents": { "_eSignatureAttributeSet1_esig_recipients": "John Doe<john.doe@oracle.com>;", "quoteDescription": "abcquote", "_eSignatureAttributeSet1_esig_file_attachment": { "fileID": "20600546", "fileType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "isFileSaved": false, "fileName": "DocuSignTestDocument2Signers.docx" }, "criteria": { "state": true, "childDefs": [{ "name": "lineItem", "queryDef": { "state": true } } ] } } }


ClosedSample Response Body

{ "documents": { "_eSignatureAttributeSet1_esig_recipients": "John Doe<john.doe@oracle.com>;", "_eSignatureAttributeSet1_esig_file_attachment": { "fileID": "20600546", "fileType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "isFileSaved": false, "fileName": "DocuSignTestDocument2Signers.docx" }, "_eSignatureAttributeSet1_esig_envelope_id": "5d28d6ca-0f7d-41d4-a1f1-fa12184a7b07", "_eSignatureAttributeSet1_esig_date_modified": "2018-03-11T20:16:44Z", "_eSignatureAttributeSet1_esig_status": { "value": "Pending", "displayValue": "Pending" }, "quoteDescription": "abcquote", "sub": {}, "links": [{ "rel": "self", "href": "../rest/v16/commerceDocumentsTestMain/20905405" } ], "_state": {} }, "warnings": {} }


ClosedExport Transaction Attachment

Export Transaction Attachment POST method

Description

Use this endpoint to export an Oracle CPQ generated document.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction/{id}/actions/exportAttachment

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body Parameters

The JSON Transaction Data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/actions/exportAttachment


ClosedRequest Body Sample


ClosedExport Transactions

Export Transactions POST method

Description

Use this endpoint to export the specified data column values for all the specified transactions in a zipped excel file.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_export_transactions

Endpoint Parameters

None

Request Body Parameters

 

selectionCriteria

Captures the query definition for resource requests, specifically for collection-based process actions.

This operation supports the following optional parameters: fields, orderBy, and q.
Refer to Request Body Objects for additional information

HTTP Method

POST

Response Body Parameters

The file URL to retrieve the exported transactions zip file.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_export_transactions


ClosedRequest Sample

{ "selectionCriteria": { "search": "_my_approval_search", "orderby": ["_id:desc", "searchViewName:asc"], "fields": ["_id", "_lock_status", "bs_id", "processManagerFloat"] } }


ClosedResponse Sample


ClosedGenerate Proposal

Generate Proposal POST method

Description

Use this endpoint to generate a file of the proposal document by merging the associated printer-friendly XSL document with the current transaction details.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/generateProposal

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body Parameters

 

 

 

 

 

documents

JSON data for the transaction

xslView

Printer friendly proposals or history outputs generated from predefined XSL templates

fileAttachmentAttribute

The file attachment attribute used of confirmation

generatedProposalAttachmentForMerge

The default selected attachment for an email or print action

cacheInstanceId

The unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db.

availableAttachmentsfoMerge

A list of attachments available to merge for an email or print action

ClosedURI Endpoint Sample


ClosedGet All Available Rate Plans

Get All Available Rate PlansGET Method

Description

Use this endpoint to retrieve a list of Available Rate Plans for the specified transaction line.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/_availableRatePlanSet

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

Query Parameters

This endpoint supports the following optional parameters: excludeFieldTypes, fields, limit, offset, orderby, q, and totalResults.
Refer to Manage Collections for additional information.

HTTP Method

GET

Request Body Parameters

None

Success Response

The response contains a collection of the available rate plans for the specified transaction line.

ClosedGet All Transaction Line Charges

Get All Transaction Line ChargesGET Method

Description

Use this endpoint to retrieve all charges for the specified transaction line.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/_chargeSet

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

Query Parameters

This endpoint supports the following optional parameters: excludeFieldTypes, expand, fields, limit, offset, orderby, q, and totalResults.

Refer to Manage Collections for additional information

HTTP Method

GET

Request Body Parameters

None

Success Response

The response contains a collection of charge sets for the specified transaction line.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/38926297/transactionLine/2/_chargeSet


ClosedSample Response Body


ClosedGet All Transaction Lines

Get All Transaction LinesGET Method

Description

Use this endpoint to retrieve all transaction lines for the specified transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

Query Parameters

This endpoint supports the following optional parameters:excludeFieldTypes, expand, fields, limit, offset, orderby, q, and totalResults.

Refer to Manage Collections for additional information

HTTP Method

GET

Request Body Parameters

None

Success Response

The JSON data for the requested transaction lines.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/36365444/transactionLine


ClosedGet All Transactions

Get All Transactions GET Method

Description

This operation retrieves all transactions.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction

Endpoint Parameters

None

Query Parameters

This endpoint supports the following optional parameters: excludeFieldTypes, expand, fields, limit, offset, orderby, q, and totalResults.

Notes:

  • When using the "q" parameter, Transactions attributes must be defined as Data Columns.

    Additionally, query any strings cannot exceed the Data Column 100 character limit.

  • Refer to Manage Collections for additional information

HTTP Method

GET

Request Body Parameters

None

Success Response

The JSON data for the requested transactions.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction


ClosedGet Available Rate Plan

Get Available Rate PlanGET Method

Description

Use this endpoint to retrieve the specified rate plan.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/_availableRatePlanSet/{_row_number}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

_row_number

Unique row number to be used to specify the rate plan.
Query Parameters

This endpoint supports the optional excludeFieldTypes parameter, refer to Manage Collections for additional information.

HTTP Method

GET

Request Body Parameters

None

Success Response

The response contains the available rate plan integration Id, available rate plan name, available rate plan number, and transaction currency preference.


ClosedGet History

Get History POST method

Description

Use this endpoint to retrieve historical changes for a transaction using criteria defined in the request body.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/{displayHistoryActionVarName}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

displayHistoryActionVarName

The variable name of the Display History type action.

HTTP Method

POST

Request Body Parameters

criteria

Used to specify query parameters for the history response

Refer to Request Body Criteria, Resources, and Sample for more information.

This operation supports the following optional parameters: cacheInstanceId and revisionId.
Refer to Request Body Objects for additional information.

Response Body Parameters

JSON data containing the transaction history

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18097326/actions/getHistory


ClosedRequest Body Resources, Examples, and Sample

  • historyHeader - used to specify fields for the history header in the response. Available fields: dateFormat and _history_header_key
  • history - used to specify criteria for the history response. Available fields: actionName, actionVarName, changeDate, userLogin, userFirstName, userLastName, userCompany, stepVarName, saved, resetReason, performComment, reasonVarName
  • historyItem - used to specify attributes for history items included in the history response. Available fields: attrName, attrVarName, docNumber, oldValue, newValue

  • history

    "q": "{\"userLogin\":{\"$eq\" : \"superuser\"}}"

    "q": "{ $or: [ { \"userLogin\": { $eq: \"superuser\" }}, { \"actionVarName\": { $eq: \"_update_line_items\" }} ] }"

    "q": "{\"actionVarName\":{\"$exists\" : true}}"

    "q":"{\"changeDate\":{\"$lt\":\"2020-06-30\"}}"

  • historyItem

    "q": "{\"attrVarName\":{\"$eq\" : \"autoUpdateHidingConditionSubDoc\"}}"

    "q": "{\"attrName\":{\"$eq\" : \"Price Book Custom Field Text\"}}"

{ "cacheInstanceId": "-1", "criteria": { "childDefs": [{ "name": "historyHeader", "queryDef": { "fields": ["dateFormat", "_history_header_key"], "childDefs": [{ "name": "history", "queryDef": { "q": "{\"userLogin\":{\"$eq\" : \"superuser\"}}", "limit": 2, "offset": 0, "fields": ["_history_key", "actionName"], "childDefs": [{ "name": "historyItem", "queryDef": { "limit": 2, "offset": 0, "fields": ["attrName", "attrVarName", "docNumber", "oldValue", "newValue", "_history_item_key"] } } ] } } ] } } ] } }


ClosedResponse Body Sample

{ "revisionId": "6,1", "documents": { "_id": 3023033799, "historyHeader": { "hasMore": false, "items": [{ "dateFormat": "MM/dd/yyyy h:mm a", "_history_header_key": 1, "history": { "offset": 0, "limit": 2, "count": 1, "hasMore": false, "items": [{ "_history_key": 3023040162, "actionName": "Save", "actionVarName": "saveWithAdvancedValidation", "changeDate": "06/13/2023 6:30 p", "userLogin": "superuser", "userFirstName": "Super", "userLastName": "User", "userCompany": "cpqqa212", "stepVarName": "start_step", "saved": null, "resetReason": null, "performComment": "-N/A-", "reasonVarName": null, "historyItem": { "offset": 0, "limit": 2, "count": 2, "hasMore": true, "items": [{ "attrVarName": "_price_net_price", "newValue": "3", "_history_item_key": "_price_net_price2", "docNumber": 2, "oldValue": "1", "attrName": "Net Price" }, { "attrVarName": "_transaction_total", "newValue": "2269", "_history_item_key": "_transaction_total1", "docNumber": 1, "oldValue": "2267", "attrName": "Transaction Total (Net)" } ] } } ] } } ] } } }


ClosedGet Transaction

Get Transaction GET Method

Description

Use this endpoint to retrieve the specified transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

Query Parameters

This endpoint supports optional excludeFieldTypes and expand parameters.

HTTP Method

GET

Request Body Parameters

None

Success Response

The JSON data for the requested transaction.

Attributes returned are based on the user's access. If an attribute is defined to be not accessible by the user within Commerce (for example, it is marked as Hide in the Document Views tab of the attribute), the JSON response will not include the attribute-value pair for that attribute.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18097326


Text file iconSample Response Body


ClosedGet Transaction Line

Get Transaction LineGET Method

Description

Use this endpoint to retrieve the specified transaction line.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

Query Parameters

This endpoint supports optional excludeFieldTypes and expand parameters.

HTTP Method

GET

Request Body Parameters

None

Success Response

The JSON data for the requested transaction line.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/36365444/transactionLine/2


Text file iconSample Response Body


ClosedGet Transaction Line Charge

Get Transaction Line ChargeGET Method

Description

Use this endpoint to retrieve the specified charge for a transaction line.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/_chargeSet/{_row_number}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

_row_number

Unique row number to be used as a charge identifier in an charge set.
Query Parameters

This endpoint supports the optional excludeFieldTypes parameter, refer to Manage Collections for additional information.

HTTP Method

GET

Request Body Parameters

None

Success Response

The JSON data for the requested transaction line charge set.


ClosedGroup Transactions

Group Transactions POST method

Description

Use this endpoint to return a list of transactions grouped by the column specified in the request body.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_aggregate

Endpoint Parameters

None

HTTP Method

POST

Request Body Parameters

aggregate

Captures information to aggregate transactions.

criteria

Captures the query definition for the current resource request.

Response Body Parameters

JSON data containing the grouped transactions

ClosedURI Endpoint Sample

 

http://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions_aggregate


ClosedSample Request Body

{ "aggregate": { "attr": "processManagerSSM", "limit": 20 }, "criteria": { "fields": ["_customer_id", "_id", "_date_modified"], "limit": 100, "totalResults": true, "q": "{'_customer_id':{$ne:'account112'}}", "orderby": ["_date_modified"] } }


ClosedSample Response Body

{ "groups": [{ "groupName": "", "totalCount": 808, "nextlink": { "rel": "next", "href": "http://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction?offset=100&limit=100&q={\"_customer_id\":{\"$ne\":\"account112\"},\"processManagerSSM\":{\"$exists\":false}}&fields=_customer_id,_id&totalResults=true" } }, { "groupName": "value1", "totalCount": 3, "nextlink": { "rel": "self", "href": "http://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction?offset=0&limit=100&q={\"_customer_id\":{\"$ne\":\"account112\"},\"processManagerSSM\":\"value1\"}&fields=_customer_id,_id&totalResults=true" } }, { "groupName": "value2", "totalCount": 2, "nextlink": { "rel": "self", "href": "http://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction?offset=0&limit=100&q={\"_customer_id\":{\"$ne\":\"account112\"},\"processManagerSSM\":\"value2\"}&fields=_customer_id,_id&totalResults=true" } } ], "primaryResults": { "totalResults": 808, "offset": 0, "limit": 100, "count": 100, "hasMore": true, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction" } ], "items": [{ "_customer_id": "SpecialAccount6", "_id": 15555314, "links": [{ ... ], }, { "_customer_id": "SpecialAccount6", "_id": 15556582, "links": [{ ... ] }, ... ] } }


ClosedInteract - Transaction

Interact - TransactionPOST method

Description

Use this endpoint to modify transaction attribute values, and optionally triggers auto-update rules without committing or retrieving the latest data from the database. Since this action does not save the transaction to the CPQ database, it does not affect how other users see the transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_interact

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

 

deleteRows

Used to select specific items for deletion.

focus

The attribute that the user is currently editing. The format matches that of the triggerAttrVarName parameter. If the value of the focus param is empty string, the user will be considered to be focused on no attribute

refreshCache

Allows users to invoke the interact service without prior initiation of a cache instance on the server. Additionally, administrators can pass a new parameter, "refreshCache" = true, to reload the current cache and discard the changes.

triggerAttrVarName

The attribute which trigger the interact action. When the trigger attribute is in current document, it is the variable name of the attribute.

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, and revisionId.
Refer to Request Body Objects for additional information.

Response Body Parameters

The requested cached transaction is returned

Modify Item in Cache

ClosedURI Endpoint Sample

Interact with an item within transaction 18330547

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18330547/actions/_interact


ClosedRequest Sample

Retrieve a cache instance, modify the "_price_quantity" for transaction line 2, and save the updates to cache using "transactionLine/2/_price_quantity" as the triggering attribute

{ "cacheInstanceId": "E9JuyC9QCgTDS9edghTNxRGOVUm34EMR7RJt9alFbkGTN0X5byTjHGRu1CxrSl1p", "triggerAttrVarName": "transactionLine/2/_price_quantity", "documents": { "transactionLine": { "items": [{"_price_quantity": "100", "_document_number": "2"}] } } }


Re-Sequence Line Items via Interact

This action re-sequences Transaction Lines via the interact action.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/actions/_interact


ClosedRequest Body Sample


ClosedLock Transaction

Lock Transaction POST method

Description

Use this endpoint to lock a single transaction to prevent other users from editing it.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/lockTransaction

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, and revisionId.
Refer to Request Body Objects for additional information.

Success Response

The JSON data for the requested transaction

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18097326/actions/lockTransaction


ClosedMy Approval Search

My Approval Search POST method

Description

This endpoint retrieves a user's pending approvals waiting in a queue when there are quotes they need to approve.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction/actions/_my_approval_search

Endpoint Parameters

None

Request Body Parameters

 

criteria

Captures the query definition for resource requests.

Refer to Criteria Object for additional information.

HTTP Method

POST

Response Body Parameters

The file URL to retrieve the exported transactions zip file.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_my_approval_search


ClosedRequest Sample

{ "criteria": { "fields": [ "projectName", "_id", "_lock_status", "_currency_pref", "mainMathInput_Float1" ], "orderby": [ "_currency_pref:DESC", "projectName:ASC" ], "limit": 10, "offset": 20 } }


ClosedResponse Sample


ClosedOpen Transaction

Open Transaction POST method

Description

Use this endpoint to open a previously saved transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_open_transaction

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters This operation supports the following optional parameters: cacheInstanceId, criteria, errorCriteria, revisionId, and skipIntegration.
Refer to Request Body Objects for additional information.

Success Response

The JSON data for the requested transaction, or a subset of transaction items, depending on the input request

ClosedURI Endpoint Sample


ClosedOpen Transaction Line

Open Transaction LinePOST method

Description

Use this endpoint to display the Line Items Details for a specified transaction line.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_open_transactionLine

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

selections

Required, use to specify the transaction line to open. This action only accepts a single line selection.

selectionNavigation

Use this parameter to navigate between line item detail pages. Supported values are: first, prev, next, and last.

When query parameters are provided, the navigation flow is within the filtered and/or sorted line items.

This operation supports the following optional parameters: cacheInstanceId, criteria, documents, errorCriteria, revisionId, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body Parameters

The JSON data for the parent transaction, or a subset of transaction items, depending on the input request

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18094477/actions/_open_transactionLine


ClosedRequest Body Sample

{ "selections": ["transactionLine/3"] }


ClosedRequest Body Sample with Selection Navigation


ClosedOrders - Cancel Order

Orders - Cancel Order POST method

Description

Use this endpoint to set the transaction status and the commerce step for this transaction to 'Canceled'.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/order_cancel

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.
Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample


ClosedOrders - Change Order

Orders - Change Order POST method

Description

Use this endpoint to initiate a Change Order that reflects updates to a Sales Order previously placed with an external fulfillment system.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/order_change

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.
Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample


ClosedOrders - Create Order

Orders - Create Order POST method

Description

Use this endpoint to create a sales order for submission to an external fulfillment system.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/order_start

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.
Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample


ClosedOrders - Place Alternate Order

Orders - Place Alternate Order POST method

Description

Use this endpoint to transition the transaction to the 'Alternate Version Ordered' step. This action is used to record that this version is no longer active.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/order_alternate

 

MainDocVarName

The variable name of the main document, note the first letter must be capitalized.

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.
Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample


ClosedOrders - Reject Order

Orders - Reject Order POST method

Description

Use this endpoint to transition the Commerce Step for this transaction to 'Rejected by Customer'.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/order_reject

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.
Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample


ClosedPipeline Viewer - Transaction

Pipeline Viewer - TransactionPOST method

Description

Use this endpoint to display the rules that are in effect for the current Commerce process. This operation returns both transaction and transaction line items.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_pipelineViewer

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

cacheInstanceId

Optional, only valid cache instance ids are supported The "-1" value is not supported

Response Body Parameters

Pipeline Viewer rules and impacted main document and sub-document attributes and actions.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/actions/_pipelineViewer


ClosedRequest Body Sample

{ "cacheInstanceId": "bDYxrCAnUwiVpYXUGDoT1GilCF0CFMPEGTcuKCPER3QFuxHJf33AYtAU1atZItpt" }


ClosedResponse Body Sample

{ "pipelineViewerRules": [{ "name": "Hide Level 2 Reason Approver", "type": "Hiding Rule", "components": { "mainDoc": { "attributes": [{ "name": "Hiding Attribute 1", "variableName": "hidingAttribute1" }, { ... } ], "actions": [{ "name": "Hiding Action 1", "variableName": "hidingAction1" }, { ... } ] }, "subDoc": { "attributes": [{ "name": "Hiding Attribute 10", "variableName": "hidingAttribute10" }, { ... } ], "actions": [{ "name": "Hiding Action 10", "variableName": "hidingAction10" }, { ... } ] } } }, { "name": "Hide Level 3 Reason Approver", "type": "Hiding Rule", "components": { "mainDoc": { ... }, "subDoc": { ... } } } ] }


ClosedPipeline Viewer - Transaction Line

Pipeline Viewer - Transaction LinePOST method

Description

Use this endpoint to display rules that are in effect for the current Commerce process. This action returns only transaction line items.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_pipelineViewer

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

cacheInstanceId

Optional, only valid cache instance ids are supported. The "-1" value is not supported.

Response Body Parameters

Pipeline Viewer rules and impacted sub-document attributes and actions

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/transactionLine/2actions/_pipelineViewer


ClosedRequest Body Sample

{ "cacheInstanceId": "bDYxrCAnUwiVpYXUGDoT1GilCF0CFMPEGTcuKCPER3QFuxHJf33AYtAU1atZItpt" }


ClosedResponse Body Sample

{ "pipelineViewerRules": [{ "name": "Hiding: Unhide Rules- Hiding Panel Subdoc", "type": "Hiding Rule", "components": { "mainDoc": { "attributes": [], "actions": [] }, "subDoc": { "attributes": [ "Hiding Tab 3 Attribute 1 Subdoc [hidingTab3Attribute1Subdoc]", "Hiding Tab 1 Attribute 2 Subdoc [hidingTab1Attribute2Subdoc]", "Hiding Tab 2 Attribute 2 Subdoc [hidingTab2Attribute2Subdoc]", "Hiding Tab 1 Attribute 1 Subdoc [hidingTab1Attribute1Subdoc]" ], "actions": [] } } }, { "name": "Composite Sub Hiding", "type": "Hiding Rule", "components": { "mainDoc": { ... }, "subDoc": { ... } } }, { "name": "Constrain Commerce BOM Attribute Mapping Rules - Float to Float", "type": "Constraint Rule", "components": { "mainDoc": { ... }, "subDoc": { ... } } } ] }


ClosedPrint Transaction Document

In the Oracle CPQ application, the print feature is implemented using a two-step process. The first step modifies the transaction for print. The second step prints the transaction, using the data collected during modification.

Modify a Transaction for PrintPOST method

Description

Use this endpoint to modify and save a transaction for print.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/{printActionVarName}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

printActionVarName

The variable name of the print preparation action

HTTP Method

POST

Request Body Parameters

documents and cacheInstanceId are optional
Refer to Request Body Objects for additional information

Success Response

Returns the transaction, XSL views, available attachments for merge, generated proposal attachment for merge, and the cache instance ID (if requested)

Response Body Parameters

xslView

Printer friendly proposals or history outputs generated from predefined XSL templates

availableAttachmentsForMerge

The list of attachments which can be merged with the print document

generatedProposalAttachmentForMerge

The Attachment Selected by Default. The default ID value for the transaction is -2.

fileAttachmentAttribute

The file to be printed

cacheInstanceId

The cache instance ID, if requested

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/transactionPrintAction


ClosedRequest Body Sample

Change language to German, update the price quantity for documents 2 and 3, and load the complete transaction to the user's cache.

"documents": { "languageForEmailAndPrint": "de", "transactionLine": { "items": [{ "_price_quantity": 33, "_document_number": 3 }, { "_price_quantity": 22, "_document_number": 2 } ] } }, "cacheInstanceId": "-1" }


ClosedResponse Body Sample

{ "documents": { "items": [{ "languageForEmailAndPrint": "de", "transactionLine": { "items": [{ "_price_quantity": 33, "_document_number": 3 }, { "_price_quantity": 22, "_document_number": 2 } ] } } ] }, "xslView": "XSL for Multi-Languages for Email and Print(Printer Friendly/History)", "generatedProposalAttachmentForMerge": [{ "id": "-2", "name": "GENERATED PROPOSAL" } ], "availableAttachmentsForMerge": [{ "id": "18763342", "name": "Merge1.pdf (Quote - Attach for File Merge)" }, { "id": "18763344", "name": "Merge3.pdf (Quote - fa_includeFromPDFMerge)" }, { "id": "18763576", "name": "Merge1.pdf (Line Item{1} - File Attachment Sub Doc 1)" }, { "id": "18763577", "name": "Merge2.pdf (Line Item{1} - File Attachment Sub Doc 2)" } ], "fileAttachmentAttribute": "File Attachment", "cacheInstanceId": "sKtuHHB4bc2LkKSjmJEK6Gl2xaRXI49bOWCWjuwOPMDcqRYyhEn355YbKRQ3fbcs" }


Print Transaction DocumentPOST method

Description

Use this endpoint to print the generated transaction document.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_print_document

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

actionVariableName

The print preparation action variable name

attachmentsIdsForMerge

The attachment IDs to merge

cacheInstanceId

The cache instance ID

saveToQuote

Indicates if the print document is saved to the transaction, valid values are {true, false}

Note: If this value conflicts with the setting in the print action (e.g. the "Save Document Upon Printing - Desktop", an error is returned.

updateQuoteWithAttachment

Indicates if quote has to be updated with print document attachment file, valid values are {true, false}

Success Response

Application/PDF format summary message for printing transaction

The response is in application/PDF format by default. To receive the response in JSON format, the "Accept: application/json" header is required.

Response Body Parameters

fileContent

The Base64 encoded binary document value

fileContentType

The file content type

fileTitle

The file name used when saving to the transaction file attachment attribute, or when downloading the file

fileAttachmentAttribute

Used for confirmation

cacheInstanceId

The cache instance ID

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_print_document


ClosedRequest Body Sample

{ "actionVariableName": "transactionPrintAction", "saveToQuote": "true", "attachmentIdsForMerge": ["-2", "18763342", "18763344", "18763576", "18763577"], "cacheInstanceId": "sKtuHHB4bc2LkKSjmJEK6Gl2xaRXI49bOWCWjuwOPMDcqRYyhEn355YbKRQ3fbcs" }


ClosedResponse Body Sample


ClosedPrint a Transaction Line Document

In the Oracle CPQ application, the print feature is implemented using a two-step process. The first step modifies the transaction line for print. The second step prints the transaction, using the data collected during modification.

Modify Transaction Line for PrintPOST method

Description

Use this endpoint to modify and save transaction lines for print.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/{printActionVarName}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

printActionVarName

The variable name of the print preparation action

HTTP Method

POST

Request Body Parameters

documents and cacheInstanceIdare optional
Refer to Request Body Objects for additional information

Success Response

Returns the transaction line, XSL views, available attachments for merge, generated proposal attachment for merge, and the cache instance ID (if requested)

Response Body Parameters

documents

The JSON transaction

xslView

Printer friendly proposals or history outputs generated from predefined XSL templates

availableAttachmentsForMerge

The list of attachments which can be merged with the print document

generatedProposalAttachmentForMerge

The Attachment Selected by Default. The default value for the transaction is -2.

fileAttachmentAttribute

The file to be printed

cacheInstanceId

The cache instance ID, if requested

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/transactionLine/3/actions/linePrintAction


ClosedRequest Body Sample

{ "documents": {"_price_quantity": 101}, "cacheInstanceId": "-1" }


ClosedResponse Body Sample

{ "documents": { "items": [{ "_price_quantity": 101, "_document_number": 2 } ] }, "xslView": "Print RTE (PDF)(Printer Friendly/History)", "generatedProposalAttachmentForMerge": [{ "id": "-2", "name": "GENERATED PROPOSAL" } ], "availableAttachmentsForMerge": [{ "id": "18763576", "name": "Merge1.pdf (Transaction Line - File Attachment Sub Doc 1)" }, { "id": "18763577", "name": "Merge2.pdf (Transaction Line - File Attachment Sub Doc 2)" } ], "fileAttachmentAttribute": "File Attachment", "cacheInstanceId": "8ddwWVX37LMIC9oO1zs0ZOFkmUp93ZFxL5v9s2hT2p1q6Zmph9u1LKjkRLIOasNo" }


Print a Transaction Line DocumentPOST method

Description

Use this endpoint to print the generated transaction line document.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_print_document

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

actionVariableName

The print preparation action variable name

saveToQuote

Indicates if the print document is saved to the transaction, valid values are {true, false}

If this value conflicts with the setting in the print action (e.g. the "Save Document Upon Printing - Desktop", an error is returned.

attachmentsIdsForMerge

The attachment IDs to merge

cacheInstanceId

The cache instance ID

Success Response

JSON with summary message for printing transaction

Response Body Parameters

fileContent

The Base64 encoded binary document value

fileContentType

The file content type

fileTitle

The file name used when saving to the transaction file attachment attribute, or when downloading the file

fileAttachmentAttribute

Used for confirmation

cacheInstanceId

The cache instance ID

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/transactionLine/2/actions/_print_document


ClosedRequest Body Sample

{ "documents": { "actionVariableName": "linePrintAction", "saveToQuote": "true", "attachmentIdsForMerge": ["-2", "18763576", "18763577"] }, "cacheInstanceId": "8ddwWVX37LMIC9oO1zs0ZOFkmUp93ZFxL5v9s2hT2p1q6Zmph9u1LKjkRLIOasNo" }


ClosedResponse Body Sample

{ "fileContent": "base64 encoded binary document value here", "fileContentType": "application/pdf", "fileTitle": "Document.pdf", "fileAttachmentAttribute": "File Attachment", "cacheInstanceId": "8ddwWVX37LMIC9oO1zs0ZOFkmUp93ZFxL5v9s2hT2p1q6Zmph9u1LKjkRLIOasNo" }


ClosedReconfigure Transaction

Reconfigure Transaction POST method

Description

Use this endpoint to edit a configuration after its been added to the transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_reconfigure_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

selections

Required, used to specify the transaction line to reconfigure

This action only accepts a single line selection

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body

The response contains the Destination URL, which can be used to launch the product catalog page to select and configure a product.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/actions/_reconfigure_action


ClosedRequest Body Sample

{ "documents": {"displayHistoryLanguage": "en"}, "selections": ["transactionLine/2"] }


ClosedResponse Body Sample


ClosedReconfigure Transaction - Inbound

Reconfigure Transaction - InboundPOST method

Description

Use this endpoint when saving the reconfiguration of a transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_reconfigure_inbound_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, selectionMode, selections, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body

The response contains the cache instance Id, revision Id, and warnings.


ClosedReconfigure Transaction Line

Reconfigure Transaction LinePOST method

Description

Use this endpoint to edit a configuration after its been added to the transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_reconfigure_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body

The response contains the "Destination URL", which can be used to launch the product catalog page to select and configure a product.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/transactionLine/2/actions/_reconfigure_action


ClosedRequest Body Sample

{
"documents": {"_price_quantity": "20"}
}


ClosedResponse Body Sample


ClosedReconfigure Transaction Line - Inbound

Reconfigure Transaction Line - Inbound POST method

Description

Use this endpoint when saving the reconfiguration of a transaction line.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_reconfigure_inbound_action

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

This operation supports the following optional parameters: cacheInstanceId, , revisionId, selections, selectionMode, and skipIntegration.
Refer to Request Body Objects for additional information.

Response Body

The response contains the cache instance Id, revision Id, and warnings.


ClosedRefresh Transaction

Refresh Transaction POST method

Description

Use this endpoint to refresh the current transaction with last saved data; the refresh action removes the existing values and replaces with the last saved data.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/refresh

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters This operation supports the following optional parameters: cacheInstanceId, criteria, and revisionId.
Refer to Request Body Objects for additional information.

Response Body

The JSON data for the requested transaction, or a subset of transaction items, depending on the input request.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDoucmentsTransaction2Quote/18097326/actions/refresh


ClosedSample Request Body

{ "cacheInstanceId":"-1" }


ClosedSave Transaction

Save Transaction POST method

Description

Use this endpoint to save the current state of the transaction (which may have been edited in the UI) to the CPQ database.

URI Endpoint

/rest/v16//commerceDocumentsOraclecpqoTransaction/{id}/actions/cleanSave_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.

Refer to Request Body Objects for additional information

Response Body

The JSON data for the saved transaction.

ClosedURI Endpoint Sample

/rest/v16/commerceDocumentsOraclecpqoTransaction/36365444/actions/cleanSave_t


ClosedSave Transaction Line

Save Transaction Line POST method

Description

Use this endpoint to save the current state of the line item to the database.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/save_l

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.

Refer to Request Body Objects for additional information

Response Body

The JSON data for the saved transaction.


ClosedSave Transaction Version

Save Transaction VersionPOST method

Description

Use this endpoint to invoke a special Save action used to save a transaction version.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/versionSave_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, skipIntegration, and skipRules.

Refer to Request Body Objects for additional information

Response Body

The JSON data for the saved transaction version.


ClosedSend Email - Transaction

In the Oracle CPQ application, the email feature is implemented using a two-step process. The first action modifies the transaction and returns the objects required to send an email. The second action generates the email attachment and sends the email.

Modify Transaction for Email POST method

Description

Use this endpoint to modify and save a transaction for email.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/{emailActionVarName}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

emailActionVarName

The variable name of the modify email action

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information

Success Response

Returns the transaction, email fields, XSL views, attachments, available attachments for merge, generated proposal attachment for merge, and the cache instance ID (if requested)

Response Body Parameters

ccEmail

cc email address(es)

fromName

The sender's name

fromEmail

The sender's email address

subject

The email subject line

bccEmail

bcc email address(es)

toEmail

The recipient's email address(es)

toName

The recipient's name

comments

Comments to be sent in the email body

xslView

Printer friendly proposals or history outputs generated from predefined XSL templates

attachments

Attachments to send with the email

availablAttachmentsForMerge

The list of attachments which can be merged with the proposal document

generatedProposalAttachmentForMerge

The proposal attachment selected by default. The default ID value for the transaction is -2.

cacheInstanceId

The cache instance ID, if requested

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/transactionEmailAction


ClosedRequest Body Sample

Change language to German, update the price quantity for documents 2 and 3, and load the complete transaction to the user's cache.

{ "documents": { "languageForEmailAndPrint": "de", "transactionLine": { "items": [ {"_price_quantity": 33, "_document_number": 3}, {"_price_quantity": 22, "_document_number": 2} ] } }, "cacheInstanceId": "-1" }


ClosedResponse Body Sample

{ "documents": { "items": [{ "languageForEmailAndPrint": "de", "transactionLine": { "items": [{ "_price_quantity": 33, "_document_number": 3 }, { "_price_quantity": 22, "_document_number": 2 } ] } } ] }, "ccEmail": null, "fromName": null, "fromEmail": "first.last@oracle.com", "subject": "testing subject", "bccEmail": null, "toEmail": "first.last@oracle.com", "toName": null, "comments": "testing comments", "xslView": "Print RTE (PDF)(Printer Friendly/History)", "generatedProposalAttachmentForMerge": [{ "id": "-2", "name": "GENERATED PROPOSAL" } ], "attachments": [{ "id": 18763342, "name": "Merge1.pdf" }, { "id": 18763343, "name": "Merge2.pdf" }, { "id": 18763344, "name": "Merge3.pdf" } ], "availableAttachmentsForMerge": [{ "id": "18763342", "name": "Merge1.pdf (Quote - Attach for File Merge)" }, { "id": "18763344", "name": "Merge3.pdf (Quote - fa_includeFromPDFMerge)" }, { "id": "18763576", "name": "Merge1.pdf (Line Item{1} - File Attachment Sub Doc 1)" }, { "id": "18763577", "name": "Merge2.pdf (Line Item{1} - File Attachment Sub Doc 2)" } ], "cacheInstanceId": "5J9MTQAbF1ZmcJGnul6y4WOrAydsRpSyR2vvW1o7fWkrEkO89aiFxbEQSIUCEnF4" }


Send Email - TransactionPOST method

Description

Use this endpoint to collect email form data, generates the attachment, pushes the email to SMTP servers, and returns confirmation on email sent time. The email recipient receives an email with the comments in the email body and an attachment that contains the transaction information.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_send_email

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

fromName

The sender's name

ccEmail

cc email address(es)

subject

The email subject line, this parameter is required to send email

bccEmail

bcc email address(es)

toEmail

The recipient's email address(es), this parameter is required to send email

toName

The recipient's name

comments

Comments to be sent in the email body

actionVariableName

The email action variable name

attachmentIds

The attachment IDs

attachmentIdsForMerge

The attachment IDs to merge

cacheInstanceId

The cache instance ID

Response Body

JSON with summary message for sending email

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/actions/_send_email


ClosedRequest Body Sample

{ "ccEmail": null, "fromName": null, "subject": "From REST: Quote Email Action Subject", "bccEmail": null, "toEmail": "firstname.lastname@oracle.com", "toName": null, "comments": "Comments for Quote Email", "actionVariableName": "quoteEmailAction", "attachmentIds": ["18763342", "18763343", "18763344"], "attachmentIdsForMerge": ["-2", "18763342", "18763577"], "cacheInstanceId": "5J9MTQAbF1ZmcJGnul6y4WOrAydsRpSyR2vvW1o7fWkrEkO89aiFxbEQSIUCEnF4" }


ClosedResponse Body Sample


ClosedSend Email - Transaction Line

In the Oracle CPQ application, the email feature is implemented using a two-step process. The first action modifies the transaction line and returns the objects required to send an email. The second action generates the email attachment and sends the email.

Modify Transaction Line for EmailPOST method

Description

Use this endpoint to modify and save transaction lines for email.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/{emailActionVarName}

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

emailActionVarName

The variable name of the modify email action

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information

Success Response

Returns the transaction line, email fields, XSL views, attachments, available attachments for merge, generated proposal attachment for merge, and the cache instance ID (if requested)

Response Body Parameters

ccEmail

cc email address(es)

fromName

The sender's name

fromEmail

The sender's email address

subject

The email subject line

bccEmail

bcc email address(es)

toEmail

The recipient's email address(es)

toName

The recipient's name

comments

Comments to be sent in the email body

xslView

Printer friendly proposals or history outputs generated from predefined XSL templates

attachments

Attachments to send with the email

availableAttachmentsForMerge

The list of attachments which can be merged with the proposal document

generatedProposalAttachmentForMerge

The proposal attachment selected by default. The default ID value for the transaction is -2.

cacheInstanceId

The cache instance ID, if requested

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/transactionLine/3/actions/lineEmailAction


ClosedRequest Body Sample

{ "documents": {"_price_quantity": 101}, "cacheInstanceId": "-1" }


ClosedResponse Body Sample

{ "documents": { "items": [{ "_price_quantity": 101, "_document_number": 2 } ] }, "cc_email": null, "from_name": null, "from_email": "firstname.lastname@oracle.com", "subject": "testing subject", "bcc_email": null, "to_email": "firstname.lastname@oracle.com", "to_name": null, "comments": "testing comments", "xsl_view": "Print RTE (PDF)(Printer Friendly/History)", "generatedProposalAttachmentForMerge": [{ "id": "-2", "name": "GENERATED PROPOSAL" } ], "attachments": [{ "id": 18763576, "name": "Merge1.pdf" }, { "id": 18763577, "name": "Merge2.pdf" } ], "availableAttachmentsForMerge": [{ "id": "18763576", "name": "Merge1.pdf (Line Item - File Attachment Sub Doc 1)" }, { "id": "18763577", "name": "Merge2.pdf (Line Item - File Attachment Sub Doc 2)" } ], "cacheInstanceId": "8ddwWVX37LMIC9oO1zs0ZOFkmUp93ZFxL5v9s2hT2p1q6Zmph9u1LKjkRLIOasNo" }


Send Email - Transaction LinePOST method

Description

This action collects email form data, generates the attachment, pushes the email to SMTP servers, and returns confirmation on email sent time. The email recipient receives an email with the comments in the email body and an attachment that contains the transaction information.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/transactionLine/{documentNumber}/actions/_send_email

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

documentNumber

The sub-document number

HTTP Method

POST

Request Body Parameters

fromName

The sender's name

ccEmail

cc email address(es)

subject

The email subject line This parameter is required to send email.

bccEmail

bcc email address(es)

toEmail

The recipient's email address(es) This parameter is required to send email.

toName

The recipient's name

comments

Comments to be sent in the email body

actionVariableName

The email action variable name

attachmentIds

The attachment IDs

attachmentIdsForMerge

The attachment IDs to merge

cacheInstanceId

The cache instance ID

Success Response

JSON with summary message for sending email

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18498612/transactionLine/3/actions/_send_email


ClosedRequest Body Sample

{ "ccEmail": null, "fromName": null, "subject": "From REST: Line Email Action Subject", "bccEmail": null, "toEmail": "firstname.lastname@oracle.com", "toName": null, "comments": "Comments for Send Transaction Line Email", "actionVariableName": "lineEmailAction", "attachmentIds": ["18763576", "18763577"], "attachmentIdsForMerge": ["-2", "18763576", "18763577"], "cacheInstanceId": "8ddwWVX37LMIC9oO1zs0ZOFkmUp93ZFxL5v9s2hT2p1q6Zmph9u1LKjkRLIOasNo" }


ClosedResponse Body Sample


ClosedSubmit for Approval

Submit for ApprovalPOST method

Description

Use this endpoint to submits the transaction for approval. If no approvals are defined or triggered for the transaction, the status will move directly to the approved step. The Submit action set is a series of Commerce actions that are essentially sub-actions of Submit. The Submit action set is comprised of Submit, Request Approval, Approve, Reject, and Revise. If no approvals are defined or triggered for the transaction, the status will move directly to the 'Approved' step.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/submit_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, deleteRows, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information.

Response Body

The pending approval object.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/1801963/actions/submit_t


ClosedSample Response Body


ClosedSubmit - Approve

Submit - ApprovePOST method

Description

Use this endpoint when an approval sequence reason is approved by the approver.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/approve_submit_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

performer_comment

Comment provided for approval.

reason_var_name

Approval reason.

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsTransaction/1801963/actions/approve_submit_t


ClosedSample Response Body


ClosedSubmit - Reject

Submit - RejectPOST method

Description

Use this endpoint when an approval sequence reason is approved by the approver.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/reject_submit_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

performer_comment

Comment provided for rejecting request.

reason_var_name

Rejection reason.

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/1801963/actions/reject_submit_t


ClosedSample Response Body


ClosedSubmit - Request Approval

Submit - Request ApprovalPOST method

Description

Use this endpoint to move the quote into an approval pathway. Request Approval is automatically initiated when the Submit action is invoked and there is a Reason to approve the quote.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/request_approval_submit_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

performer_comment

Comment provided when requesting approval.

reason_var_name

Reason for requesting approval

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information.

Response Body

The JSON Transaction data

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsTransaction/1801963/actions/request_approval_submit_t


ClosedSample Response Body


ClosedSubmit - Revise

Submit - RevisePOST method

Description

Use this endpoint to cancel an approval flow and permit revision of a transaction that has been submitted for approval.

URI Endpoint

/rest/v16commerceDocumentsOraclecpqoTransaction/{id}/actions/revise_submit_t

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

 

performer_comment

Comment provided for revision.

reason_var_name

Revision reason.

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information.

Response Body The JSON Transaction data  

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsTransaction/1801963/actions/revise_submit_t


ClosedSample Response Body


ClosedUnlock Transactions

Unlock Transactions POST method

Description

Use this endpoint to unlock the specified Transactions in a Commerce process that are locked for editing.

This endpoint is not available / supported for Partner organization users.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_process_unlock

Endpoint Parameters

None

Request Body Parameters

selections

An array of transaction Ids to archive.

HTTP Method

POST

Success Response

200

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_process_unlock


ClosedRequest Sample

{ "selections": [3022127625, 3022127628, 3022127629] }


ClosedUpdate Transaction Lines

Update Transaction Line POST method

Description

This operation modifies transaction line details and updates the existing transaction.

URI Endpoint

/rest/v16/commerceDocumentsOraclecpqoTransaction/{id}/actions/_update_line_items

Endpoint Parameters

id

The commerce transaction Id. This is the unique identifier for a transaction within an Oracle CPQ site.

HTTP Method

POST

Request Body Parameters

This endpoint supports the following optional parameters: cacheInstanceId, criteria, delta, documents, revisionId, selections, selectionMode, and skipIntegration.

Refer to Request Body Objects for additional information.

Response Body

JSON data for the transaction, including the updated transaction line

ClosedURI Endpoint Sample


 

Related Topics

Related Topics Link IconSee Also