Error: Code 37: Input data for tag <ApplicationDeliveryPreferences.AlertEmail> is invalid or missing
Find the answer to your question
Please enter a search keyword.
Advanced Search
Products
Answer
If you are receiving this error message from your SetNotificationPreferences call, it is likely because you are specifying the AlertEmail incorrectly. The Alert Email needs to have a mailto in front of it, in the form mailto://youremailaddress@yoursite.com.
An example of a valid request is :
<?xml version="1.0" encoding="utf-8"?>
<SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>x</eBayAuthToken>
</RequesterCredentials>
<ApplicationDeliveryPreferences>
<AlertEmail>mailto://youremailaddress@yoursite.com</AlertEmail>
<AlertEnable>Enable</AlertEnable>
<ApplicationEnable>Enable</ApplicationEnable>
<ApplicationURL>http://yourlistener.com/</ApplicationURL>
</ApplicationDeliveryPreferences>
</SetNotificationPreferencesRequest>
Please note that the AlertEmail and AlertEnable are optional tags, and do not need to be specified.
Additional Keywords:
SetNotificationPreferences
Notifications
Subscribe
An example of a valid request is :
<?xml version="1.0" encoding="utf-8"?>
<SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>x</eBayAuthToken>
</RequesterCredentials>
<ApplicationDeliveryPreferences>
<AlertEmail>mailto://youremailaddress@yoursite.com</AlertEmail>
<AlertEnable>Enable</AlertEnable>
<ApplicationEnable>Enable</ApplicationEnable>
<ApplicationURL>http://yourlistener.com/</ApplicationURL>
</ApplicationDeliveryPreferences>
</SetNotificationPreferencesRequest>
Please note that the AlertEmail and AlertEnable are optional tags, and do not need to be specified.
Additional Keywords:
SetNotificationPreferences
Notifications
Subscribe