POST api/customer/UpdateMarketingPreferences
Updates the marketing preferences for the given contact or account
Request Information
URI Parameters
None.
Body Parameters
MarketingPreferencesModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId |
Unique identifier of the contact to update the preferences for |
integer |
None. |
| accountCode |
Parent or child account code linked to the contact to update the preferences for |
string |
None. |
| InternalUse |
Marketing preference flag for internal use |
boolean |
None. |
| InternalMarketing |
Marketing preference flag for internal marketing |
boolean |
None. |
| ThirdPartyMarketing |
Marketing preference flag for third party marketing |
boolean |
None. |
| ImportantInformation |
Marketing preference flag for important information |
boolean |
None. |
| Newsletter |
Marketing preference flag for newsletter |
boolean |
None. |
| EventInfo |
Marketing preference flag for event info |
boolean |
None. |
| Insurance |
Marketing preference flag for insurance |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"contactId": 1,
"accountCode": "sample string 1",
"internalUse": true,
"internalMarketing": true,
"thirdPartyMarketing": true,
"importantInformation": true,
"newsletter": true,
"eventInfo": true,
"insurance": true
}
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="accountCode" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="InternalUse" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="InternalMarketing" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ThirdPartyMarketing" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ImportantInformation" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Newsletter" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="EventInfo" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Insurance" True --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--