The official website for The Settlers of Catan

Question about General Questions Placed Cards - Can I interchange the expansions within a city?

Answer

You may interchange only the two upper expansions among each other and the two lower ones among each other. You can’t interchange an upper and a lower expansion.