<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ACancelAuction</id>
	<title>API:CancelAuction - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ACancelAuction"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CancelAuction&amp;action=history"/>
	<updated>2026-10-18T04:54:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:CancelAuction&amp;diff=30211&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CancelAuction&amp;diff=30211&amp;oldid=prev"/>
		<updated>2026-10-16T19:41:00Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Auction}}&lt;br /&gt;
Asks the server to cancel one of the player&amp;#039;s own auction listings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CancelAuction(auctionIdHigh, auctionIdLow, revision)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;auctionIdHigh : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – High part of the auction id (&amp;lt;code&amp;gt;auctionIDHigherNum&amp;lt;/code&amp;gt; in the stock search results).&lt;br /&gt;
;auctionIdLow : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Low part of the auction id (&amp;lt;code&amp;gt;auctionIDLowerNum&amp;lt;/code&amp;gt;).&lt;br /&gt;
;revision : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Revision number of the listing (&amp;lt;code&amp;gt;revision&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Sends the same request as [[API:BuyAuction|BuyAuction]], with a price of 0 and the cancel marker set.&lt;br /&gt;
* There is no confirmation in the client. The stock UI shows a Yes/No dialog first.&lt;br /&gt;
* Whether the cancel is allowed is decided by the server.&lt;br /&gt;
* The function needs at least three arguments and only reads the last three.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when an argument is not a number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The Yes callback of the stock cancel dialog, from &amp;lt;code&amp;gt;default/ea_auctionhousewindow/source/auctionwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function AuctionWindow.CancelPressConfirmed()&lt;br /&gt;
    local windowData = AuctionWindowListDataManager.GetCurrentWindowData()&lt;br /&gt;
    local auctionData = windowData.searchResultsData[windowData.currentlySelectedRow]&lt;br /&gt;
&lt;br /&gt;
    if( auctionData == nil )&lt;br /&gt;
    then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    CancelAuction( auctionData.auctionIDHigherNum, auctionData.auctionIDLowerNum, auctionData.revision )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:BuyAuction|BuyAuction]]&lt;br /&gt;
* [[API:CreateAuction|CreateAuction]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>