/
NUTRINTG CDP Profile Service

NUTRINTG CDP Profile Service

CDP Profile Service is responsible for managing customers profile in both CDP and CDS.
Service provides following APIs:

and one deprecated API:

  • update profile

Create profile endpoint

HTTP Method

POST

Endpoint

/profile

Query param

access_token

Headers

Account-Source

Accept-Language

Brand-Org-Code

Program-Code

Content-Type

{ "FirstName": "bSrjC", "LastName": "GUGNyHrZOq", "LanguageCode": "POL", "SourceCode": "MJNPOLWEB", "EnrollmentStatus": "A", "EnrollChannelCode": "WEB", "TierCode": "MJNPOLTIER1", "JsonExternalData": { "Agreements": [ { "BusinessId": "LT-CP-PL-pl-RB-Shareholders", "RevisionId": "5e32e87e01dab10001c320f9", "ConsentAcceptedInd": true, "ConsentDesc": "Consent Description", "MandatoryInd": false, "CustomName": "Johnny", "AgreementDate": "2018-05-23 12:29:04", "ActivityDate": "2017-07-02T12:37:11.3665418Z", "Status": "A" } ], "ProfileSubscriptions": [ { "SubscriptionId": "1f6cd97d-9853-4c43-a370-a7e3d87de203", "OptSource": "WEB", "ChannelCode": "EM", "OptStatus": true, "ActivityDate": "2019-09-20T14:47:41.000000Z", "Status": "A", "JsonExternalData": { "ContactPointValue": "success+BpSXVrGbQx@simulator.amazonses.com", "EmailOptFlag": "Y" } } ], "ProfileActivity": { "ActivityInput": {}, "ActivityType": "REGISTRATION", "Status": "A", "JsonExternalData": { "ActivityDate": "2019-09-20T14:47:41.000000Z", "CountryCode": "POL" } }, "UnmappedAttributes": { "GA_ClientID": "927554751.1570013104" }, "UtmAttributes": [] } }
{ "clientId": "a395bd15-9e3d-4493-8135-b166377ca844", "sourceAccountNumber": "MJNPOL_a395bd15-9e3d-4493-8135-b166377ca844", "traceId": "a19dfcd9-ee47-4706-a12e-6d253e5572ac" }

Update profile

HTTP Method

PUT

Endpoint

/profiles/{profileId}

Query param

access_token

Headers

Accept-Language

Brand-Org-Code

Program-Code

Account-Source

Source-Account-Number

Content-Type

{ "FirstName": "YebjY", "LastName": "JosSeTQsjM", "LanguageCode": "", "Addresses": [{ "AddressLine1": "LMWyKXcI", "AddressLine2": "uJsgAqiK", "AddressLine3": "mnYsoaVy", "City": "KdIXmz", "StateCode": "oTPRdraMcEy", "CountryCode": "POL", "PostalCode": "65571", "DeliveryStatus": "G", "DoNotStandardize": true }], "Emails": [], "Phones": [], "SourceCode": "MJNPOLWEB", "EnrollmentStatus": "", "EnrollChannelCode": "", "TierCode": "MJNPOLTIER1", "JsonExternalData": { "Agreements": [{ "BusinessId": "LT-CP-PL-pl-RB-Shareholders", "RevisionId": "5e32e87e01dab10001c320f9", "ConsentAcceptedInd": true, "ConsentDesc": "Consent Description", "MandatoryInd": false, "CustomName": "Johnny", "AgreementDate": "2018-05-23 12:29:04", "ActivityDate": "2017-07-02T12:37:11.3665418Z", "Status": "A" }], "Children": [{ "BirthDate": "2019-03-02T00:00:00.000Z" }], "ProfileSubscriptions": [{ "SubscriptionId": "1f6cd97d-9853-4c43-a370-a7e3d87de203", "OptSource": "WEB", "ChannelCode": "EM", "OptStatus": true, "ActivityDate": "2019-09-20T14:47:41.000000Z", "Status": "A", "JsonExternalData": { "ContactPointValue": "success+EHOljqnsNE@simulator.amazonses.com", "EmailOptFlag": "Y" } }], "ProfileActivity": { "ActivityInput": {}, "ActivityType": "REGISTRATION", "Status": "A", "JsonExternalData": { "ActivityDate": "2019-09-20T14:47:41.000000Z", "CountryCode": "POL" } }, "UnmappedAttributes": {}, "UtmAttributes": [] }, "Status": "A" }

Update profile with subscription

HTTP Method

PUT

Endpoint

/profiles/{profileId}/subscriptions

Query param

access_token

Headers

Accept-Language

Brand-Org-Code

Program-Code

Account-Source

Source-Account-Number

Content-Type

[{
"SubscriptionId": "1f6cd97d-9853-4c43-a370-a7e3d87de203",
"ChannelCode": "DM",
"OptStatus": true
}]

Update profile with survey

HTTP Method

PUT

Endpoint

/profiles/{profileId}/survey/{surveyId}

Query param

access_token

Headers

Accept-Language

Brand-Org-Code

Program-Code

Account-Source

Source-Account-Number

Content-Type

Patch profile email

HTTP Method

PATCH

Endpoint

/profiles/patch/{emailId}

Query param TODO

access_token

Headers TODO

Accept-Language

Brand-Org-Code

Program-Code

Account-Source

Source-Account-Number

Content-Type

Environments