Exclude specific ISBNs/UPCs/ASINs from marketplaces

This script will allow you to remove items with specific ISBNs/UPCs/ASINs from being listed on specified marketplaces. The example below will remove 0123456789 from AbeBooks.

var item = FILLZ.ITEM.v1;
if (FILLZ.venue == 'abebooks') {
  var pat = /^0123456789/i;
  if (pat.test(item.asin)) return 0;
}

To prevent multiple items from being listed on a single marketplace, the script can be written like this:

var item = FILLZ.ITEM.v1;
if (FILLZ.venue == 'abebooks') {
  var pat = /^(0123456789|1123456789|2123456789)/i;
  if (pat.test(item.asin)) return 0;
}

To prevent multiple items from being listed on more than one marketplace, the script can be written like this:

var item = FILLZ.ITEM.v1;
if (FILLZ.venue == 'abebooks' || FILLZ.venue == 'amazon') {
  var pat = /^(0123456789|1123456789|2123456789)/i;
  if (pat.test(item.asin)) return 0;
}
Have more questions? Submit a request