Home
Find the answer to your question
Why are my notification events getting disabled even though I the SetNotificationPreferences call returns a success when I enable them?
Why are my notification events getting disabled even though I the SetNotificationPreferences call returns a success when I enable them?
Summary
In the request, if you use an incorrect tag instead of EventEnable,
it will not get recognized and will set the default value of Disable for each of
the EventTypes that you send in the SetNotificationPreferences call.
When you make a call to GetNotificationPreferences:
<?xml version="1.0"
encoding="utf-8"?>
<GetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<Version>479</Version>
<PreferenceLevel>User</PreferenceLevel>
<RequesterCredentials>
<eBayAuthToken>*****</eBayAuthToken>
</RequesterCredentials>
</GetNotificationPreferencesRequest>
This is what you will see in the response:
<?xml version="1.0"
encoding="utf-8"?>
<GetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2006-09-27T17:56:56.033Z</Timestamp>
<Ack>Success</Ack>
<Version>479</Version>
<Build>e479_core_Bundled_3587531_R1</Build>
<UserDeliveryPreferenceArray>
<NotificationEnable>
<EventType>EndOfAuction</EventType>
<EventEnable>Disable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
</GetNotificationPreferencesResponse>
If the SetNotificationPreferences call is made with the correct tag, the event will be enabled and you will see the EventEnable tag returned as Enable in the GetNotificationPreferences rseponse.
Version Info
The code example above was based on the versions specified below:
API Schema Version | 479 |