Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

The report contains the following components:

Request JSON


( ** parameters are passed optionally)

Expand
title body:

{

"doc": {

"ubki": {

"req_envelope": {

"req_xml": {

"request": {

"i": {

"ident": {

"okpo": "Tax/Taxpayer Identification Number (INN-RNUKPN

, for individuals)",

"lname": "**Last name",

"fname": "**First name",

"mname": "**Middle name",

"bdate": "**Date of birth"

)/EGRPOU"

},

"additionaldata": {

"smiid": "Mass Media Report Number"

},

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

},

"version": "1.0",

"reqtype": "Template code (code from ref.49): 'Mass Media Notace' report – 29",

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

},

"descr": "Request object"

},

"descr": "Request envelope"

},

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

}

}

}

Response JSON

Expand
titlebody:

{

"ubkidata": {

"tech": {

"trace": {

"step": {

"name": "Step name",

"stm": "Step start stamp date",

"ftm": "Step finish stamp date"

}

},

"error": {

"errtype": "Error code (code from ref.0)",

"errtext": "Error text (value from ref.0)"

},

"reqinfo": {

"reqid": "Outgoing request ID generated by UBKI"

}

},

"comp": {

"smiinfo": {

"smiid": "Mass Media Report Number",

"smitext": "Mass Media Report Text"

},

"id": "34",

"descr": "Names of components"

}

}

}

Request XML


( ** parameters are passed optionally)

Expand
title body:

<?xml version="1.0" encoding="utf-8"?>

<doc>

<ubki sessid="Session key (obtained from the authorization API)">

<req_envelope descr="Request envelope">

<req_xml descr="Request object">

<!-- Request parameters -->

<request version="1.0" reqtype="Template code (code from ref.49): 'Mass Media Notace' report – 29" reqreason="Request objective (code from ref.24)">

<!-- Parameters describing search criteria-->

<i reqlng="Search criteria language (code from ref.23)">

<!-- Subject identification parameters-->

<ident okpo="Tax/Taxpayer Identification Number (INN-RNUKPN

, for individuals

)

"

lname="**Last name"

fname="**First name"

mname="**Middle name"

bdate="**Date of birth">

</ident>

/EGRPOU" />

<!--Identifying the message text in mass media-->

<additionaldata smiid="Mass Media Report Number" />

</i>

</request>

</req_xml>

</req_envelope>

</ubki>

</doc>

Response XML

Expand
titlebody:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<ubkidata>

<!-- System information part -->

<tech>

<trace>

<step name="Step name" stm="Step start stamp date" ftm="Step finish stamp date">

<!-- The trace part contains timing metrics of components generation steps -->

</step>

</trace>

<error errtype="Error code (code from ref.0)" errtext="Error text (value from ref.0)">

</error>

<reqinfo reqid="Outgoing request ID generated by UBKI">

</reqinfo>

</tech>

<comp id="34" descr="Names of components">

<smiinfo smiid="Mass Media Report Number"

smitext="Mass Media Report Text" />

</comp>

</ubkidata>

Example

Request JSON

Code Block
{
	"doc": {
		"ubki": {
			"req_envelope": {
				"req_xml": {
					"request": {
						"i": {
							"ident": {
								"okpo": "97867562"
							},
							"additionaldata": {
								"smiid": "1-97867564"
							},
							"reqlng": "4"
						},
						"version": "1.0",
						"reqtype": "29",
						"reqreason": "2"
					}
				}
			},
			"sessid": "F936E3872D7740D7910BB32C933318B3"
		}
	}
}

Response JSON

Code Block
{
	"ubkidata": {
		"tech": {
			"trace": {
				"step": {
					"name": "build report",
					"stm": "2022-08-26 09:52:26.157",
					"ftm": "2022-08-26 09:52:26.186"
				}
			},
			"reqinfo": {
				"reqid": "req2#000002460377"
			}
		},
		"comp": {
			"smiinfo": {
				"smiid": "1-97867564",
				"smitext": "<p><strong>Розділ 1. ПОВІДОМЛЕННЯ </strong><strong> </strong></p>\r\n<p>\r\n    <strong>ПУБЛІКАЦІЯ ВІДОМОСТЕЙ З ЄДИНОГО ДЕРЖАВНОГО  РЕЄСТРУ: З 23.02.2009 ПО 09.03.2009 </strong><strong> </strong></p>\r\n<p><strong><em>1.1. ПРОВЕДЕННЯ ДЕРЖАВНОЇ РЕЄСТРАЦІЇ  ЮРИДИЧНОЇ ОСОБИ БИЗНЕС ГРУП</em></strong></p>\r\n<p><strong>49016, ДНІПРОПЕТРОВСЬКА ОБЛ., МІСТО ДНІПРО, ВИШНЕВИЙ РАЙОН, ВУЛИЦЯ АБРИКОСОВА</strong><strong> </strong></p>\r\n"
			},
			"id": "34",
			"descr": "Media text"
		}
	}
}

Request XML

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <ubki sessid="F936E3872D7740D7910BB32C933318B3">
    <req_envelope>
      <req_xml>
        <request version="1.0" reqtype="29" reqreason="2">
          <i reqlng="4">
            <ident okpo="97867562" />
            <additionaldata smiid="1-97867564" />
          </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-08-26 09:52:26.157" ftm="2022-08-26 09:52:26.186"/>
        </trace>
        <reqinfo reqid="req2#000002460377"/>
    </tech>
    <comp id="34" descr="Media text">
        <smiinfo smiid="1-97867564" smitext="&lt;p&gt;&lt;strong&gt;Розділ 1. ПОВІДОМЛЕННЯ &lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;&#xD;&#xA;&lt;p&gt;&#xD;&#xA;    &lt;strong&gt;ПУБЛІКАЦІЯ ВІДОМОСТЕЙ З ЄДИНОГО ДЕРЖАВНОГО  РЕЄСТРУ: З 23.02.2009 ПО 09.03.2009 &lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;&#xD;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;1.1. ПРОВЕДЕННЯ ДЕРЖАВНОЇ РЕЄСТРАЦІЇ  ЮРИДИЧНОЇ ОСОБИ БИЗНЕС ГРУП&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;&#xA;&lt;p&gt;&lt;strong&gt;49016, ДНІПРОПЕТРОВСЬКА ОБЛ., МІСТО ДНІПРО, ВИШНЕВИЙ РАЙОН, ВУЛИЦЯ АБРИКОСОВА&lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;&#xD;&#xA;"/>
    </comp>
</ubkidata>

Test URL

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

Test data

  • okpo="12345626", smiid="1-5962933", smiid="1-6126821"

  • okpo="12345649", smiid="1-1672492"

  • okpo="97867562", smiid="1-97867564"

  • okpo="13243543", smiid="1-5137306"

  • okpo="86756457", smiid="1-1225801"