eBay API call not working for EBAY-ES (Spain) Global ID - ebay-api

I am trying to fetch a book details from www.ebay.es by EAN number. But its always showing "Invalid product ID value.". (My-App-ID needs to be changed)
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByProduct&GLOBAL-ID=EBAY-ES&SECURITY-APPNAME=My-APP-ID&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD&productId.#type=ISBN&productId=9781408880715
But I can search the same EAN from spanish site of ebay. It means the EAN number is Valid. Here is the link -
http://www.ebay.es/itm/Fantastic-Beasts-y-donde-to-Find-Les-de-J-K-Rowling-/361919661849?hash=item544417c719:g:jpEAAOSwSlBYuUzL
And I can fetch the data from UK site easily by changing the Global-ID. Here is the link (My-App-ID needs to be changed)-
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByProduct&GLOBAL-ID=EBAY-GB&SECURITY-APPNAME=My-APP-ID&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD&productId.#type=ISBN&productId=9781408880715
Where I am doing Wrong? Please advise. Thanks in advance.

Related

Why the eBay FindingService response 'Invalid product ID value', but product with such EAN really exists?

I try to search some product details by eBay API, I meet a problem.
For some EAN, the product really exist in eBay' page, for example, a movie:
http://www.ebay.com/itm/The-Shawshank-Redemption-DVD-NEW-/281073136687?hash=item417143b42f:g:Kd0AAOSwq5lTq3wI
[By the Way, I got the movie's ebay page by google "site:ebay.com 9325336105405"]
When I use the eBay API to find the product
(e.g. click: http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByProduct&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=Your_App_ID_Goes_Here&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&globalId=EBAY-AU&productId.#type=EAN&productId=9325336105405)
I got such xml response:
<findItemsByProductResponse xmlns="http://www.ebay.com/marketplace/search/v1/services">
<ack>Failure</ack>
<errorMessage>
<error>
<errorId>41</errorId>
<domain>Marketplace</domain>
<severity>Error</severity>
<category>Request</category>
<message>Invalid product ID value.</message>
<subdomain>Search</subdomain>
<parameter>9325336105405</parameter>
</error>
</errorMessage>
<version>1.13.0</version>
<timestamp>2016-03-12T08:10:35.039Z</timestamp>
</findItemsByProductResponse>
And when I type the EAN in the seachbox of eBay website, eBay says:
This listing (9325336105405) has been removed, or this item is not available.
Please check that you've entered the correct item number
Listings that have ended 90 or more days ago will not be available for viewing.
I am sure this is a correct EAN, and this product have not been ended, It still has a button 'Buy it now'.
Since the EAN starts with '932' meas that is a Australia product, so I try to search it on www.ebay.com.au, and get the same response.
Why the eBay API treat such EAN as invalid?
How could I fetch the details of this EAN by eBay API?
Thanks a looooooot!!!
Use the findItemsAdvanced call, and put the EAN in keywords and you will get a good response.
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=<Your AppID>&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&globalId=EBAY-US&keywords=9325336105405
Similar Issue Here

eBay API limit findItemsByProduct to Regional Site

Im trying to use the Ebay API in order to find items by ISBN or UPC.
Using the findItemsByProduct API
Using the following URL (Replacing MY_APP_ID with a real one), I can get a list of items that match the UPC of Inception 883929106646
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByProduct&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=MY_APP_ID&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&productId.#type=UPC&productId=883929106646&paginationInput.entriesPerPage=3
However, I want to limit this to Ebay UK items only.
The documentation says that you should pass GLOBAL-ID=EBAY-GB in the URL but then I get the following error (with no other changes to the URL):
<findItemsByProductResponse xmlns="http://www.ebay.com/marketplace/search/v1/services">
<ack>Failure</ack>
<errorMessage>
<error>
<errorId>41</errorId>
<domain>Marketplace</domain>
<severity>Error</severity>
<category>Request</category>
<message>Invalid product ID value.</message>
<subdomain>Search</subdomain>
<parameter>883929106646</parameter>
</error>
</errorMessage>
<version>1.13.0</version>
<timestamp>2016-02-12T10:07:44.800Z</timestamp>
</findItemsByProductResponse>
How can I limit this product search to Ebay UK?
The particular SKU you're looking for isn't available in the UK store.

eBay SDK AddItem new ProductDetails EAN Requirements CANNOT List Or Revise

I've asked this question on an eBay forum already, but you have been very helpful, so probably worth posting here too.
Over the past few days I have realised that for many categories in which I sell, EANs are becoming required. I have been trying to update my eBay integration to take this into account, but have run into problems.
The additions to my code provide a workflow, and have problems as follows:
I sell musical instruments and accessories, so let's take a typical example a product "Boss CS-3 Compression Pedal", here's a link to a seller listing it: http://www.ebay.co.uk/itm/231547986565
The EAN is 4957054012854
I want to list this in "Musical Instruments > Guitars & Basses > Accessories > Effects Pedals" Category ID for this is: 41410
So, as I understand it, the first thing I need to know is whether EAN is a requirement for this Category. So, using the eBay .NET SDK I run a post to GetCategoryFeatures requesting the following feature IDs:
BrandMPNIdentifierEnabled,
EANEnabled,
UPCEnabled,
ISBNIdentifierEnabled
The response gives me, amongst other things:
EANEnabled: Required,
ISBNEnabled: Disabled,
UPCEnabled: Disabled,
BrandMPNIdentifierEnabled: False
This indicates to me that the EAN is a required ProductDetails value to include in the AddItem post.
So now I need to know if the EAN for this item exists in the eBay Catalogue, so I do a post to findItemsByProduct in the FindingService. I post to this URL:
http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=[MY-APP-ID]&OPERATION-NAME=findItemsByProduct&GLOBAL-ID=EBAY-GB&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD&productId.#type=EAN&productId=4957054012854&paginationInput.entriesPerPage=1
The responses ack field is "Failure", which, from what I have gleaned from various internet posts tells me that the item is not found in the eBay Catalogue. Why? I don't know, as the listing example I give above shows the EAN in the Item Specifics fields... but anyway...
So, armed with this information, I can find only the advice that I should replaced the EAN value with a value returned from a post to GeteBayDetails, the value being found as ProductIdentifierUnavailableText which, in my instance (for eBay UK) reads "Does not apply".
Now, I build my item as usual and add the ProductDetails value as follows (in VB.net):
Dim ProductDetails As New ProductListingDetailsType With {
.EAN = "Does not apply"
}
I also note the requirement for an MPN and add that (it returned an error if not provided)
When I list it, I get a Failure response with the following error:
No product found for ProductListingDetails.<EAN> <Does not apply>.
If I take away the ProductDetails I get:
Required field, EAN, is missing. Please add EAN to the listing and retry, so clearly, I do need to provide this information.
I get exactly the same problem trying to revise a listing.
I have tried adding the EAN in the ItemSpecifics object instead of ProductDetails, but that returns the "EAN Missing" error, and have tried alternating between including one, or the other, or both.
So my questions are:
1: Can someone please explain to me what I am doing wrong and how I go about rectifying it, because at the moment I cannot list, or revise items on eBay at all!
2: Since most of my suppliers provide a UPC, not an EAN, am I to take it literally that the idetifier to be provided MUST be an EAN? Or can I provide the UPC field instead?
Hope this saves someone some time on the addItem and reviseItem call (it took me a while to work out)
I managed to make it work using
<ProductListingDetails>
<EAN>Does not apply</EAN>
</ProductListingDetails>
You can add following into your XML
<VariationProductListingDetails>
<EAN>$EAN</EAN>
</VariationProductListingDetails>

Ebay Trading API discountPriceInfo.OriginalPrice doesn't show

I want to show the originalPrice over my Price in my ebay auction.
I see that a lot of sellers do it so it is possible.
I add the follow code to my AddItem Request:
<DiscountPriceInfo>
<OriginalRetailPrice currencyID="EUR">100.00</OriginalRetailPrice>
</DiscountPriceInfo>
The Api Return Success but the Original price isn't show!
Sounds like you're talking about Strike-Through Pricing (STP), correct?
According to the eBay docs here, this is only valid for US, UK, and DE -- and the seller may need special approval by eBay to use STP.

eBay API - findItemsByProduct for Electronic Products by UPC code

I don't know why, but I cannot login to eBay developer forum so that I am here to post a question about eBay API.
I am trying to look up a product by using UPC code with findItemsByProduct resource.
According to the official website (http://developer.ebay.com/DevZone/finding/CallRef/findItemsByProduct.html),
UPC—The UPC value for products in Music (e.g., CDs), DVD and Movie,
and Video Game categories (or domains). If you know a product's UPC
number, you can use this value instead of the eBay Reference ID to
search for that product.
Does this mean that we cannot look up Electronic products (e.g. laptop), using UPC code?
Actually, I have never seen yet any electronic products I could retrieve with UPC lookup.
Regards
As long as a seller has entered a UPC when the item was listed it should be possible to find it via the API. However, entering a UPC is not supported by all categories. To determine if a category supports UPC you can call GetCategoryFeatures and check that the UPCIdentifierEnabled field is true.
Since calling GetCategoryFeatues on the US site (ID 0) for the category Computers/Tablets & Networking > Laptops & Netbooks > PC Laptops & Netbooks (ID 177) returns true in the UPCIdentifierEnabled field you should be able to search for laptops via UPC.
Beware that UPC is not used in all countries. For example European countries use EAN (European Article Number) instead. If you are searching on those sites you will need to check the value of the EANIdentifierEnabled field when calling GetCategoryFeatures.