Why this matters.
If your business is based outside the EU but offers goods or services to people in the EU, or monitors their behaviour, the GDPR applies to you under Article 3(2). Article 27 then requires you to appoint a representative in the EU in writing, unless an exemption applies. This catches many UK, US and Australian online shops, SaaS providers, app developers and freelancers who sell into the EU, and it is separate from having a Data Protection Officer.
The representative acts as a contact point for EU data subjects and supervisory authorities, and must be established in one of the Member States where the people you target are. Failing to appoint one is an infringement of Article 27, which Article 83(4)(a) allows to be fined up to EUR 10 million or 2% of worldwide annual turnover. Because non-EU businesses without an EU establishment cannot use the one-stop-shop, any national data protection authority can act against you directly.