Skip to main content
Published: June 02 2008, 12:18:00 PMUpdated: August 05 2022, 11:47:43 AM

Set multiple NotificationURL for an application.

Summary

   To specify and use more than one notification URLs for an application, you need to do the following:

   1. Define the additional URL in DeliveryURLDetails container with DeliveryURL, DeliveryURLName and Status properties.

   2. Associate the user notification subscriptions to a DeliveryURLName specified.


 Detailed Description

  • Call SetNotificationPreferences API to set the Application level subscription and define the additional URL in DeliveryURLDetails container with DeliveryURL, DeliveryURLName and Status properties.

 

 <?xml version="1.0" encoding="utf-8"?>
  <SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <Version>1131</Version>
    <RequesterCredentials>
      <eBayAuthToken>xxxxx</eBayAuthToken>
    </RequesterCredentials>
    <ApplicationDeliveryPreferences>
      <ApplicationURL>http://deliveryURL/notificationListener0</ApplicationURL>
      <ApplicationEnable>Enable</ApplicationEnable> 
      <DeliveryURLDetails>
        <DeliveryURL>http://deliveryURL/notificationListener1</DeliveryURL>
        <DeliveryURLName>Selling_User_group</DeliveryURLName>
        <Status>Enable</Status>
      </DeliveryURLDetails> 

     <DeliveryURLDetails>
        <DeliveryURL>http://deliveryURL/notificationListener2</DeliveryURL>
        <DeliveryURLName>UK_Buyer_group</DeliveryURLName>
        <Status>Enable</Status>
      </DeliveryURLDetails>
    </ApplicationDeliveryPreferences>
</SetNotificationPreferencesRequest>

NOTE. You are allowed to modify the DeliveryURLDetails.DeliveryURL and DeliveryURLDetails.Status properties as your convenience, however; once a DeliveryURLDetails is created, you can't change the DeliveryURLName value since it works as a primary key that used  to identify a group of subscribed notification receivers.

  •  Make SetNotificationPreferences call for User level subscription and associate the user notification subscription to a DeliveryURLName defined

 

   <?xml version="1.0" encoding="utf-8"?>
      <SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
            <Version>1131</Version> 
            <RequesterCredentials>
                 <eBayAuthToken>xxxxx</eBayAuthToken>
            </RequesterCredentials>

             <!-- Map this user to the Delivery URL named  "Selling_User_group"-->            
             <!-- You can pass multiple values separated with comma in this field as:  Selling_User_group, UK_Buyer_group  -->
           <DeliveryURLName>Selling_User_group</DeliveryURLName>  
           <UserDeliveryPreferenceArray>
                 <NotificationEnable>
                 <EventType>ItemListed</EventType>
                 <EventEnable>Enable</EventEnable>
            </NotificationEnable>
       </UserDeliveryPreferenceArray>
     </SetNotificationPreferencesRequest>

 

    NOTE. 1. If DeliveryURLName is not presented in SetNotificationPreference request, the user level subscription will be mapped to the default Notification URL specified in ApplicationURL property.

                 2. Please refer to the Knowledge Base article titled  Subscribing to Platform Notifications  for how to support multiple eBay users with your notification listener server.


Additional Resources

 

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