Find the answer to your question
Advanced Search
Question
Why do some listings/uploads with 3rd party hosted images work fine, while others consistently fail?
Answer
Summary
Best practice for validating URL images to be listed for an item or uploaded to eBay Picture Services (EPS).
Detailed Description
It is not enough to just take a URL and validate it by loading it into a browser, this will more often that not show a valid image. But when trying to use that image through an eBay API call there are potentially copyright issues or permission issues involved. A simple way to check if that URL will work for your listing is to use the API Test Tool. Go to the API Test Tool, make sure are using the sandbox, and make a request using UploadSiteHostedPictures. In order to get a successful response you need to ensure you:
1. Use the API Test Tool correctly
2. Make a proper UploadSiteHostedPictures call.
3. Have a valid image (there are specific rules in the call reference guide for UploadSiteHostedPictures under the "Image Detials" section).
4. Have a valid URL.
If the call fails, and you recieve "<ShortMessage>Input data is invalid.</ShortMessage>", this may indicate an issue with the URL. There are several reasons why it may not be working, and is very difficult to pin point. The only workaround is to include a binary attachment or supply a valid URL.
Additional Resources
- UploadSiteHostedPictures Call Reference page: https://developer.ebay.com/DevZone/XML/docs/Reference/eBay/UploadSiteHostedPictures.html
- API Test Tool: https://developer.ebay.com/my/api_test_tool?index=0&env=production&api=trading&call=UploadSiteHostedPictures&variation=xml
- Picture Requirements: https://developer.ebay.com/DevZone/guides/features-guide/default.html#Development/Pictures-Intro.html