ResubscribeContactToAddressBookWithNoChallenge

Resubscribes a previously unsubscribed contact to a specific address book without sending a challenge email

This method immediately resubscribes an unsubscribed contact to a specified address book without sending them an automated resubscription challenge email, and returns their resubscribe status.

Please note that you can include, and thus update, contact data fields when resubscribing a contact to an address book using this method.

The resubscribe status should come back as 'ContactAdded'.

Resubscribe status types can be:

  • 'ContactAdded' - The contact has been successfully resubscribed to the address book
  • 'ContactChallenged' - The contact has been sent an automated double opt-in email, asking them to confirm their opting in. This can occur when a contact is created and the account has a 'Regulatory setting' other than 'Do not enforce double opt-in'.
  • 'ContactCannotBeUnsuppressed' - The contact can't be resubscribed. This may be because the contact is on the Global Suppression List (GSL), or their domain has been suppressed from receiving your campaigns, or the contact was removed because of a complaint from their ISP. You may want to contact support.
  • 'NotAvailableInThisVersion' - This feature is not available in the version of the API you're using

SOAP action: http://apiconnector.com/v2/ApiService/ResubscribeContactToAddressBookWithNoChallenge

📘

Input and output parameters

Input parameters

  • UnsubscribedContact
    • AddressBook ID - required; integer
    • Email - required; string
    • DataFields - optional; array of ContactData
      • ContactData
        • Key - string
        • Value - anyType

Output parameters

  • ResubscribeContactToAddressBookResult
    • Contact
      • SuppressedContact
        • Id - integer
        • Email - string
        • OptInType - string ('Unknown', 'Single', 'Double', 'VerifiedDouble')
        • EmailType - string ('PlainText', 'Html')
        • DataFields - optional; array of ContactData
          • ContactData
            • Key - string
            • Value - anyType
        • Status - string ('Subscribed', 'Unsubscribed', 'SoftBounced', 'HardBounced', 'IspComplained', 'MailBlocked', 'PendingOptIn', 'DirectComplaint', 'Deleted', 'SharedSuppression', 'Suppressed', 'NotAllowed', 'DomainSuppression', 'NoMxRecord')
    • Status - string ('ContactAdded', 'ContactChallenged', 'ContactCannotBeUnsuppressed')

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var unsubscribedContact = new ApiContact { Email = "[email protected]" };
	var addressBookId = 1;
	
	var resubscription = new ApiContactResubscription
	{
	    UnsubscribedContact = unsubscribedContact
	};
	
	var resubscribeResult = client.ResubscribeContactToAddressBookWithNoChallenge(addressBookId, resubscription);
}