Reading contact data

SOAP Example

WSDL and credentials

The WSDL of those webservices can be accessed at the following urls.

The test login is : MOSA_B2C
The test password is : P@ssw0rd

MOSA is a demo museum. The service can be freely tested with this account, within the limits of a reasonable and fair use.

Example calls

Call to getContactData

Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2_21.ContactInformationPublicService.service.secutix.com/" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
  <soapenv:Header>
    <ns2:Security soapenv:mustUnderstand="1">
      <ns2:UsernameToken>
        <ns2:Username>MOSA_B2C</ns2:Username>
        <ns2:Password>P@ssw0rd</ns2:Password>
      </ns2:UsernameToken>
    </ns2:Security>
  </soapenv:Header>
  <soapenv:Body>
    <v2:getContactData>
      <!--Optional:-->
      <contactNumber>20</contactNumber>
    </v2:getContactData>
  </soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Body>
    <ns2:getContactDataResponse xmlns:ns2="http://v2_21.ContactInformationPublicService.service.secutix.com/">
      <ContactDataResult>
        <requestId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
        <statusCode>success</statusCode>
        <statusDetail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
        <contactId>129856361</contactId>
        <contactNumber>20</contactNumber>
        <contactOrigin>
          <translations />
        </contactOrigin>
        <createdFrom />
        <creationDate>2015-07-10T15:07:06+02:00</creationDate>
        <endValidityDate>2999-12-31T00:00:00+01:00</endValidityDate>
        <guest>false</guest>
        <hasAdvantages>false</hasAdvantages>
        <hasWarning>false</hasWarning>
        <individualContact>
          <requestId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
          <statusCode xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
          <statusDetail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
          <active>true</active>
          <addressSalutation>Mrs</addressSalutation>
          <cellPhoneNumberVerified>false</cellPhoneNumberVerified>
          <confidentialityLevelEnum>FREE</confidentialityLevelEnum>
          <contactNumber>20</contactNumber>
          <countryCode>FR</countryCode>
          <email>liliane.bles-gagnaire@secutixtest.com</email>
          <endValidityDate>2999-12-31T00:00:00+01:00</endValidityDate>
          <guest>false</guest>
          <handicapType>HANDICAP/NONE</handicapType>
          <individualFirstname>Liliane</individualFirstname>
          <individualGender>FEMALE</individualGender>
          <individualLastname>BLES-GAGNAIRE</individualLastname>
          <individualPreferredLanguage>en</individualPreferredLanguage>
          <individualTitle>MRS</individualTitle>
          <letterSalutation>Chère Madame</letterSalutation>
          <login>liliane.bles-gagnaire@secutixtest.com</login>
          <phoneNumber1>+330681571845</phoneNumber1>
          <prospect>false</prospect>
          <role>PUBLIC</role>
          <zipCode>67114</zipCode>
        </individualContact>
        <login>liliane.bles-gagnaire@secutixtest.com</login>
        <loginLastUpdateTime>2019-11-20T11:13:22+01:00</loginLastUpdateTime>
        <loginLastUpdateUser>MMOSA_B2C</loginLastUpdateUser>
        <role>PUBLIC</role>
        <state>VALID</state>
        <structureContact>
          <addressSalutation>Mrs</addressSalutation>
          <community>false</community>
          <confidentialityLevelEnum>FREE</confidentialityLevelEnum>
          <letterSalutation>Chère Madame</letterSalutation>
          <phoneNumber1>+330681571845</phoneNumber1>
          <prospect>false</prospect>
          <role>PUBLIC</role>
        </structureContact>
        <type>INDIVIDUAL</type>
      </ContactDataResult>
    </ns2:getContactDataResponse>
  </S:Body>
</S:Envelope>

REST Example

Authentication

The REST endpoint to be called:

The test login is : MOSA_B2C
The secret for the JWT is your-256-bit-secret
You need to have an interface linked to a sales channel and this virtual operator.

MOSA is a demo museum. The service can be freely tested with this account, within the limits of a reasonable and fair use.

Example calls

Minimum call to saveIndividualContactData

