...

Request JSON
( ** the parameters are transferred optionally)

Expand
title body:

{

"doc": {

"ubki": {

"req_envelope": {

"req_xml": {

"request": {

"i": {

"ident": {

"okpo": "**Tax/Taxpayer Identification Number (INN-RNUKPN)/EDRPOU",

"lname": "**Last name",

"fname": "**First name",

"mname": "**Middle name",

"bdate": "**Date of birth"

},

"reqlng": "Search criteria language (code from ref.23)"

},

"version": "1.0",

"reqtype": "Template code (code from ref.49): Related persons' - 53",

"reqreason": "Request objective (code from ref.24)"

},

"descr": "Request object"

},

"descr": "Request envelope"

},

"sessid": "Session key (obtained from the authorization API)"

}

}

}

...

Request JSON

Code Block
{
	"doc": {
		"ubki": {
			"req_envelope": {
				"req_xml": {
					"request": {
						"i": {
							"ident": {
								"okpo": "12345678902726020593"
							},
							"reqlng": "1"
						},
						"version": "1.0",
						"reqtype": "53",
						"reqreason": "2"
					},
					"descr": "Об'єкт запиту"
				},
				"descr": "Конверт запиту"
			},
			"sessid": "7BD7E136E3BF470EAA2CFE2E8700000D"
		}
	}
}

Response JSON

Code Block
{
	"ubkidata": {
		"tech": {
			"trace": {
				"step":  [
                    {
					"name": "build report",
					"stm": "2022-11-09 19:22:31.946",
					"ftm": "2022-01-09 19:22:32.021"
				}
			 ]
            },
            "error": [],
			"reqinfo": {
				"reqid": "req2#000002007864"
			}
		},
		"comp": [
            {
                "id": "79",
                "descr": "RelatedПов'язані personsособи",
                "relatedPersons": {
                    "bdate": "1974-08-20",
                    "fname": "БОГДАН",
                    "lname": "БОГДАНОВ",
                    "mname": "БОГДАНОВИЧ",
                    "subjectCode": "12345678902726020593",
                    "related": [
                        {
                            "code": "44011074",
                            "name": "НИКОЛАЕВ ВАДИМ ПЕТРОВИЧТОВАРИСТВО З ОБМЕЖЕНОЮ ВІДПОВІДАЛЬНІСТЮ \"ЛИМАК ГРУП\"",
                            "relations": [
                                {
                                    "accuracy": 1.0,
                                    "role": "керівникпредставник юридичної особи",
                                    "source": "EDR_mainlinks"
                                },
                            ]    {
                    },                "accuracy": 1.0,
       {                             "coderole": "є засновником",
                            "name": "КОМПАНІЯ \"РОМАШКА ІНКОРПОРЕЙТЕД\"",     "source": "EDR_links"
                      "relations": [         }
                       {     ]
                        }
      "accuracy": 1.0,             ]
                }
      "role": "засновник",     }
        ]
           }
}

Request XML

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <ubki sessid="7BD7E136E3BF470EAA2CFE2E8700000D">
    <req_envelope 
"source": "EDR_main"
descr="Конверт запиту">
      <req_xml descr="Об'єкт запиту">
        
<request version="1.0" reqtype="53" reqreason="2">
         
}
 <i reqlng="1">
            <ident okpo="2726020593" />
          </i>
]
        </request>
      </req_xml>
    </req_envelope>
  
}, { "code": "12345632", "name": "ТОВАРИСТВО З ОБМЕЖЕНОЮ ВІДПОВІДАЛЬНІСТЮ \"ВАСИЛЬКІ\"", "relations": [ { "accuracy": 1.0, "role": "засновник", "source": "EDR_links" } ] } ] } } ] } }

Request XML

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <ubki sessid="7BD7E136E3BF470EAA2CFE2E8700000D">
    <req_envelope descr="Конверт запиту">
      <req_xml descr="Об'єкт запиту">
        <request version="1.0" reqtype="53" reqreason="2">
          <i reqlng="1">
            <ident okpo="1234567890" />
          </i>
        </request>
      </req_xml>
    </req_envelope>
  </ubki>
</doc>

Response XML

Code Block<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ubkidata> <tech> <trace> <step name="build report" stm="2022-11-09 19:22:31.946" ftm="2022-01-09 19:22:32.021" /> </trace> <reqinfo reqid="req2#000002007864" /> </tech> <comp id="79" descr="Related persons"> <relatedPersons bdate="" fname="" lname="" mname="" subjectCode="1234567890"> <related code="" name="НИКОЛАЕВ ВАДИМ ПЕТРОВИЧ">
</ubki>
</doc>

Response XML

Code Block
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ubkidata>
  <tech>
    <trace>
      <relations<step accuracyname="1.0build report" rolestm="керівник2022-11-09 19:22:31.946" sourceftm="EDR_main"2022-01-09 19:22:32.021" />
    </trace>
    <reqinfo reqid="req2#000002007864" />
  </tech>
   </related>
  <comp id="79" descr="Пов'язані особи">
         <related code<relatedPersons bdate="1974-08-20" fname="БОГДАН" namelname="БОГДАНОВ"КОМПАНІЯ &quot;РОМАШКА ІНКОРПОРЕЙТЕД&quot;">
   mname="БОГДАНОВИЧ" subjectCode="2726020593">
            <related <relations accuracycode="1.044011074" rolename="засновник" source="EDR_main"/>
      ТОВАРИСТВО З ОБМЕЖЕНОЮ ВІДПОВІДАЛЬНІСТЮ &quot;ЛИМАК ГРУП&quot;">
     </related>           <relations  <related codeaccuracy="123456321.0" namerole="ТОВАРИСТВОпредставник З ОБМЕЖЕНОЮ ВІДПОВІДАЛЬНІСТЮ &quot;ВАСИЛЬКІ&quot;"юридичної особи" source="EDR_links"/>
                <relations accuracy="1.0" role="засновникє засновником" source="EDR_links"/>
            </related>
        </relatedPersons>
    </comp>
</ubkidata>

Test URL

https://test.ubki.ua/b2_api_xml/ubki/xml

Test data

  • okpo="3332643095"

  • okpo="2726020593"

  • okpo= "12345632"