Need help using createImageFromFile
Summary: gsspezi is attempting to switch to the 'createImageFromFile' method for uploading images but encounters a 404 error when using the provided URI from the eBay documentation. They are seeking advice on the correct URI to use for uploading pictures.
I am trying to switch from UploadSiteHostedPicture to createImageFromFile.
When I call createImageFromFile with the uri https://api.ebay.com/commerce/media/v1_beta/image/create_image_from_file ( as described in the doc https://developer.ebay.com/develop/api/sell/media_api#sell-media_api-image-createimagefromfile) I get a 404 response.
So my question is: what is the correct uri to upload a picture now?
I hope someone will know?
gsspezi
1 comment
developer-support@ebay.com
Hi @gsspezi ,
Thank you for your post!
We would like to inform you that, according to the Media API documentation, the createImageFromFile operation uses the following Production endpoint: https://apim.ebay.com/commerce/media/v1_beta/image/create_image_from_file and the following Sandbox endpoint: https://apim.sandbox.ebay.com/commerce/media/v1_beta/image/create_image_from_file
Please verify that your application is using the documented apim.ebay.com or apim.sandbox.ebay.com endpoint and that the request is being sent as multipart/form-data, as required by the API documentation.
If you continue to receive a 404 response, please file a support ticket at: https://developer.ebay.com/my/support/tickets
and provide the complete request and response payloads so that we can investigate the issue further.
Additionally, please avoid sharing sensitive information in the public forum, as it may contain confidential data and could pose security risks if exposed publicly.
Best Regards,
eBay Developer Support