Beat Lowest Price above cost

From MediaSell

Jump to: navigation, search

This script will beat the lowest price using Amazon.com pricing data for SAME OR BETTER CONDITION by $0.01, but will not drop more than 30% under base price and not below cost. It can be run on any marketplace.

(Replace A00000000000 with your Amazon ID.)

myAmzID = "A00000000000";

price = item.basePrice;
discount = 0.01;
priceFloor = 0.01;
maxDiscount = 0.30;
lowPrice = 0;

priceList = getPrices('sameOrBetter'); 
if (priceList) { 
  for (pind=0; pind < priceList.length; pind++) {
    if (priceList[pind].sellerid == myAmzID) continue;
    lowPrice = priceList[pind].price;
    break;
  }
}

if (lowPrice > 0) price = lowPrice - discount;
minPrice = item.basePrice * (1 - maxDiscount);
if (price < minPrice) price = minPrice;
if (item.cost && price < item.cost) price = item.cost;
if (price < priceFloor) price = priceFloor;

return price;


This script will beat the lowest price using Amazon.com pricing data for SAME CONDITION ONLY by $0.01, but will not drop more than 30% under base price and not below cost. It can be run on any marketplace.

(Replace A00000000000 with your Amazon ID.)

myAmzID = "A00000000000";

price = item.basePrice;
discount = 0.01;
priceFloor = 0.01;
maxDiscount = 0.30;
lowPrice = 0;

priceList = getPrices(item.condition); 
if (priceList) { 
  for (pind=0; pind < priceList.length; pind++) {
    if (priceList[pind].sellerid == myAmzID) continue;
    lowPrice = priceList[pind].price;
    break;
  }
}

if (lowPrice > 0) price = lowPrice - discount;
minPrice = item.basePrice * (1 - maxDiscount);
if (price < minPrice) price = minPrice;
if (item.cost && price < item.cost) price = item.cost;
if (price < priceFloor) price = priceFloor;

return price;


This script will beat the lowest price using Amazon.com pricing data for ANY CONDITION by $0.01, but will not drop more than 30% under base price and not below cost. It can be run on any marketplace.

(Replace A00000000000 with your Amazon ID.)

myAmzID = "A00000000000";

price = item.basePrice;
discount = 0.01;
priceFloor = 0.01;
maxDiscount = 0.30;
lowPrice = 0;

priceList = getPrices('all'); 
if (priceList) { 
  for (pind=0; pind < priceList.length; pind++) {
    if (priceList[pind].sellerid == myAmzID) continue;
    lowPrice = priceList[pind].price;
    break;
  }
}

if (lowPrice > 0) price = lowPrice - discount;
minPrice = item.basePrice * (1 - maxDiscount);
if (price < minPrice) price = minPrice;
if (item.cost && price < item.cost) price = item.cost;
if (price < priceFloor) price = priceFloor;

return price;
Personal tools