This should be easy to do in your software. You can set up a trigger word (usually "STOP") that customers can send you via WhatsApp to be automatically opted out. This is a GDPR requirement, so it's important that this is set up right to avoid fines – and unhappy customers.