FillZRepricingPriceMatch
From MediaSell
[edit] Match Lowest Price
Script to reprice to lowest price in same or better condition 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;
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;
if (price < priceFloor) price = priceFloor;
return price;
[edit] Match Lowest Price While Ignoring Sellers Below Floor
Script to reprice to lowest price above floor in same or better condition 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;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices('sameOrBetter');
if (priceList) {
for (pind=0; pind < priceList.length; pind++) {
if (priceList[pind].sellerid == myAmzID) continue;
if (priceList[pind].price < priceFloor) continue;
lowPrice = priceList[pind].price;
break;
}
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
[edit] Match Lowest Price Without Dropping
Script to reprice to lowest price in same or better condition with $1.00 price floor, without dropping below the current price:
// 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;
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;
if (price < priceFloor) price = priceFloor;
if (price < item.oldPrice) price = item.oldPrice;
return price;
[edit] Match Lowest Price on AbeBooks
Script to match the lowest price on AbeBooks in same or better condition with $1.00 price floor:
if (marketplace == 'Abebooks') {
price = item.basePrice;
priceFloor = 1.00;
lowPrice = 0;
priceList = getMarketPrices('sameOrBetter');
if (priceList && priceList.length > 0) {
lowPrice = priceList[0].price;
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
}
[edit] Match Lowest Price with 30% Maximum Discount from Base Price and Stay Above Cost
Script to reprice to 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";
price = item.basePrice;
cost = item.cost;
maxDiscount = 0.30;
lowPrice = 0;
minPrice = price * (1 - maxDiscount);
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;
if (price < minPrice) price = minPrice;
if (cost && price < cost) price = cost;
return price;
[edit] Match Lowest Price for Same Condition Only
Script to match lowest price of items in only the exact same condition with price being set to a minimum of $1.00:
// 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;
cond = item.condition;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices('sameOrBetter');
if (priceList) {
for (pind=0; pind < priceList.length; pind++) {
tempCond = priceList[pind].condition;
if (priceList[pind].sellerid == myAmzID) continue;
if (tempCond != cond) continue;
lowPrice = priceList[pind].price;
break;
}
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
[edit] Match Lowest Price Where Seller Rating Greater Than 4
Script to reprice to lowest price only considering sellers with a feedback rating greater than 4, enforcing a $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;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices('sameOrBetter');
if (priceList) {
for (pind=0; pind < priceList.length; pind++) {
if (priceList[pind].sellerid == myAmzID) continue;
if (priceList[pind].sellerrating <= 4) continue;
lowPrice = priceList[pind].price;
break;
}
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
[edit] Match Lowest Price for items in FillZ more than 30 days
Script to only reprice to lowest price with $1.00 price floor for only those items which were added to FillZ more than 30 days ago:
// Replace A00000000000 with your Amazon ID.
// Obtain your Amazon ID by hitting
// "Save and Verify" on Amazon settings page on FillZ.
myAmzID = "A00000000000";
if (!isOlder(item.open_date, 30)) return;
price = item.basePrice;
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;
if (price < priceFloor) price = priceFloor;
return price;
[edit] Match Lowest Price while ignoring certain sellers
Same as the original matching script, but ignore certain sellers:
// Replace Annnnnnnnnnn with the relevant Amazon IDs.
// Ensure that you grab the IDs that start with "A"
ignoreAmzIDs = {
'A111111111111' : 1,
'A222222222222' : 1,
'A333333333333' : 1
};
price = item.basePrice;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices('sameOrBetter');
for (pind=0; pind < priceList.length; pind++) {
if (ignoreAmzIDs[priceList[pind].sellerid]) continue;
lowPrice = priceList[pind].price;
break;
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
[edit] Keep Certain Items at Base Price
This snippet will set items that have "*" (asterisk) in their note to base price. It should be placed at the top of the script:
if (item.note.match(/\*/)) return item.basePrice;

