| Field | Description | Type | Mandatory |
|---|---|---|---|
| subjectsRecords | Array of attribues objects | See below for the the object structure | ā |
returnMappings | A "T" / "F" string that indicates wether to: "T": return the customer code for each system it is defined on; "F": do NOT return the external mappings for the customer | String (defaults to "F") |
returnMappings is set to "F" to prefer faster responses. It should be set to "T" only if you really need to know the customer code for external systems (e.g. mail marketing system, Shop system etc)subjectsRecords: [{
subjects:{
customerCode: "13245",
system: "DW",
subjectName: "Alessandro",
subjectName2: "Gino",
subjectSurname: "Covris",
subjectCompanyName: "Sinesy",
subjectType: "FIDELITY",
subjectSubtype: "4",
extSubCompanyName: "",
subjectDenomination: "",
lawNature: "",
address1: "via Pordenone 1",
address2: "",
zipCode: "33170",
municipality: "",
city: "Pordenone",
province: "PN",
region: "FVG",
state: "",
country: "IT",
latitude: "",
longitude: "",
language: "",
currency: "EUR",
note: "",
sex: "M",
birthday: "",
birthPlace: "",
countryBirth: "IT",
fiscalCode: "",
companyVatCode: "",
idCard: "",
passport: "",
maritialStatus: "",
occupation: "",
title: "",
origin: "",
functionCode: "",
saleChannel: "",
organizationLevel: "",
territory: "",
purchaseInclination: "",
employeesNumber: 60,
employeesDate: "",
attractionLevel: "",
identificationLevel: "",
subjectBlockReason: "",
oldSubjectCode: "",
poBox: "",
payment: "",
discount: 0,
decisionLevel: "",
isCompany: "F",
macAddress: "",
ecommerceLastVisit: "2016-03-24",
ecommerceLastLogin: "2016-03-24",
ecommerceGuestRegister: "",
discountAuthorization: "",
childNumber: 2,
foreignPerson: "F",
maximumValue: 1000
},
contacts: [{
contactType: "PHONE",
value: "1234567890"
},{
contactType: "EMAIL",
value: "test.test@test.it"
}],
privacy: [{
privacyType: "",
privacyConsent: "",
consentDate: "",
recessDate: ""
}],
cards: [{
cardType: "FIDELITY",
cardSubtype: "GEN",
circuit: "SINESY",
card: "1357924711",
cardBarcode: "1357924711",
issueDate: "2016-03-24",
active: "",
activationDate: "2016-03-24",
expirationDate: "2017-03-24",
cardMaster: "",
cardFather: "",
cardMother: "",
entityCode: "",
earnedPoints: 0
}],
subjectDestinations: [{
destinationType: "RES",
address1: "Via Roma",
address2: "",
zipCode: "33170",
municipality: "",
city: "Pordenone",
province: "PN",
region: "",
state: "",
country: "IT",
fax: "",
mobile: "",
email: "",
note: "Note",
phone: ""
}]
}]
{
success: true,
code: 200,
message: "Check duplicati riuscito con successo.",
errorObjects: āā,
foundObjects: [
{
progId: 2000,
customerCode: "456",
emails: [
"xxx@xxx.it",
"yyy@yyy.it"
]
},
{
progId: 1000,
customerCode: "123",
emails: [
"xxx@xxx.it"
]
}
]
}