question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ asked ·

Multiple URLs setting in SetNotificationPreferences Call

We are facing a problem with enabling multiple URLs  to receive the notifications from eBay.  We have set 2 URLs   and we could able to receive please see the below XML

 

<?xml version="1.0" encoding="utf-8"?>
  <SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <Version>743</Version>
    <RequesterCredentials>      <eBayAuthToken>token</eBayAuthToken>
    </RequesterCredentials>
    <ApplicationDeliveryPreferences>
      <ApplicationURL>deliveryurl1</ApplicationURL>
      <ApplicationEnable>Enable</ApplicationEnable>
      <DeliveryURLDetails>
        <DeliveryURL>deliveryurl2</DeliveryURL>
        <DeliveryURLName>test_user_group</DeliveryURLName>
        <Status>Enable</Status>
      </DeliveryURLDetails>
    </ApplicationDeliveryPreferences>
</SetNotificationPreferencesRequest>

 

 

 

Here we are able to receive the notifications for the deliveryurl2 but not for the deliveryurl1. The notifications preferences which have set are as below

 

 

<?xml version="1.0" encoding="utf-8"?>

      <SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
            <Version>743</Version>
            <RequesterCredentials>    <eBayAuthToken>token</eBayAuthToken>
            </RequesterCredentials>

          <ApplicationDeliveryPreferences>
      <ApplicationURL>deliveryurl1</ApplicationURL>
      <ApplicationEnable>Enable</ApplicationEnable>

  </ApplicationDeliveryPreferences>
           <DeliveryURLName>test_user_group</DeliveryURLName>  
           <UserDeliveryPreferenceArray>
<NotificationEnable><EventType>BidReceived</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
     </SetNotificationPreferencesRequest>

 

One more problem which we are facing that if n number of tokens are tied up with one keyset and if we use one of the token to set the preferences all others are being effected.  How to set only one token preferences without effecting others which are generated by the same keyset? Please let us know if anyone have an idea on this.

 

 

Thanks in advance.

 

 

 

 

 

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
developer-support@ebay.com avatar image
0 Likes"
developer-support@ebay.com answered ·

Hi Srini,

On the second call, you are missing the DeliveryURLDetails container.

As for the question regarding the preferences which are being set effecting all tokens, this is due to the ApplicationDeliveryPreferences.  Specifies application-level event preferences that have been enabled, including the URL to which notifications should be delivered and whether notifications should be enabled or disabled (although the UserDeliveryPreferenceArray input property specifies specific notification subscriptions).  This means that all changes to any fields within this container effects all users that have a token with this application.

Only changes to fields within the UserDeliveryPreferences will not effect other users that have a token with this application.

Thanks,

eBay Developer Support

 

 

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.