Skip to content

hmrc/reference-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Download

Reference Checker

Library to validate the tax references.

Checkers

The following list of checkers are available. Each checker returns true or false depending if the passed reference is valid.

Self Assessment UTR

SelfAssessmentReferenceChecker.isValid("2234567890K)

Corporation Tax UTR

CorporationTaxReferenceChecker.isValid("2234567890")

VAT reference

VatReferenceChecker.isValid("101747696")

ePAYE reference

This reference checker can be also used to validate P11D (Class 1A National Insurance) references.

EpayeReferenceChecker.isValid("123PW12345678")

SDLT reference

SdltReferenceChecker.isValid("123456789MA")

Other Taxes (ePAYE penalties, ePAYE settlement agreements, CIS penalties, and other references that start with 'X')

OtherTaxReferenceChecker.isValid("XA012345678901")

Installing

Include the following dependency in your SBT build

resolvers += Resolver.bintrayRepo("hmrc", "releases")
 
libraryDependencies += "uk.gov.hmrc" %% "reference-checker" % "x.x.x"

License

This code is open source software licensed under the Apache 2.0 License.

About

Tax Reference Checker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 14

Languages