InventoryUpdate


A service that adds or updates an item in an auction.

WEBSERVICE : http://webservices.vortexauction.com/functions.cfc?wsdl METHOD : InventoryUpdate ARGUMENTS : AUCTIONEER_ID [Numeric] Required | Your auctioneer ID ACCESS_KEY [String] Required | Your web service access key AUCTION_ID [Numeric] Optional | The auction ID of the inventory to update EXTERNAL_AUCTION_ID [String] Optional | The external auction ID of the inventory to update ITEM_ID [Numeric] Optional | The item's ID EXTERNAL_ITEM_ID [String] Required | The item's external ID ACTIVE [Numeric] Required | The item's status (0 or 1) LOT_NUMBER [String] Required | The item's lot number RUN_NUMBER [String] Required | The item's run number ESTIMATE_LOW [Numeric] Required | The item's low estimate value ESTIMATE_HIGH [Numeric] Required | The item's high estimate value QUANTITY [Numeric] Optional | The item's quantity NAME [String] Required | The item's name SUMMARY [String] Required | The item's short description DESCRIPTION [String] Required | The item's long description CATALOG_URL [String] Optional | An url to the item's page PICTURE_URL [String] Optional | An url to the item's picture
NOTE : 1. You must specify an AUCTION_ID or EXTERNAL_AUCTION_ID, if both then only AUCTION_ID will be used. 2. If you specify an ITEM_ID, then this auction will be updated regardless of its previous EXTERNAL_ITEM_ID. 3. If you do not specify an ITEM_ID, then the auction with the specified EXTERNAL_ITEM_ID will be added or updated.
RETURNS : InventoryUpdateResponse ON FAILURE : <?xml version="1.0" encoding="utf-8"?> <InventoryUpdateResponse> <Error> <Code>[Error code]</Code> <Message>[Error message]</Message> </Error> </InventoryUpdateResponse> ON SUCCESS : <?xml version="1.0" encoding="utf-8"?> <InventoryUpdateResponse> <Item> <Item_ID>[ID of the added or updated item]</Item_ID> </Item> </InventoryUpdateResponse>
ERROR CODES : 00 = An unexpected error occured. 01 = Missing or invalid arguments. 02 = Invalid auctioneer ID and/or access key. 03 = Could not find specified auction. 04 = Could not find specified item.
EXAMPLES : COLDFUSION : <cfinvoke webservice="http://webservices.vortexauction.com/functions.cfc?wsdl" method="InventoryUpdate" returnvariable="result"> <cfinvokeargument name="Auctioneer_ID" value="0" /> <cfinvokeargument name="Access_Key" value="..." /> <cfinvokeargument name="Auction_ID" value="0" /> <cfinvokeargument name="External_Auction_ID" value="..." /> <cfinvokeargument name="Item_ID" value="0" /> <cfinvokeargument name="External_Item_ID" value="..." /> <cfinvokeargument name="Active" value="0" /> <cfinvokeargument name="Lot_Number" value="..." /> <cfinvokeargument name="Run_Number" value="..." /> <cfinvokeargument name="Estimate_Low" value="..." /> <cfinvokeargument name="Estimate_High" value="..." /> <cfinvokeargument name="Quantity" value="..." /> <cfinvokeargument name="Name" value="..." /> <cfinvokeargument name="Summary" value="..." /> <cfinvokeargument name="Description" value="..." /> <cfinvokeargument name="Catalog_URL" value="..." /> <cfinvokeargument name="Picture_URL" value="..." /> </cfinvoke> <cfdump var=#result# /> PHP : class InventoryUpdate { function InventoryUpdate($Auctioneer_ID, $Access_Key, $Auction_ID, $External_Auction_ID, $Item_ID, $External_Item_ID, $Active, $Lot_Number, $Run_Number, $Estimate_Low, $Estimate_High, $Quantity, $Name, $Summary, $Description, $Catalog_URL, $Picture_URL) { $this->Auctioneer_ID = $Auctioneer_ID; $this->Access_Key = $Access_Key; $this->Auction_ID = $Auction_ID; $this->External_Auction_ID = $External_Auction_ID; $this->Item_ID = $Item_ID; $this->External_Item_ID = $External_Item_ID; $this->Active = $Active; $this->Lot_Number = $Lot_Number; $this->Run_Number = $Run_Number; $this->Estimate_Low = $Estimate_Low; $this->Estimate_High = $Estimate_High; $this->Quantity = $Quantity; $this->Name = $Name; $this->Summary = $Summary; $this->Description = $Description; $this->Catalog_URL = $Catalog_URL; $this->Picture_URL = $Picture_URL; } } $soapClient = new SoapClient("http://webservices.vortexauction.com/functions.cfc?wsdl"); $params = new InventoryUpdate(0, "...", 0, "...", 0, "...", 0, "...", "...", 0, 0, 0, "...", "...", "...", "...", "..."); $result = $soapClient->InventoryUpdate($params); var_dump($result);
TEST FORM: