You can prevent a contact from sending you messages or calling you via WhatsApp by adding their phone number to your Blocked list. To learn more about the effects of blocking a contact, see this article.
On iPhone, there are a few ways to block a contact:


To unblock a contact, open the Blocked list with the above steps, slide your finger to the left on the contact you wish to unblock, then tap the Unblock button.
Learn how to block or unblock a contact on: Android | Windows Phone | Nokia S40 | BlackBerry | Nokia S60 | BlackBerry 10
Cheers,
WhatsApp Support Team