Home
Find the answer to your question
How do I determine buy it now price for a listing?
Detailed Description
A Chinese auction item can be listed with both StartPrice and BuyItNowPrice. Fixed price items (ListingType = 'FixedPriceItem' ) are allowed to be listed with StartPrice even though they are marked as BuyItNow on the eBay Web site. As a result, you can call GetItem API and examine ListingType propery and BuyItNowAvailable property to determine whether to label an itme as .
String listingType = item.getListingType().toString();
if ( listingType.equals("FixedPriceItem") ){
// it's a Fixed price item, and the item in quesion should be labeled as
// here is the price for this item
item.getSellingStatus().getCurrentPrice().getValue();
}else if (listingType.equals("Chinese" ) ){
// it's an auction item, and here is the current bid price for the item
item.getSellingStatus().getCurrentPrice ().getValue();
if ( item.getListingDetails().getBuyItNowAvailable() ) {
// it's a Chinese item that listed with BuyItNowPrice feature
// the item in question should be marked as .
item.getBuyItNowPrice().getValue();
}
}
Additional Resources
Documentation: BuyItNowPrice
Documentation: CurrentPrice