Get Generated Documents List
get
/rest/v16/documentGenerator
This operation retrieves a list of recently generated documents.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
Default Response
Root Schema : Generated Documents
Type:
object
Title:
Show Source
Generated Documents
-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server.
-
offset:
integer
The offset used in the current page.
-
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : items
Type:
Show Source
array
-
Array of:
object Generated Document
Title:
Generated Document
Nested Schema : Generated Document
Type:
object
Title:
Show Source
Generated Document
-
id:
integer
Title:
id
The generated document id -
languageCode:
integer
Title:
Language Code
The language integer value to specify the template language. To identify integer values, refer to the Supported Languages section in the CPQ Administration Online Help > Language Support topic. -
links:
string
Title:
Links
Link to generated document. -
outputFormat:
string
Title:
Output Format
The output format options available are as follows (separated by comma): PDF, DOCX, RTF -
processVarname:
string
Title:
Process Variable Name
The Commerce Process variable name -
templateName:
string
Title:
Template Name
The Document Designer template name -
transactionId:
integer
Title:
Transaction ID
Commerce Transaction Id. However, this property will not have any data in the response.
Examples
The following example shows how to access a document generator by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json" https://sitename.oracle.com/rest/v16/documentGenerator
Response Body Sample
The following example shows the contents of the response body in JSON format, including the Document Generator IDs:
Example of Response Header (when using an Accept: application/octet-stream
Header)
The following shows an example of the response header.
{ "items": [{ "id": "5607404", "languageCode": null, "transactionId": null, "outputFormat": "PDF", "processVarname": null, "templateName": null, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/documentGenerator/5607404" }] }, { "id": "5607142", "languageCode": null, "transactionId": null, "outputFormat": "PDF", "processVarname": null, "templateName": null, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/documentGenerator/5607142" }] }], "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/documentGenerator" }] }