Adding the input parameter to POST /contacts API method.  Allows the system developer to specify which campaign the contact is unsubscribing from.


  <options>
    <subscribe-list-ids>21,23,44</subscribe-list-ids>
    <unsubscribe-list-ids>23,44,55</unsubscribe-list-ids>
    <unsubscribe-workflow-ids>3443,43434</unsubscribe-workflow-ids>
    <unsubscribe-campaign>9261</unsubscribe-campaign>
  </options>


Rules:

  1. If Campaign ID is for a Priority Send, A|B Campaign, Recurring Campaign
    • If a campaign is targeted to list(s), then unsubscribe the contact from the lists.
    • If a campaign is targeted to a segment that includes "In List" segment rule, then unsubscribe the contact from the list
  2. If Campaign ID is for Journey Campaign
    • Unsubscribe the contact from the Journey
  3. If Campaign ID is for non-branded Transactional Campaign
    • Add the contact to the General Do Not Mail list
    • NOTE:  automatically will unsubscribe the contact from all subscribed lists, and journeys that it's active (or paused) within
  4. If Campaign ID is for branded Transactional Campaign
    • Add the contact to the Brand Do Not Mail list -- for that specific Brand
    • NOTE:  automatically will unsubscribe the contact from all subscribed lists of that same brand