vat validator

Validate a South African VAT number

Basic Example

You can click on sample from the following table to see if it's a valid or invalid South African VAT number.

Sample VAT number Is it valid?
4012345678
40123456789
0123456789

Module Example

The following snippet shows how to use the vat validator with JavaScript module:


// You might need to change the importing path
import zaVat from 'formvalidation/validators/vat/zaVat';

const res1 = zaVat().validate('4012345678');
// res1.valid === true

const res2 = zaVat().validate('0123456789');
// res2.valid === false

Related validators

The following validators are similar to this one and might be useful to you.

Name Description
id Validate an identification number
vat Validate VAT number