Check provider api version for compatibility, closes #2774