Module FILLZ.ITEM.v1

Contains the properties of the item being repriced.

Module Summary

Using weight

var item = FILLZ.ITEM.v1;
debug('weight is '+item.weight.kg+' kg');
debug('weight is '+item.weight.lb+' lb');

Using venue_price()

var item = FILLZ.ITEM.v1;
debug('item price on '+FILLZ.venue+' is '+item.venue_price());
debug('item price on AmazonDE is '+item.venue_price('amazonde'));

Using shipping_template(venue)

var item = FILLZ.ITEM.v1;
debug('item shipping template on ' + FILLZ.venue + ' is ' + item.shipping_template());
debug('item shipping template on AmazonDE is ' + item.shipping_template('amazonde'));

Properties

  • asin

    The Amazon Standard Identification Number (ASIN) on Amazon.com, if applicable.

  • author

    If the item is a book, the book's author. Otherwise it is the closest analog to author for the item, like artist for music type items.

    This is from Amazon.com's catalog.

  • base_price

    The base price, or default price, of the item. This is the price of the item that is not specific to any particular venue, and is the price used if there is no venue price set.

    This is provided by user to FillZ.

  • browse_path

    The browse path is the location of item in the category tree.

    This is provided by user to FillZ.

  • condition

    The condition of the item. Values that can appear here are documented for ConditionFilter.

    This is provided by user to FillZ.

  • condition_type

    Returns the condition type of the item, i.e. "new", "used" or "collectible"

  • is_new

    Returns true if the item condition is new.

  • is_used

    Returns true if the item condition is used.

  • is_collectible

    Returns true if the item condition is collectible.

  • cost

    The cost of the item.

    This is provided by user to FillZ.

  • is_catalog

    Returns true if the item is in Amazon's catalog.

  • is_expedited

    This property indicates if the item can be sent using expedited shipping.

    • false -- item can not be sent using expedited shipping
    • true -- item can be sent using expedited shipping

    This is provided by user to FillZ.

  • is_fba

    This property indicates if the item is under control of Fulfillment By Amazon (FBA).

    This is provided by user to FillZ.

  • is_international

    This property indicates if the item can shipped internationally.

    • false -- item can not be shipped internationally
    • true -- item can be shipped internationally

    This is provided by user to FillZ.

  • last_modified

    This property is the Date when the item was modified in FillZ.

  • list_price

    This property is the current list price of the item.

    This is from Amazon.com's catalog. Returns a Number with up to 2 decimal places of precision.

  • location

    The location of the item. This usually refers to the physical location where the item is currently stored.

    This is provided by user to FillZ.

  • manufacturer

    Depending on the type of the item, this can be the publisher (a book), studio (a movie), label (music).

    This is from Amazon.com's catalog.

  • media

    This property describes what sort of media this item is using. If the item is type book, then the media might be hardcover or paperback, for example. If the item is type music, then the media might be cd or vinyl, for example.

    This is from Amazon.com's catalog.

  • note

    The note property is arbitrary descriptive text for the item, that is sent to the venue.

    This is provided by user to FillZ.

  • old_price

    This property is the current price of the item.

    This is provided by user to FillZ.

  • open_date

    This property is the Date when the item was added to FillZ.

  • quantity

    The item's quantity that is currently recorded in FillZ.

    This is provided by user to FillZ, unless the item is in FBA, in which case Amazon controls the quantity.

  • sku

    The Stock Keeping Unit (SKU).

    This is provided by user to FillZ.

  • source

    The source of this item.

    This is provided by user to FillZ.

  • title

    The title of the item.

    This is from Amazon.com's catalog.

  • title1

    The title to override the title from Amazon.com's catalog.

    This is provided by user to FillZ.

  • type

    The type of item, which can be values like:

    • book
    • music
    • video

    This is from Amazon.com's catalog.

  • upc

    The Universal Product Code for the item, if known.

  • weight

    The weight of the item. Returns the weight not including packaging, if available.
    Otherwise, the weight with packaging is returned. The value can be retrieved in various units with these subproperties:

    • kg -- kilograms
    • oz -- ounces
    • lb -- pounds

    This is from Amazon.com's catalog.

  • item_weight

    The weight of the item not including any packaging. The value can be retrieved in various units with these subproperties:

    • kg -- kilograms
    • oz -- ounces
    • lb -- pounds

    This is from Amazon.com's catalog.

  • package_weight

    The weight of the item including packaging. The value can be retrieved in various units with these subproperties:

    • kg -- kilograms
    • oz -- ounces
    • lb -- pounds

    This is from Amazon.com's catalog.

  • year

    The year the item was published.

    This is from Amazon.com's catalog.

Methods

  • venue_price(venue)

    Parameters

    • venue -- Fetch your specific price for venue. Can be omitted to fetch your price for current venue.

    Returns

    • Your price on the current venue if no argument provided, otherwise returns your price for specific venue.

    This is provided by user to FillZ.

  • shipping_template(venue)

    Parameters

    • venue -- Fetch your Amazon shipping template for venue. The venue 'default' can be used to retrieve the item's default shipping template. This field can be omitted to fetch the shipping template for the current venue.

    Returns

    • Your shipping template for the current venue if no argument provided, otherwise returns your shipping template for the specified venue.
    • If no template exists, it will use the item's default shipping template, and if that doesn't exist will return an empty string.

    This is provided by user to Fillz.