Create a Commence Proccess Integration
post
/rest/v19/commerceProcessSetups/{processVarName}/integrations
Use this endpoint to create an integration for the specified Commerce Process.
Request
Supported Media Types
- multipart/form-data
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
201 Response
Success
Root Schema : AdminIntegrationRequestModel
Type:
Show Source
object
-
batchSize:
integer()
Title:
Batch Size
Quote lines to be integrated in a single invocation for the Integration -
childEntity:
string()
Title:
Child Entity
Name of the child resource from metadata for mapping attributes. -
description:
string()
Title:
Description
Description of the Integration -
documentSelection:
integer()
Title:
Document Selection
Document Selection of the Integration -
documentSelectionEnum:
string
Allowed Values:
[ "MAIN_DOCUMENT", "SUB_DOCUMENT" ]
-
endpoint:
string()
Title:
Endpoint
ICS Endpoint for the Integration. -
enumType:
string
Allowed Values:
[ "SOAP_EXPORT", "SOAP_IMPORT", "MIDDLEWARE_IMPORT", "MIDDLEWARE_EXPORT", "CONTRACT_MANAGEMENT", "BML", "REST_EXPORT_LINES", "REST_EXPORT", "REST_IMPORT" ]
-
filterField:
string()
Title:
Filter Field
Filter Field used for the Integration if Custom Line Type Filter is selected -
headers:
string()
Title:
Headers
This field takes the headers to be passed in the request to the integration endpoint -
id:
integer()
Title:
Id
Id of the Integration item -
instanceTypeEnum:
string
Allowed Values:
[ "GENERIC", "DYNAMICS" ]
-
integrationVendorVarName:
string()
Title:
Integration Vendor Variable Name
Integration Vendor Variable Name of the Integration -
isPreview:
boolean()
Title:
Preview Contract
Indicates whether preview contract is enabled for the Integration -
lineSelectionEnum:
string
Allowed Values:
[ "ROOT_LINES", "PART_LINES", "ALL_LINES", "CUSTOM" ]
-
lineTypeFilter:
integer()
Title:
Line Type Filter
Line Type Filter of the Integration -
metadataURL:
string()
Title:
Metadata URL
The endpoint to retrieve the metadata about CRM attributes available for mapping for this integration. -
name:
string()
Title:
Name
Name of the Integration -
partnerAttachmentField:
string()
Title:
Partner Attachment Field
Partner Attachment Field of the Integration -
partnerIdField:
string()
Title:
Id Field
This field indicates which Commerce attribute stores the external ID of the object being updated by the integration -
processId:
integer(int64)
-
processVarName:
string()
Title:
Process Variable Name
Process Variable Name of the Integration -
promptName:
string()
Title:
Prompt Name
Prompt Name used for Quote Summary Integration -
queryParams:
array Query Params
Title:
Query Params
This field takes the query params to be passed in the request to the above integration endpoint. -
ruleMetaId:
integer()
Title:
Rule Meta Id
Rule Meta Id of BML function used for the Integration -
runType:
integer()
Title:
Instance Type
Specifies when the BML function is run -
serviceName:
string()
Title:
Service Name
Service Name of the Integration -
serviceVarName:
string()
Title:
Service Variable Name
Service Variable Name of the Integration -
timeout:
integer()
Title:
Timeout
Timeout of the Integration -
type:
integer()
Title:
Type
Type of the Integration -
variableName:
string()
Title:
Variable Name
Variable Name of the Integration
Nested Schema : Query Params
Type:
array
Title:
Query Params
This field takes the query params to be passed in the request to the above integration endpoint.
Show Source
Examples
Allowed Request Fields for Integration Types
- BML: id, variableName, name, description, type, runType, ruleMetaId
- Contact Management: id, variableName, name, description, type, timeout, preview, partnerAttachmentField, resultFile, queryFile
- Integration Cloud Service: variableName, name, description, type, timeout, endpoint
- REST Export: id, variableName, name, description, type, timeout, endpoint , partnerIdField, metadataURL, headers, childEntity
- REST Export Lines: id, variableName, name, description, type, timeout, endpoint , partnerIdField, metadataURL, headers, childEntity, batchSize, lineTypeFilter, filterField
- REST Import: id, variableName, name, description, type, timeout, endpoint , partnerIdField, metadataURL, headers, childEntity, batchSize, queryParams.value, queryParams.key, documentSelection
- SOAP Export: id, variableName, name, description, type, timeout, endpoint, partnerIdField, resultFile, queryFile
- SOAP Import: id, variableName, name, description, type, timeout, endpoint, partnerIdField, resultFile, queryFile
The following example shows how to create an integration 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 PATCH -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/commerceProcessSetups/oraclecpqo/integrations
Request Body Samples
SOAP Import Sample
payload: // JSON as text { "variableName": "testVar6_c", "name": "testVar3", "description": "ics descpr", "type": "SOAP_IMPORT", "timeout": 100, "endpoint": "sitename.oracle.com", "partnerIdField": "a.b", "metadataURL": "123", "documentSelection": "MAIN_DOCUMENT" }, resultFile: "test.xsl", // File expected queryFile: "test2.xsl" // File expected
REST Export Sample
payload: { "id": -1, "variableName": "testVar2_c", "name": "testVar1_c", "description": "ics desc", "type": "REST_EXPORT", "timeout": 100, "documentSelection": "MAIN_DOCUMENT", "batchSize": 1, "runType": "GENERIC", "endpoint": "sitename.oracle.com", "partnerIdField": "a.b", "metadataURL": "123", "promptName": "khabce", "queryParams": [{ "key": "a", "value": "b" }, { "key": "c", "value": "d" } ] }
Response Body Sample
{ "id": 3023626061 }