FillZRepricingHelp
From MediaSell
Contents |
[edit] Summary
***This page is under construction***
[edit] Terminology
[edit] Basics: Variables & Operators
The following functions and variables are available in the FillZ pricing scripts:
* marketplace - the current market from this list: Abebooks, Abebooks2, Alibris, Amazon, AmazonCA, AmazonDE, AmazonUK, AmazonFR, AmazonSC, Biblio, BNBQ, Chrislands, Custom1, Custom2, Custom3, EBay, Gemm, Half, TextbookX, Valore . Capitalization is important.
* return price; - store the price you want to set for the market using this function
* return; - leave current price unchanged
* isOlder(item.open_date, 5) - check if item was created more than 5 days ago
* item - the current item. This object has the following data elements:
o item.basePrice - the base price.
o item.sku - the SKU.
o item.condition - the numeric item condition - see getPrices.
o item.title - the title.
o item.quantity - the quantity available in your inventory.
o item.manufacturer - the publisher.
o item.itemType - the type of item - book, DVD, etc.
o item.cost - the cost entered by you.
o item.location - the location.
o item.lastModified - when the item was last modified.
o item.isExpedited - whether you specified expedited shipping available.
o item.isInternational - whether you specified int'l shipping available.
o item.standing - the standing of the item.
o item.asin - the ASIN of the item.
o item.upc - the UPC of the item - can be undefined.
o item.note - the item description.
o item.source - the item source field.
* getRank() - the sales rank of the current item. Can be undefined.
* getAmazonPrice() - the new sales price direct from amazon.com. zero if not available from amazon.com
* debug - this variable is true if the debug checkbox is checked.
* alert(string) - prints a string on the results page.
* getPrices(condition) get the market prices for a condition type. Condition can be a number - use the following range: 11 - new, 1 - like new, 2 - very good, 3 - good, 4 - acceptable. The result can be an empty array, so check the length.
The getPrices() function returns an array of objects. Each object has the following attributes: price - offer price, sellerrating the rating of the seller making the offer (0-5), sellerid - the ID of the seller making the offer.
[edit] Intermediate: Functions & Variable Interaction
[edit] Advanced: Build filters using Regular Expressions, etc.
[edit] Other Information
[edit] Amazon Pricing Results
- Amazon provides pricing data to third-party services in "pages"; we only receive a limited number of each condition type.
- Each page of results from Amazon contains 4 Used results, 3 New results and 3 Collectible.
- FillZ receives three pages of data: we are able to provide a maximum of 12 Used, 9 New and 9 Collectible, for a maximum of 30 total results.
[edit] Amazon Conditions
| Code | Condition Text |
|---|---|
| 11 | New |
| 1 | Used; Like New |
| 2 | Used; Very Good |
| 3 | Used; Good |
| 4 | Used; Acceptable |
| 5 | Collectible; Like New |
| 6 | Collectible; Very Good |
| 7 | Collectible; Good |
| 8 | Collectible; Acceptable |
| 9 | Used; Refurbished |
| 10 | Refurbished |

