Skip to content

Unsnooze subscriber

SnoozedSubscribers collection allows unsnoozing a subscriber using the HTTP DELETE method. Unsnooze subscriber restores his subscription.

If the subscriber is already active, an appropriate error message will be returned.

Request data format

Data element children:

ParameterTypeNotes
ListIdintegerIdentifier of list the subscriber will be unsnoozed on. Optional. If not specified, subscription of all lists will be restored.
IdintegerSubscriber’s unique identifier. Optional.*
EmailstringSubscriber’s email. Optional.*
PhonestringSubscriber’s phone number. Optional.*
CustomSubscriberId string Subscriber’s custom ID. Optional.* 
Channel string Channel on which subscriber should be unsnoozed. Optional.** 

* At least one of the following must be specified: Id, Email, Phone, CustomSubscriberId. We look first for Id, then Email, Phone and CustomSubscriberId. If more then one is specified we will check the first element with any value and ignore the others.
** Depending on which element(s) is provided channel will default to different values: Id – All, Email – Email; Phone – SmsMms; CustomSubscriberId – All.

Examples

Request:

DELETE https://api.esv2.com/v2/Api/SnoozedSubscribers HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
Content-Length: 288
Host: api.esv2.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

<ApiRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <ApiKey>test_api_key1</ApiKey>
  <Data>
    <Email>testsnoozed1@test123.com</Email>
    <ListId>101</ListId>
  </Data>
</ApiRequest> 

Response:

HTTP/1.1 200 OK
Cache-Control: private
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 5.1
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 05 Mar 2014 12:33:05 GMT
Content-Length: 0