Simple Types and Validations

KEY VALIDATION RULES SUMMARY

Identification Number Validation:

  • ident: Must be 9-13 digits, numeric only [0-9]
  • identtype: Must be one of: 1 (Bulstat), 2 (PIN), 3 (FPN/PN), 5 (NRA Service Number)

Transport Number Validation:

  • uin: Maximum 13 characters, must be the unique transport number from the original declaration
  • Note: This schema is used to cancel/annul a previously submitted declaration by referencing its UIN (Unique Identification Number). The UIN must match an existing, active declaration.

Declaration:

  • iscorrect: Must be true to submit. Confirms criminal liability under Article 313 of the Criminal Code for false information

Simple Types / Прости типове

1. bulstat Type

Property Value Description (BG) Description (EN)
Base Type xs:string Низ String
maxLength 13 Максимална дължина 13 символа Maximum length 13 characters

Usage: Base type for identification numbers.


2. identtype Type

Value Bulgarian English
1 ЕИК по БУЛСТАТ/ЕИК по ЗТРРЮЛНЦ Bulstat
2 ЕГН PIN (Personal Identification Number)
3 ЛНЧ/ЛН FPN/PN (Foreigner's Personal Number / Personal Number)
5 Сл. номер на НАП Service number NRA (National Revenue Agency)

Documentation from XSD: 1-Bulstat;2- PIN; 3-FPN/PN;5-Service number NRA


Complete XML Example / Пълен XML пример

Cancellation Declaration Example

<?xml version="1.0" encoding="WINDOWS-1251"?>
<decHfrAnnul>
  <part1>
    <ident>123456789</ident>
    <identtype>1</identtype>
    <uin>2501170000001</uin>
    <iscorrect>true</iscorrect>
  </part1>
</decHfrAnnul>

Document Information: