eBay API - findItemsByProduct for Electronic Products by UPC code - ebay-api

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.

Related

Flipkart Product API - How to get top selling product from the category

According to the flipkart product api we can get the top selling products from the category, but I'm not able to get the top selling products. According to the flipkart following is the sample url which return top selling products.
https://affiliate-api.flipkart.net/affiliate/1.0/topFeeds/fnkygygma/category/reh/55ab6c2673a4773ffb8e4019.json?expiresAt=1452881213871&sig=1c4c5111b6b014a71a17b229e6df6afc&inStock=true
I have following queries.
what is reh in the URL?
what is "55ab6c2673a4773ffb8e4019" in the URL is this category name, how I'll get the category name like this for other categories.
As I know "expiresAt" comes from flipkart, how I can generate this myself?
How I can generate "sig"?
it will be really helpful if someone answer for this.
My guess is you would have to query their database for the ID of the category that you want the top products from, and then use it in the URI when requesting the feed.
The documentation doesn't show "reh" in the URI so I'm guessing that sample is for testing purposes.
I found the section that says, "The Product Feed Listing API provides the full list of categories present in the catalogue."
The URI is: https://affiliate.flipkart.com/api-docs/af_prod_ref.html#product-feed-listing-api
You do realize that there is a new version of the API? It's 1.1
The documentation says that you have to request a list of the categories with this URI: https://affiliate-api.flipkart.net/affiliate/api/<trackingId>.json
Insert your ID where it says <trackingId> and it will return a list of the categories along with metaData.
The categories live in the apiListings section of the JSON response.

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 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 AddItem Ebay call returns error 314 'You cannot create Shop Buy It Now item listings' for StoresFixedPrice listing type

I have a problem with adding products through eBay API using AddItem, GTC as duration and StoresFixedPrice as listing type:
<ListingDuration>GTC</ListingDuration>
<ListingType>StoresFixedPrice</ListingType>
In reply I receive error 314:
You cannot create Shop Buy It Now item listings. Only Shop owners can
create Shop Buy It Now listings.
However I am "Basic Shop" owner on eBay.
What could be the reason for that behavior?
It seems that StoresFixedPrice is not longer available as Listing type value
Please do not list item with Listing Type as 'StoresFixedPrice'. This
enumeration value should no longer be used in the Add/Revise/Relist
family of calls.
This value also dont present in list of possible values for listingtype in Call Reference

eBay API change currency of returned price

Is there a way to get an item in another currency using the eBay API?
Very simple. All you have to do is change the site ID parameter. Since you didn't specify a language, I'm going to assume you're doing this HTTP-GET and just parsing the XML. The same principles will apply regardless of how you do it, programatically or not.
For a URL:
"http://open.api.ebay.com/shopping"
?callname=GetSingleItem
&responseencoding=XML
&appid=[APPID]
&siteid=2 <------------This, for example, is Canada's siteid. 0 is US. This will change the currency returned under < ConvertedCurrentPrice>
&version=839
&ItemID=181195344321
Put it all together and you get this copy/paste-friendly "http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=[APPID]&siteid=2&version=839&ItemID=181195344321"
Make sure to use your app ID as the parameter.
You can use this call for currency change:
Currency type can be changed in Ebay while listing an item using Add Item call in Ebay's trading API.
http://developer.ebay.com/devzone/xml/docs/Reference/eBay/extra/additms.rqst.additmrqstcntnr.itm.crrncy.html
Thanks CedCommerce
You can and it's actually very simple. You can use the Shopping API GetSingleItem.
Depending on what currency you are interested in, all you have to do is change the SiteID on which you are making the call. For example, if you want to get the price in EUR, you can set the SiteID to 3(UK), or 77(Germany). You will also have to set the IncludeSelector to "Details". This way, you will get a response that will contain the following fields.
<ConvertedCurrentPrice currencyID="GBP">68.55</ConvertedCurrentPrice>
<CurrentPrice currencyID="USD">92.9</CurrentPrice>
where the CurrentPrice is the original price of the listing, on the ebay site the listing was made, and the ConvertedCurrentPrice is the price of the listing on the site that corresponds to the SiteID you supplied.
You can see a full list of SiteIDs with the currencies they are using here