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
Path Parameters
Back to Top

Response

Supported Media Types

201 Response

Success
Body ()
Root Schema : AdminIntegrationRequestModel
Type: object
Show Source
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
Nested Schema : KeyValueRequestModel
Type: object
Show Source
Back to Top

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