Article 5 of the GDPR sets the rules every processing operation must follow. Data must be:
Lawful, fair and transparent: the person must know what is done with it.
Purpose limitation: collected for specific purposes and not later used for something incompatible.
Data minimisation: only what is needed for that purpose.
Accurate and, where necessary, kept up to date.
Storage limitation: kept no longer than necessary.
Integrity and confidentiality: protected against unauthorised access, loss or destruction.
Accountability
The controller must not only comply but also be able to demonstrate compliance (article 5.2).
In practiceThe phone number a customer left so you could tell them their order had arrived
cannot be added to a WhatsApp offers list: that is a different purpose.