Skip to main content
Published: June 11 2009, 4:32:00 PMUpdated: November 28 2020, 7:37:44 PM

Public alerts work fine, but user alerts won't return any alert. I have subscribed to the events, however GetClientAlterts always returns an empty response:

{"Timestamp":"2009-05-21T23:38:50.273Z","Ack":"Success","Build":"e617__Bundled_8765421_R1","Version":"617","SessionData":"AQAAASFgd5wAAA1TSUQ9MTA4NDQ0NnxTVD0xfDF8TEFDVFY9MTI0Mjk0OTEzMDI3M3xFSFdNPTE2NjQ3MDg1MHxUSURYPTJ8TElVUD0xMjQyOTQ5MDg2NjYzfFBMSFM9W13bYHxMqAuBxBCdMi8b68Hs63lANQ=="}

1. Make sure you are subscribed to the alerts using GetNotificationPreferences.

Sample request to check event subscription

 <?xml version="1.0" encoding="utf-8"?>
<GetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>615</Version>
  <!-- choose either User or Application -->
  <PreferenceLevel>User</PreferenceLevel>
  <RequesterCredentials>
    <eBayAuthToken>Token</eBayAuthToken>
  </RequesterCredentials>
</GetNotificationPreferencesRequest>

Sample response shows that user is subscribed to ItemAddedToWatchList and ItemRemovedFromWatchList

<?xml version="1.0" encoding="utf-8" ?>
- <GetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2009-06-11T22:27:00.356Z</Timestamp>
  <Ack>Success</Ack>
  <Version>619</Version>
  <Build>e619__Bundled_9214082_R1</Build>
- <UserDeliveryPreferenceArray>
- <NotificationEnable>
   <EventType>ItemAddedToWatchList</EventType>
  <EventEnable>Enable</EventEnable>
</NotificationEnable>
- <NotificationEnable>
  <EventType>ItemRemovedFromWatchList</EventType>
  <EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
</GetNotificationPreferencesResponse>

2. Make sure that you have set DeviceType to ClientAlerts by making a call to GetNotificationPreferences. If not specified, this value defaults to Platform. A given eBay application (AppID) can support Client Alerts or Platform Notifications, but not both. 

 <?xml version="1.0" encoding="utf-8"?>
<GetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>615</Version>
  <!-- choose either User or Application -->
  <PreferenceLevel>Application</PreferenceLevel>
  <RequesterCredentials>
    <eBayAuthToken>Token</eBayAuthToken>
  </RequesterCredentials>
</GetNotificationPreferencesRequest>

<?xml version="1.0" encoding="UTF-8" ?> <GetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2009-06-11T22:36:43.554Z</Timestamp>   <Ack>Success</Ack> 
  <Version>619</Version>

  <Build>e619__Bundled_9214082_R1</Build>
- <ApplicationDeliveryPreferences>
  <ApplicationEnable>Enable</ApplicationEnable>
  <AlertEmail>mailto://mymail@domain.com</AlertEmail>
  <AlertEnable>Enable</AlertEnable>
  <NotificationPayloadType>eBLSchemaSOAP</NotificationPayloadType>
  <DeviceType>ClientAlerts</DeviceType>
  <PayloadEncodingType>JSON</PayloadEncodingType>
  <PayloadVersion>547</PayloadVersion>
  </ApplicationDeliveryPreferences>
  </GetNotificationPreferencesResponse>

3. Make sure that you have used the same credententials (AppID-DevID-CertID) to generate the ClientAlertsAuthToken and for setting the notification preferences.

How well did this answer your question?
Answers others found helpful