Library to validate the tax references.
The following list of checkers are available. Each checker returns true
or false
depending if the passed reference is valid.
SelfAssessmentReferenceChecker.isValid("2234567890K)
CorporationTaxReferenceChecker.isValid("2234567890")
VatReferenceChecker.isValid("101747696")
This reference checker can be also used to validate P11D (Class 1A National Insurance) references.
EpayeReferenceChecker.isValid("123PW12345678")
SdltReferenceChecker.isValid("123456789MA")
Other Taxes (ePAYE penalties, ePAYE settlement agreements, CIS penalties, and other references that start with 'X')
OtherTaxReferenceChecker.isValid("XA012345678901")
Include the following dependency in your SBT build
resolvers += Resolver.bintrayRepo("hmrc", "releases")
libraryDependencies += "uk.gov.hmrc" %% "reference-checker" % "x.x.x"
This code is open source software licensed under the Apache 2.0 License.