で買ったんだ

bought … at

→ で
phrase Uncommon #15,023
bought … at The place or occasion before で tells where or when the purchase happened. んだ adds an explanatory tone.
JA: この傘は駅の売店で買ったんだ。
EN: I bought this umbrella at the station kiosk.

この腕時計、そのお店で買ったんだ。

I bought this watch at that store.

これはオーストラリアで買ったんだ。

I bought this in Australia.

この本は駅の近くの本屋で買ったんだ。

I bought this book at a bookstore near the station.

この本は駅前の本屋で買ったんだよ。

I bought this book at the bookstore by the station.

あのレコードはこの店で買ったんだ。

I bought that record at this shop.

この本は、地下鉄の駅の近くの本屋さんで買ったんだ。

I bought this book at a bookstore near the subway station.

この本は駅前の書店で買ったんだ。

I bought this book at the bookstore in front of the station.