CDH To IAM Data Synchronization
Accounts and addresses in CDH are set up to sync with IAM. In order for this data to successfully sync with IAM the data needs to be translatable to the IAM data schemas.
Account Synchronization Policy
- name
- The CDH
namefield will map to thenamefield - Any name that is longer than 100 characters will be truncated to the first 100 characters
- The CDH
- customerType
- The CDH
typefield maps to thecustomerTypefield - It must be one of the valid IAM
customerTypevalues
- The CDH
- type
- The CDH
b2bfield maps to thetypefield - It must be one of the valid IAM
typevalues
- The CDH
- status
- The CDH
accountStatusfield maps to thestatusfield - The value must be a valid value in IAM
- The value will default to
active
- The CDH
- country
- the CDH
countrywill map to thecountryfield - If the value is a valid alpha-2 code it will be used
- If the value is not a valid alpha-2 code the system will attempt to look up a valid alpha-2 code and use that
- If no valid alpha-2 code can be found the value will not be migrated
- the CDH
- currency
- The CDH
accountCurrencyfield maps to thetransactionInfocurrencyfield - The value must be a valid currency code otherwise it will not be synced
- The CDH
- ebsAccountNumber
- The CDH
ebsAccountNumberfield maps to thetransactionInfoebsAccountNumberfield
- The CDH
- taxExemptionStatus
- The CDH
taxExemptionfield maps to thetransactionInfotaxExemptionStatusfield - The value must match one of the valid IAM account
taxExemptionStatusfields - If the value is present but not valid the account will fail to sync
- The CDH
- taxVatId
- The CDH
attribute9field maps to thetransactionInfotaxVatIdfield
- The CDH
- email
- The CDH
ownersEmailfield maps to theprimaryContactInfoemailfield - The value syntax must be a valid email address
- The CDH
- phoneNumber
- The CDH
phoneNumberfield maps to theprimaryContactInfophoneNumberfield
- The CDH
Address Synchronization Policy
- country
- The CDH
countryfield maps to the addresscountryfield if it is present and valid - If
countryis not present or validcountryNamewill be mapped if it is present and valid - The value of
countryorcountryNameis valid if:- It is a valid alpha-2 code
- The system is able to look up a valid alpha-2 code for the value
- The CDH
- region
- In order of precedence the address
regionfield will be mapped by the CDHstate,provinceorstateNamefields
- In order of precedence the address
- locality
- the CDH
cityfield will map to the addresslocalityfield
- the CDH
- postalCode
- The CDH
zipfield will map to the addresspostalCodefield
- The CDH
- addressLine1-4
- Address lines are mapped directly to the corresponding field in IAM. Only
addressLine1is required. - If any
addressLine2-4are one of the following values, it will be ignored: [“EMPTY”, ” ”, ""]
- Address lines are mapped directly to the corresponding field in IAM. Only
- status
- The CDH
addressStatusfield will be mapped to the address status using the following rules- If the field is empty then the value will be
active - If the field is
Ythe value will beactive - If the field is
Nthe value will beinactive - If the field is not empty but doesn’t meet the above conditions the address sync will fail
- If the field is empty then the value will be
- The CDH
- isShipTo
- The CDH
isShipTofield will be mapped to the addressshippingisShipTofield
- The CDH
- isBillTo
- The CDH
isBillTofield will be mapped to the addressbillingisBillTofield
- The CDH
- isValidated
- The CDH
addressValidatedFlagfield will map to the addressisValidatedfield - if the value is one of [“Yes”, “Y”] then the field will be
trueotherwise it will befalse
- The CDH
External Systems Synchronization
-
In order for the CDH
originalSourceandsourceSystemsto sync the CDHsystemmust match one of the validexternalSystemssystemvalues in IAM- You can get a list of the valid values via the
GET /externalSystemsAPI endpoint.
- You can get a list of the valid values via the
-
The
sourceSystemfield in IAM will be mapped according to the following rules:- Primary mapping
originalSource:- If
originalSourceandoriginalSourceReferenceare present and valid, both fields will be mapped to IAM - The CDH
originalSourcefield will be mapped tosystemfield - The CDH
originalSourceReferencefield will be mapped torefIdfield
- If
- Fallback to
EBSsystem:- If
originalSourceandoriginalSourceReferenceare missing or invalid, retrieveEBSfrom CDHsourceSystems - The
systemwill be the valueEBS - The
refIdwill be thereferenceset forEBSon CDH
- If
- Fallback to the first
systemin the CDHsourceSystems:- If
EBSis not present in the CDHsourceSystems, retrieve the first validsystem - The
systemwill be the first validsystem - The
refIdwill bereferencefrom thesystemon CDH
- If
- Final fallback:
- If no system is valid, CDH will be mapped as the source system
- The
systemwill be the valueCDH - The
idwill be the valuedaf95b20-d9b4-5e45-aef4-c59e3ede44ea - The
refIdfor the account source system will be the CDH ID. - The
refIdof the address source system will be a concatenation of the address account ID and address ID- format:
<addressId>:<accountId>
- format:
- Primary mapping
-
If CDH was not mapped as the source system, CDH will be mapped to the IAM
externalSystemsreferencesarray:- The
systemwill be the valueCDH - The
idwill be the valuedaf95b20-d9b4-5e45-aef4-c59e3ede44ea - The
refIdfor the account source system will be the CDH ID. - The
refIdof the address source system will be a concatenation of the address account ID and address ID- format:
<addressId>:<accountId>
- format:
- The
-
All other CDH
sourceSystemswill be mapped to the IAMexternalSystemsreferencesarray.