Validation Attributes - gotmoby/moby-api-documentation GitHub Wiki

Before validating a license you will want to set the attributes to use for validation and storage. Here is the list of the most popular and most readable attributes on a document, along with their internal numerical codes which will be what you see when running the configuration routes.

Recommended License Attributes

  • strDateofExpiry -> 3
  • strDateofIssue -> 4
  • strDateofBirth -> 5
  • strGivenNames -> 9
  • strSex -> 12
  • strEyesColor -> 15
  • strDLClass -> 20
  • strAddressCity -> 17
  • strAddressJurisdictionCode -> 78
  • strAddressPostalCode -> 79
  • strAge -> 185
  • strReferenceNumber -> 193
  • strRemainderTerm -> 364

License Attributes

  • strDocumentNumber -> 2
  • strSurname -> 8
  • strFamilyNameTruncation -> 272
  • strGivenNames -> 9
  • strFirstNameTruncation -> 273
  • strMiddleNameTruncation -> 274
  • strDLClass -> 265
  • strDLRestrictionCode -> 22
  • strDateofIssue -> 4
  • strDateofBirth -> 5
  • strDateofExpiry -> 3
  • strSex -> 12
  • strHeight -> 13
  • strEyesColor -> 15
  • strAddressStreet -> 76
  • strAddressCity -> 77
  • strAddressJurisdictionCode -> 78
  • strAddressPostalCode -> 79
  • strReferenceNumber -> 193
  • strIssuingStateCode -> 1
  • strInventoryNumber -> 121
  • strRevisionDate -> 270
  • strDonor -> 18
  • strAddress -> 17
  • strSurnameAndGivenNames -> 25
  • strPDF417Codec -> 374
  • strOther -> 50

Passport Attributes

  • strDocumentClassCode -> 0
  • strIssuingStateCode -> 1
  • strSurnameAndGivenNames -> 25
  • strSurname -> 8
  • strGivenNames -> 9
  • strDocumentNumber -> 2
  • strDocumentNumberCheckDigit -> 80
  • strNationalityCode -> 26
  • strDateofBirth -> 5
  • strDateofBirthCheckDigit -> 81
  • strSex -> 12
  • strDateofExpiry -> 3
  • strDateofExpiryCheckDigit -> 82
  • strOptionalData -> 36
  • strOptionalDataCheckDigit -> 195
  • strFinalCheckDigit -> 84
  • strMRZStringsWithCorrectCheckSums -> 172
  • strIssuingStateName -> 38
  • strNationality -> 11
  • strAge -> 185
  • strRemainderTerm -> 364
All Attributes (use with caution. Not all have been tested)