Get Document Metadata
get
/rest/v19/commerceProcesses/{processVarName}/documents/{docVarName}
This service returns the metadata for a specific Commerce document.
Request
Path Parameters
-
docVarName(required): string
The variable name of the Commerce document
-
processVarName(required): string
The variable name of the Commerce process
Response
Default Response
Root Schema : CommerceProcessDocuments
Type:
Show Source
object
-
dateModified:
string
Title:
Date Last Modified
System field indicating the date on which the object was last modified. -
description:
string
Title:
Description
Description -
id:
integer
Title:
Id
Primary Key of Commerce Documents. -
label:
string
Title:
Display Name
Document Name -
links:
array links
Nested Schema : links
Type:
Show Source
array
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
rel:
string
Title:
Link Relationship to the current object
Link Relationship to the current object
Examples
The following example shows how to retrieve the document metadata for a Commerce document. by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents
Response Body Sample
{ "items": [{ "id": 36244074, "dateModified": "2019-02-01", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transaction" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transaction/attributes" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transaction/arraySets" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transaction/actionDefs" } ], "variableName": "transaction", "label": "Transaction", "description": "Main (Header Level) Commerce Document - serves as Quote/Order depending on step in process flow", "resourceVarName": "commerceDocumentsOraclecpqoTransaction", "type": { "lookupCode": "0", "displayValue": "Main Document" }, "process": { "id": 36244034, "variableName": "oraclecpqo" } }, { "id": 36244118, "dateModified": "2017-11-17", "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transactionLine" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transactionLine/attributes" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents/transactionLine/actionDefs" } ], "variableName": "transactionLine", "label": "Transaction Line", "description": "Line Level Document - Captures pricing and data at the line level", "resourceVarName": "commerceDocumentsOraclecpqoTransactionTransactionLine", "type": { "lookupCode": "1", "displayValue": "Sub Document" }, "process": { "id": 36244034, "variableName": "oraclecpqo" } } ], "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v19/commerceProcesses/oraclecpqo/documents" } ], }