The buyback interface appears at the bottom of the shopping
window of each Merchant
. Using this, players can buy back up to the last 12 items they've sold to any NPC as long as they have not left the game.
The buyback price is the same price as the item was sold to the NPC for.