Can 能 and 可以 be used interchangeably when asking for and giving/denying permission?
Yes,they can.
But, when comes to buying things,
in English,"can I have ..." is a fixed patten to show politeness.
in Chinese,you needn't to translate literally.
We just ask directly:
"我要这个杯子"
“这个杯子多少钱?”
“这个杯子怎么卖?”
hope it helps.