In order to have compliant, VAT exempt, B2B transactions you must include the buyer’s VAT ID on the invoice. B2B sales fall under the reverse-charge mechanism, which means that you as a seller are not liable to pay VAT. Read more about this.

Keep in mind to check the buyer’s VAT ID in the VIES search engine in order to make sure it is a valid VAT ID.