Request header
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJNT1NBIiwiYXVkIjoiTU9TQV9CMkMiLCJpc3MiOiJUZXN0IHBhcnRuZXIiLCJpYXQiOjE2MDEzMDQ3NjgsImV4cCI6MTYwMTMwNDc5OH0.-3ZK1OdBYXs2f4pdbLjXoKEFrIlwESzha6Tf-2FrtTI
Request body
{
    "contactNumber": "20"
}
Response
{
    "statusCode": "success",
    "statusDetail": null,
    "requestId": null,
    "contactNumber": "20",
    "individualContact": {
        "statusCode": null,
        "statusDetail": null,
        "requestId": null,
        "contactNumber": "20",
        "individualGender": "FEMALE",
        "individualTitle": "MRS",
        "individualFirstname": "Liliane",
        "individualLastname": "BLES-GAGNAIRE",
        "individualFirstnamePhonetic": null,
        "individualLastnamePhonetic": null,
        "nickname": null,
        "individualBirthdate": null,
        "individualCountryCode": null,
        "individualIdNumber": null,
        "email": "liliane.bles-gagnaire@secutixtest.com",
        "alternativeEmails": [],
        "login": "liliane.bles-gagnaire@secutixtest.com",
        "password": null,
        "digestedPassword": null,
        "encryptedPassword": null,
        "badgeIdentifier": null,
        "individualPreferredLanguage": "en",
        "prospect": false,
        "zipCode": "67114",
        "countryCode": "FR",
        "loginCreation": null,
        "endValidityDate": 32503590000000,
        "endValidityReason": null,
        "handicapType": "HANDICAP/NONE",
        "remark": null,
        "addressSalutation": "Mrs",
        "letterSalutation": "Chère Madame",
        "confidentialityLevelEnum": "FREE",
        "cellPhoneNumber": null,
        "faxNumber": null,
        "phoneNumber1": "+330681571845",
        "phoneNumber2": null,
        "phoneNumber3": null,
        "cellPhoneNumberVerified": false,
        "role": "PUBLIC",
        "active": true,
        "guest": false
    },
    "structureContact": {
        "contactNumber": null,
        "allContactNumbers": null,
        "state": null,
        "structureOfficialName": null,
        "structureAddressName1": null,
        "structureAddressName2": null,
        "structurePreferredLanguage": null,
        "structureCommunityType": null,
        "numberOfEmployees": null,
        "structureTypeId": null,
        "login": null,
        "password": null,
        "prospect": false,
        "siretCode": null,
        "primaryContactId": null,
        "community": false,
        "email": null,
        "alternativeEmails": [],
        "remark": null,
        "addressSalutation": "Mrs",
        "letterSalutation": "Chère Madame",
        "confidentialityLevelEnum": "FREE",
        "parentStructureContactNumber": null,
        "structureEuropeanVatCode": null,
        "badgeIdentifier": null,
        "cellPhoneNumber": null,
        "faxNumber": null,
        "phoneNumber1": "+330681571845",
        "phoneNumber2": null,
        "phoneNumber3": null,
        "role": "PUBLIC"
    },
    "endValidityDate": 32503590000000,
    "role": "PUBLIC",
    "state": "VALID",
    "hasWarning": false,
    "login": "liliane.bles-gagnaire@secutixtest.com",
    "type": "INDIVIDUAL",
    "financialData": null,
    "contactQualities": [],
    "mergedContactNumber": null,
    "function": null,
    "creationDate": 1436533626456,
    "contactId": 129856361,
    "invalidatedContactQualities": [],
    "contactFileHistoryCriteria": null,
    "authorizations": [],
    "contactCriteria": [],
    "indicators": [],
    "advantages": [],
    "addresses": [],
    "contactConnections": [],
    "socialConnections": [],
    "loginLastUpdateUser": "MMOSA_B2C",
    "loginLastUpdateTime": 1601115201763,
    "hasAdvantages": false,
    "individualPhotoData": null,
    "contactOrigin": {
        "code": null,
        "translations": {}
    },
    "createdFrom": {},
    "guest": false
}
cURL snippet
curl --location --request POST 'http://localhost:8080/tnco/backend-apis/contactInformationPublicService/v2_21/getContactData' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJNT1NBIiwiYXVkIjoiTU9TQV9CMkMiLCJpc3MiOiJUZXN0IHBhcnRuZXIiLCJpYXQiOjE2MDEzMDUxODIsImV4cCI6MTYwMTMwNTIxMn0.k6Y_2Nmuo7ARX-3UsiCQ4QQy_T_0oPRSAtiPXQCio50' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contactNumber": "20"
}'