O'Reilly logo

eBay Hacks by David A. Karp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Automate Auction Revisions

Simplify the task of revising several auctions at once with the ReviseItem API call.

Once an auction has started, you can normally change most aspects of the listing using the procedure outlined in [Hack #50]. But it’s also possible to submit a revision using the API.

ReviseItem

Let’s start with a simple script, reviseitem.pl, that will let you change any aspect of an active listing:

#!/usr/bin/perl require 'ebay.pl'; my $item_id = shift @ARGV; my %ARGS = @ARGV; my @options = qw/AdditionalShippingCosts AmEx AutoPay BoldTitle BuyItNowPrice CashOnPickupAccepted Category Category2 CCAccepted CheckoutDetailsSpecified CheckoutInstructions COD Counter Description Discover Duration Escrow EscrowBySeller Featured Gallery GalleryFeatured GalleryURL GiftExpressShipping GiftWrap Highlight InsuranceOption InsuranceFee LayoutId Location MinimumBid MoneyXferAccepted MoneyXferAcceptedinCheckout MOCashiers PackageHandlingCosts PaymentOther PaymentOtherOnline PaymentSeeDescription PayPalAccepted PayPalEmailAddress PersonalCheck PhotoCount PhotoDisplayType PictureURL Private Quantity Region ReservePrice SalesTaxPercent SalesTaxState SellerPays ShipFromZipCode ShippingHandlingCosts ShippingInTax ShippingIrregular ShippingOption ShippingPackage ShippingService ShippingType ShipToAfrica ShipToAsia ShipToCaribbean ShipToEurope ShipToLatinAmerica ShipToMiddleEast ShipToNorthAmerica ShipToOceania ShipToSouthAmerica SuperFeatured ThemeId Title VisaMaster WeightMajor WeightMinor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required