FillZRepricingPriceBeat

From MediaSell

Jump to: navigation, search

Contents

[edit] Beat Lowest Price

Script to beat lowest price by a penny with $1.00 price floor:

// Replace A00000000000 with your Amazon ID.
// Obtain your Amazon ID by hitting 
// "Save and Verify" on Amazon settings page on FillZ.
myAmzID = "A00000000000";
price = item.basePrice; discount = 0.01; priceFloor = 1.00; 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; if (price < priceFloor) price = priceFloor;
return price;

[edit] Beat Lowest Price by Percentage

Script to beat lowest price by 5% with $1.00 price floor:

// Replace A00000000000 with your Amazon ID.
// Obtain your Amazon ID by hitting 
// "Save and Verify" on Amazon settings page on FillZ.
myAmzID = "A00000000000";
price = item.basePrice; discountRate = 0.05; priceFloor = 1.00; 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 * (1 - discountRate); if (price < priceFloor) price = priceFloor;
return price;

[edit] Beat Lowest Price but Remain Above Cost

Script to beat lowest price in same or better condition, but not more than 30% under base price and not below cost:

// Replace A00000000000 with your Amazon ID.
// Obtain your Amazon ID by hitting 
// "Save and Verify" on Amazon settings page on FillZ.

myAmzID = "A00000000000";
maxDiscount = 0.30; prices = getPrices( 'sameOrBetter' ); if( !prices || prices.length == 0 ) return; price = 0; for( pind = 0; pind < prices.length; pind++ ) { if (prices[pind].sellerid == myAmzID) continue; price = prices[pind].price; break; } if( !price ) return; price -= 0.01; minPrice = item.basePrice * (1-maxDiscount); if( price < minPrice ) price = minPrice; if( item.cost && price < item.cost ) price = item.cost; if( price < 0.01 ) price = 0.01; return price;

[edit] Beat Lowest Price on AmazonUK

Script to beat the lowest price on Amazon.co.uk by 0.01 in same or better condition with $0.49 price floor:

// Replace A00000000000 with your Amazon ID.
// Obtain your Amazon ID by hitting 
// "Save and Verify" on Amazon settings page on FillZ.

myAmzUKID = "A00000000000";
if (marketplace == 'AmazonUK') { price = item.basePrice; priceFloor = 0.49; discount = 0.01;
lowPrice = 0;
priceList = getMarketPrices('sameOrBetter'); if (priceList) { for (pind=0; pind < priceList.length; pind++) { if (priceList[pind].sellerid == myAmzUKID) continue; lowPrice = priceList[pind].price; break; } }
if (lowPrice > 0) price = lowPrice - discount; if (price < priceFloor) price = priceFloor;
return price; }
Personal tools