[sblock=Buying a Magic Item]
Resources. Finding magic items to purchase requires at least one workweek of effort and 100 gp in expenses. Spending more time and money increases your chance of finding a high-quality item.
Resolution. A character seeking to buy a magic item makes a Charisma (Persuasion) check to determine the quality of the seller found. The character gains a +1 bonus on the check for every workweek beyond the first that is spent seeking a seller and a +1 bonus for every additional 100 gp spent on the search, up to a maximum bonus of +10. The monetary cost includes a wealthy lifestyle, for a buyer must impress potential business partners.
As shown on the Buying Magic Items table, the total of the check dictates which table in the Dungeon Master’s Guide to roll on to determine which items are on the market. Or you can roll for items from any table associated with a lower total on the Buying Magic Items table. (...)
Using the Magic Item Price table, you then assign prices to the available items, based on their rarity. Halve the price of any consumable item, such as a potion or a scroll, when using the table to determine an asking price. (...)
Buying Magic Items
Check Total | Items Acquired
1–5 Roll 1d6 times on Magic Item Table A.
6–10 Roll 1d4 times on Magic Item Table B.
11–15 Roll 1d4 times on Magic Item Table C.
16–20 Roll 1d4 times on Magic Item Table D.
21–25 Roll 1d4 times on Magic Item Table E.
26–30 Roll 1d4 times on Magic Item Table F.
31–35 Roll 1d4 times on Magic Item Table G.
36–40 Roll 1d4 times on Magic Item Table H.
41+ Roll 1d4 times on Magic Item Table I.
Magic Item Price
Rarity | Asking Price*
Common (1d6 + 1) × 10 gp
Uncommon 1d6 × 100 gp
Rare 2d10 × 1,000 gp
Very rare (1d4 + 1) × 10,000 gp
Legendary 2d6 × 25,000 gp
*Halved for a consumable item like a potion or scroll[/sblock]