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 Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Generated Documents
Type: object
Title: Generated Documents
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Generated Document
Type: object
Title: Generated Document
Show Source
  • Title: id
    The generated document id
  • 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.
  • Title: Output Format
    The output format options available are as follows (separated by comma): PDF, DOCX, RTF
  • Title: Process Variable Name
    The Commerce Process variable name
  • Title: Template Name
    The Document Designer template name
  • Title: Transaction ID
    Commerce Transaction Id. However, this property will not have any data in the response.
Back to Top

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"
  }]
}
Back to Top