Resubscribes a previously unsubscribed contact without sending a challenge email
This method immediately resubscribes an unsubscribed contact 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 using this method.
Resubscribe status types can be:
- 'ContactAdded' - The contact has been successfully resubscribed to the account
- '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/ResubscribeContactWithNoChallenge
Input and output parameters
Input parameters
- UnsubscribedContact
- Email - required; string
- DataFields - optional; array of ContactData
- ContactData
- Key - string
- Value - anyType
Output parameters
- ResubscribeContactResult
- 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 resubscription = new ApiContactResubscription
{
UnsubscribedContact = unsubscribedContact,
};
var resubscribeResult = client.ResubscribeContactWithNoChallenge(resubscription);
}