It's great to see so many of you signed up already and that several of you are already having fun with the Tesco.com Grocery API.
This is an update to let you know that the API works well searching for barcodes so if you are in a mind to recreate the Tesco@Home demo application's ability to take a barcode and search Tesco.com for the product, go right ahead.
You'll need to use the ProductSearch method of the GroceryClient class as well as some some software that yields a numeric barcode number from an image of a barcode. I have updated the API reference to show how to call the API using a typical barcode number.
Just bear in mind:
- The number will only resolve to a product if the customer's home store stocks it (not all Tesco stores are the same size nor have the same range of products).
- The number you resolve from the barcode must be either 8 or 13 numeric characters in length. This depends on the product - most products are 13 characters. The numeric format that the API understands is the 'European Article Number', or EAN.
- The system cannot resolve a Tesco in-store printed barcode. These barcodes are what you see on individually printed labels for pre-packed meats, and products from the delicatessen or fish counters. These are internally generated barcodes with the price embedded inside so a checkout can resolve that price. Every such product is different and the API cannot understand such barcodes at present.
- You won't get the barcode to work with Tesco Direct or other non-food products that you can't buy from the grocery section of the Tesco.com web site.