Versions Compared

Key

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

...

Request JSON
( ** parameters are passed optionally)

Expand
title body:

{

"doc": {

"ubki": {

"req_envelope": {

"req_xml": {

"request": {

"i": {

"ident": {

"okpo": "РНОКПП (ІПН) фізособи",

"lname": "**Прізвище",

"fname": "**Ім'я",

"mname": "**По батькові",

"bdate": "**Дата народження"

},

"liveness": {

"imgdata0": "First photo from series in base64",

"imgdata1": "Second photo from series in base64",

"imgdata2": "The third photo from the series in base64",

"imgdata3": "The fourth photo from the series in base64",

"imgdata4": "Fifth photo from the series in base64"

},

"reqlng": "Language of search criteria (Code from ref.23)"

},

"version": "1.0",

"reqtype": "Template code (Code from ref.49): Photo reality detection service - 3",

"reqreason": "The purpose of the request (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": "Outbound request ID generated by UBKI"

},

"billing": {

"balance": {

"value": "Balance amount",

"date": "Date",

"time": "Time"

}

}

},

"comp": {

"liveness": {

"inn": "TIN from the request",

"lname": "Last name from request",

"fname": "Name from request",

"mname": "Middle name from request",

"bdate": "Date of birth from request",

"probabilityspoof": "Probability of photo fraud"

},

"id": "47",

"descr": "Liveness detection"

}

}

}

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">

<!-- Query parameters -->

<request version="1.0" reqtype="Template code (Code from ref.49): Photo reality detection service - 3" reqreason="The purpose of the request (Code from ref.24)">

<!-- Parameters describing search criteria -->

<i reqlng="Language of search criteria (Code from ref.23)">

<!-- Subject identification parameters -->

<ident okpo="РНОКПП (ІПН) фізособи"

lname="**Прізвище"

fname="**Ім'я"

mname="**По батькові"

bdate="**Дата народження" />

<!-- Query parameters for determining reality -->

<liveness imgdata0="First photo from series in base64"

imgdata1="Second photo from series in base64"

imgdata2="The third photo from the series in base64"

imgdata3="The fourth photo from the series in base64"

imgdata4="Fifth photo from the series in base64" />

</i>

</request>

</req_xml>

</req_envelope>

</ubki>

</doc>

...

Request JSON

Code Block
{
	"doc": {
		"ubki": {
			"req_envelope": {
				"req_xml": {
					"request": {
						"i": {
							"ident": {
								"bdate": "1957-10-19",
								"mname": "ІГОРЕВНА",
								"fname": "АННА",
								"lname": "РИБАЧКА",
								"okpo": "2111118724"
							},
							"liveness": {
								"imgdata0": "Photo base64",
								"imgdata1": "Photo base64",
								"imgdata2": "Photo base64",
								"imgdata3": "Photo base64",
								"imgdata4": "Photo base64"
							},
							"reqlng": "4"
						},
						"version": "1.0",
						"reqtype": "35",
						"reqreason": "2"
					}
				}
			},
			"sessid": "EDF4309796114D6D9B8365370DA2DEE9"
		}
	}
}

Response JSON

Code Block
{
	"ubkidata": {
		"tech": {
			"trace": {
				"step": {
					"name": "build report",
					"stm": "2022-08-29 10:50:22.526",
					"ftm": "2022-08-29 10:50:22.806"
				}
			},
			"reqinfo": {
				"reqid": "req2#000002461398"
			}
		},
		"comp": {
			"liveness": {
				"inn": "2111118724",
				"lname": "РИБАЧКА",
				"fname": "АННА",
				"mname": "ІГОРЕВНА",
				"bdate": "1957-10-19",
				"probabilityspoof": "0.3"
			},
			"id": "47",
			"descr": "Liveness detection"
		}
	}
}

Request XML

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <ubki sessid="EDF4309796114D6D9B8365370DA2DEE9">
    <req_envelope>
      <req_xml>
        <request version="1.0" reqtype="35" reqreason="2">
          <i reqlng="4">
            <ident bdate="1957-10-19" mname="ІГОРЕВНА" fname="АННА" lname="РИБАЧКА" okpo="2111118724" />
            <liveness imgdata0="Photo base64" imgdata1="Photo base64" imgdata2="Photo base64" imgdata3="Photo base64" imgdata4="Photo base64" />
          </i>
        </request>
      </req_xml>
    </req_envelope>
  </ubki>
</doc>

...