Print Transaction

post

/rest/v16/commerceDocuments{ProcessVarName}{MainDocVarName}/{id}/actions/_print_document

Use this endpoint to print the generated transaction document.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Transaction-_print_documentRequest
Type: object
Show Source
  • Title: Action Variable Name
    The print action variable name used to look up print action configuration
  • Attachments to be merged.
    Title: Attachments to be merged.
    List of attachments to be merged for an email or print action.
  • Title: Cache Instance Id
    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.
  • Title: Language Attribute Value
    language preference selected by user
  • Title: Save To Quote
    Indicates if the print document is saved to the quote, valid values are {true, false}
  • Title: Update Quote With Attachment
    Indicates if quote has to be updated with print document attachment file, valid values are {true, false}
  • Title: XSL View
    Printer friendly proposals or history outputs generated from predefined XSL templates
Nested Schema : Attachments to be merged.
Type: array
Title: Attachments to be merged.
List of attachments to be merged for an email or print action.
Show Source
Nested Schema : Attachment properties.
Type: object
Title: Attachment properties.
Captures the id of the attachment.
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Transaction-_print_documentResponse
Type: object
Show Source
  • Title: Cache Instance Id
    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.
  • Title: File Attachment Attribute
    Used for confirmation
  • Title: File Content
    The Base64 encoded binary document value
  • Title: File Content Type
    The file content type
  • Title: File Title
    This file name used when saving to the quote file attachment attribute, or when downloading the file
Back to Top

Examples

The following example shows how to print the generated transaction document by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

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

Request Body Sample

{
    "actionVariableName": "_action_process_print",
    "languagePreference": "en",
    "xslView": 3023147879,
    "attachmentIdsForMerge": ["3023197953", "-2"]
}
Back to Top