WoW API < PickupMerchantItem

Places the specified merchant item on the cursor.


Interesting thing is this function can be used to drop an item to the merchant as well. This will happen if the cursor already holds an item from player's bag:

PickupContainerItem(bag, slot)

As of patch 2.3 using this function to sell stacks of items does not work, instead it fails silently. Selling unstacked items work, so unstacking and selling items one by one is an alternative.

Blizzard is aware of this issue:



Number - The index of the item in the merchant's inventory.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.