It is pretty similar in all free countries, yes. From Australia:
However although transactions are to be in Australian currency unless otherwise agreed or specified, and Australian currency has legal tender status, Australian banknotes and coins do not necessarily have to be used in transactions and refusal to accept payment in legal tender banknotes and coins is not unlawful.
It appears that a provider of goods or services is at liberty to set the commercial terms upon which payment will take place before the 'contract' for supply of the goods or services is entered into. For example, some vending machines, parking meters and road toll collection points indicate by signs that they will not accept low denomination coins. Some road toll collection points indicate that they will not accept any cash at all. If a provider of goods or services specifies other means of payment prior to the contract, then there is usually no obligation for legal tender to be accepted as payment.
The Reserve Bank of Australia understands that this is the case even where an existing debt is involved. However, refusal to accept legal tender in payment of an existing debt, where no other means of payment/settlement has been specified in advance, conceivably could have consequences in legal proceedings; for example, the creditor may be unable to enforce payment in any other form.