Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »


Service for obtaining information on changing the SIM card identification number (IMSI) by mobile phone number.


The report contains the following components:

Request JSON

  body:

{

"doc": {

"ubki": {

"req_envelope": {

"req_xml": {

"request": {

"i": {

"simCheck": {

"phone": "Mobile phone number in +380999999999 format"

},

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

},

"version": "1.0",

"reqtype": "Template code (code from ref.49): 'Information on SIM card reissue ' - 38",

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

},

"descr": "Request object"

},

"descr": "Request envelope"

},

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

}

}

}

Response JSON

 body:

{

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

},

"billing": {

"balance": {

"value": "Total assets",

"date": "Date",

"time": "Time"

}

}

},

"comp": {

"simCheck": {

"fphoneNumber": "Mobile phone number in +380999999999 format",

"changed": "Numerical indicating the presence of a SIM card reissue (-1/0/1)",

"changedref": "Text indication of the presence of a SIM card reissue (code from ref.61)",

"operator": "Operator name",

"respDateTime": "Date and time of receipt of data from the operator",

"deep": "SIM card replacement check period (in days) (5-30)"

},

"id": "59",

"descr": "Sim-card reissue information"

}

}

}

Request XML

  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): 'Information on SIM card reissue ' - 38" reqreason="Request objective (code from ref.24)">

<!-- Parameters describing search criteria-->

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

<!-- Search options -->

<simCheck phone="Mobile phone number in +380999999999 format" />

</i>

</request>

</req_xml>

</req_envelope>

</ubki>

</doc>

Response XML

 body:

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

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

<!-- Information about the current status of the prepaid account part-->

<billing>

<balance value="Total assets" date="Date" time="Time" />

</billing>

</tech>

<!-- "Sim-card reissue information" -->

<comp id="59" descr="Sim-card reissue information">

<simCheck fphoneNumber="Mobile phone number in +380999999999 format"

changed="Numerical indicating the presence of a SIM card reissue (-1/0/1)"

changedref="Text indication of the presence of a SIM card reissue (code from ref.61)"

operator="Operator name"

respDateTime="Date and time of receipt of data from the operator"

deep="SIM card replacement check period (in days) (5-30)" />

</comp>

</ubkidata>

Example

Request JSON

{
	"doc": {
		"ubki": {
			"req_envelope": {
				"req_xml": {
					"request": {
						"i": {
							"simCheck": {
								"phone": "+380971321122"
							},
							"reqlng": "4"
						},
						"version": "1.0",
						"reqtype": "38",
						"reqreason": "2"
					}
				}
			},
			"sessid": "EDF4309796114D6D9B8365370DA2DEE9"
		}
	}
}

Response JSON

{
	"ubkidata": {
		"tech": {
			"trace": {
				"step": {
					"name": "build report",
					"stm": "2022-08-29 10:58:30.222",
					"ftm": "2022-08-29 10:58:31.554"
				}
			},
			"reqinfo": {
				"reqid": "req2#000002461406"
			}
		},
		"comp": {
			"simCheck": {
				"fphoneNumber": "+380971321122",
				"changed": "1",
				"changedref": "The SIM card was reissued",
				"operator": "Kyivstar",
				"respDateTime": "2022-08-29T10:58:30.307969357",
				"deep": "5"
			},
			"id": "59",
			"descr": "Sim-card reissue information"
		}
	}
}

Request XML

<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <ubki sessid="EDF4309796114D6D9B8365370DA2DEE9">
    <req_envelope>
      <req_xml>
        <request version="1.0" reqtype="38" reqreason="2">
          <i reqlng="4">
            <simCheck phone="+380971321122" />
          </i>
        </request>
      </req_xml>
    </req_envelope>
  </ubki>
</doc>

Response XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ubkidata>
    <tech>
        <trace>
            <step name="build report" stm="2022-08-29 10:58:30.222" ftm="2022-08-29 10:58:31.554"/>
        </trace>
        <reqinfo reqid="req2#000002461406"/>
    </tech>
    <comp id="59" descr="Sim-card reissue information">
        <simCheck fphoneNumber="+380971321122" changed="1" changedref="The SIM card was reissued" operator="Kyivstar" respDateTime="2022-08-29T10:58:30.307969357" deep="5"/>
    </comp>
</ubkidata>

Test URL

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

Test data

The sim card was not reissued

  • simCheck phone= ”+380962134234”

  • simCheck phone= ”+380662134234”

  • simCheck phone= ”+380981224895”

  • simCheck phone= ”+380732144444”

  • simCheck phone= ”+380506630641”

The sim card was reissued

  • simCheck phone= ”+380981220000”

  • simCheck phone= ”+380971321122”

  • No labels