Create a Commerce Process Document
post
/rest/v19/commerceProcessSetups/{processVarName}/documents
Use this endpoint to create a main document or sub-document for the specified Commerce Process.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : DocumentRequestModel
Type:
Show Source
object
-
coverageEnabled:
boolean()
Title:
Coverage Enabled
Indicates whether Coverage feature is enabled -
coverageMapping:
Coverage Mapping
Title:
Coverage Mapping
Property object for storing coverage related mappings -
cvgStdDefaultOverride:
boolean()
Title:
Coverage Standard Default Override
Specifies whether the standard coverage options are overridden -
description:
string()
Title:
Description
Description of the Document -
id:
integer()
Title:
Id
Id of the document -
label:
string()
Title:
Label
Label of the Document -
modifyRuleExecPolicy:
boolean()
Title:
Modify Rule Exec Policy
Indicates whether Modify Rule Exec Policy is enabled -
opportunityIdMapping:
string()
Title:
Opportunity Id Mapping
Field that store the field name of mapped opportunity Id -
postAdvancedDefault:
Post Advanced Modify
Title:
Post Advanced Modify
Property object for Post Advanced Modify -
postAutoUpdate:
Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update -
preAdvancedDefault:
Pre Advanced Modify
Title:
Pre Advanced Modify
Property object for Pre Advanced Modify -
preAutoUpdate:
Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update -
subDocId:
integer()
Title:
Sub Document Id
Document Id of the linked Sub Document -
type:
integer()
Title:
Type
Type of the Document (Sub or Main) -
variableName:
string()
Title:
Variable Name
Variable Name of the Document
Nested Schema : Coverage Mapping
Title:
Coverage Mapping
Property object for storing coverage related mappings
Match All
Property object for storing coverage related mappings
Show Source
Nested Schema : Post Advanced Modify
Title:
Post Advanced Modify
Property object for Post Advanced Modify
Match All
Property object for Post Advanced Modify
Show Source
Nested Schema : Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update
Match All
Property object for Pre Auto Update
Show Source
Nested Schema : Pre Advanced Modify
Title:
Pre Advanced Modify
Property object for Pre Advanced Modify
Match All
Property object for Pre Advanced Modify
Show Source
Nested Schema : Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update
Match All
Property object for Pre Auto Update
Show Source
Nested Schema : CoverageMappingResourceModel
Type:
Show Source
object
-
coverageLineNo:
integer()
Title:
Coverage Line Number
Attribute Id of field that stores Coverage Product's Line Number -
coverageOrderNo:
integer()
Title:
Coverage Order Number
Attribute Id of field that stores Coverage Product's Order Number -
customerID:
integer()
Title:
Customer ID
Attribute Id of field that stores Customer ID -
orderNo:
integer()
Title:
Order Number
Attribute Id of field that stores Covered Product's Order Number -
quantity:
integer()
Title:
Quantity
Attribute Id of field that stores Quantity -
unitOfMeasure:
integer()
Title:
Unit Of Measure
Attribute Id of field that stores Unit Of Measure
Nested Schema : DocumentOverrideStdPropsModel
Type:
Show Source
object
-
functionDefined:
boolean()
Title:
Function Defined
Specifies whether Function is Defined -
functionValid:
boolean
-
overrideEnabled:
boolean()
Title:
Override Enabled
Specifies whether the standard option is overridden
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : DocumentRequestModel
Type:
Show Source
object
-
coverageEnabled:
boolean()
Title:
Coverage Enabled
Indicates whether Coverage feature is enabled -
coverageMapping:
Coverage Mapping
Title:
Coverage Mapping
Property object for storing coverage related mappings -
cvgStdDefaultOverride:
boolean()
Title:
Coverage Standard Default Override
Specifies whether the standard coverage options are overridden -
description:
string()
Title:
Description
Description of the Document -
id:
integer()
Title:
Id
Id of the document -
label:
string()
Title:
Label
Label of the Document -
modifyRuleExecPolicy:
boolean()
Title:
Modify Rule Exec Policy
Indicates whether Modify Rule Exec Policy is enabled -
opportunityIdMapping:
string()
Title:
Opportunity Id Mapping
Field that store the field name of mapped opportunity Id -
postAdvancedDefault:
Post Advanced Modify
Title:
Post Advanced Modify
Property object for Post Advanced Modify -
postAutoUpdate:
Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update -
preAdvancedDefault:
Pre Advanced Modify
Title:
Pre Advanced Modify
Property object for Pre Advanced Modify -
preAutoUpdate:
Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update -
subDocId:
integer()
Title:
Sub Document Id
Document Id of the linked Sub Document -
type:
integer()
Title:
Type
Type of the Document (Sub or Main) -
variableName:
string()
Title:
Variable Name
Variable Name of the Document
Nested Schema : Coverage Mapping
Title:
Coverage Mapping
Property object for storing coverage related mappings
Match All
Property object for storing coverage related mappings
Show Source
Nested Schema : Post Advanced Modify
Title:
Post Advanced Modify
Property object for Post Advanced Modify
Match All
Property object for Post Advanced Modify
Show Source
Nested Schema : Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update
Match All
Property object for Pre Auto Update
Show Source
Nested Schema : Pre Advanced Modify
Title:
Pre Advanced Modify
Property object for Pre Advanced Modify
Match All
Property object for Pre Advanced Modify
Show Source
Nested Schema : Pre Auto Update
Title:
Pre Auto Update
Property object for Pre Auto Update
Match All
Property object for Pre Auto Update
Show Source
Nested Schema : CoverageMappingResourceModel
Type:
Show Source
object
-
coverageLineNo:
integer()
Title:
Coverage Line Number
Attribute Id of field that stores Coverage Product's Line Number -
coverageOrderNo:
integer()
Title:
Coverage Order Number
Attribute Id of field that stores Coverage Product's Order Number -
customerID:
integer()
Title:
Customer ID
Attribute Id of field that stores Customer ID -
orderNo:
integer()
Title:
Order Number
Attribute Id of field that stores Covered Product's Order Number -
quantity:
integer()
Title:
Quantity
Attribute Id of field that stores Quantity -
unitOfMeasure:
integer()
Title:
Unit Of Measure
Attribute Id of field that stores Unit Of Measure
Nested Schema : DocumentOverrideStdPropsModel
Type:
Show Source
object
-
functionDefined:
boolean()
Title:
Function Defined
Specifies whether Function is Defined -
functionValid:
boolean
-
overrideEnabled:
boolean()
Title:
Override Enabled
Specifies whether the standard option is overridden
Examples
The following example shows how to create a main document or sub-document for the specified Commerce Process by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/commerceProcessSetups/oraclecpqo/documents
Request Body Samples
Main Document Sample
{ "variableName": "maindocument_c", "label": "Main document", "description": "Description for the main document", "type": 0, "opportunityIdMapping": "transaction.opportunityNumber" }
Sub-Document Sample
{ "variableName": "subdocument_c", "label": "Sub document", "description": "Description for the sub document", "type": 1 }
Response Body Samples
Main Document Sample
{ "id": 1543613, "variableName": "maindocument_c", "label": "Main document", "description": "Description for the main document", "type": 0 }
Sub-Document Sample
{ "id": 1543614, "variableName": "subdocument_c", "label": "Sub document", "description": "Description for the sub document", "type": 1 }