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)

Receipt Confirmation:

  • isreceived: Optional boolean flag to confirm goods receipt
  • uinreceived: Optional - unique transport number under which goods were received (max 13 chars)

Dispatch Confirmation:

  • issent: Optional boolean flag to confirm goods dispatch
  • uinsent: Optional - unique transport number for dispatched goods (max 13 chars)

Usage Note:

  • Note: This schema is used to confirm the receipt and/or dispatch of goods by referencing the UIN (Unique Identification Number) from the original declaration. The recipient confirms receipt using isreceived/uinreceived, and the sender confirms dispatch using issent/uinsent.

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
minLength 9 Минимална дължина 9 символа Minimum length 9 characters
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 (National Revenue Agency)


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

Receipt Confirmation Example

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

Dispatch Confirmation Example

<?xml version="1.0" encoding="WINDOWS-1251"?>
<decHfrConfirm>
  <part1>
    <ident>987654321</ident>
    <identtype>1</identtype>
    <issent>true</issent>
    <uinsent>2501170000002</uinsent>
    <iscorrect>true</iscorrect>
  </part1>
</decHfrConfirm>

Combined Receipt and Dispatch Confirmation Example

<?xml version="1.0" encoding="WINDOWS-1251"?>
<decHfrConfirm>
  <part1>
    <ident>123456789</ident>
    <identtype>1</identtype>
    <isreceived>true</isreceived>
    <uinreceived>2501170000001</uinreceived>
    <issent>true</issent>
    <uinsent>2501170000003</uinsent>
    <iscorrect>true</iscorrect>
  </part1>
</decHfrConfirm>

Document Information: