Find the answer to your question
Advanced Search
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> |
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"--> |
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
- Documentation: Working With Platform Notifications