getEnrichmentMap
get
/ccadmin/v1/enrichmentMaps/{id}
Get the attribute mappings from an external source to an internal item type (profile or account).
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The ID of the map.
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getMap_response
Type:
Show Source
object
-
configMap:
object configMap
An array of mappings
-
IDGraphRuleName:
string
Name of the IDGraphRule object that has been configured in Unity
-
source:
string
Name of the source
-
subRuleName:
string
Name of the subRule that has been configured in the DSV in Unity
-
target:
string
Name of the target
Nested Schema : configMap
Type:
object
An array of mappings
Show Source
-
sourceName:
string
Name of an attribute from the source
-
sourceType:
string
Data type of an attribute from the source
-
targetName:
string
Name of an attribute from the target
-
targetType:
string
Data type of an attribute from the target
Example Response (application/json)
{
"configMap":[
{
"targetName":"numberOfOrders",
"sourceType":"integer",
"targetType":"int",
"sourceName":"unity_numberOfOrders"
},
{
"targetName":"email",
"sourceType":"string",
"targetType":"string",
"sourceName":"unity_email"
},
{
"targetName":"taxExempt",
"sourceType":"boolean",
"targetType":"boolean",
"sourceName":"unity_taxExempt"
}
],
"IDGraphRuleName":"mockIdGraphRuleName1",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/enrichmentMaps/unity-profile"
}
],
"source":"customer",
"subRuleName":"mockSubRuleName",
"target":"profile"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|55207|Unable to find a profile map with id: {0}|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code