Published Dec 18, 2019

Phonecheck API to Check SIM Lock

Description: PhoneCheck API to verify Device Apple SIM Lock information as Unlocked or Locked

URL: https://clientapiv2.phonecheck.com/cloud/cloudDB/CheckSimLock

Method: POST

Data Parameters

Value

Description

Data Parameters

Value

Description

Apikey

9cdbc7a1-1b9c-44ae-a98085104c71ea3e

API Authentication Key

Username

Kai2

Any station username

IMEI

356117092892035

IMEI of the device

Error Response:

Code

Content

Code

Content

Status: 401 Unauthorized

“Post Data is missing”

Status: 401 Unauthorized

ApiKey Invalid - Contact Admin at

<a href='http://www.phonecheck.com/contact/'PhoneCheck> Contact Support</a>

Status: 401 Unauthorized

{

"message": "User has exceeded simlock limit",

"isLicenseExpired": true

 

Successful Response - Status: 200 OK


Code

IMEI

Content

Code

IMEI

Content

Status: 200 OK

354594061625533

Device SIM Lock ON

{

"Remarks": "On",

"FieldColor": "Red",

"deviceid": "354594061625533",

"RawResponse": "354594061625533 Locked"

}

Status: 200 OK

013306003230246

Device SIM Lock OFF

{

"Remarks": "Off",

"FieldColor": "Green",

"deviceid": "359177072446043",

"RawResponse": "359177072446043 Unlocked"

}

Sample Curl Call:


<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://clientapiv2.phonecheck.com/cloud/cloudDB/CheckSimLock", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"apiKey\"\r\n\r\n7240152a-ab74-4653-a2b8-6064714d2187\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nArspc\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"IMEI\"\r\n\r\n359297063883556\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--", CURLOPT_HTTPHEADER => array( "Accept: */*", "Accept-Encoding: gzip, deflate", "Cache-Control: no-cache", "Connection: keep-alive", "Content-Length: 427", "Content-Type: multipart/form-data; boundary=--------------------------682166816725731004918993", "Cookie: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c39b7861ef7cf5d4eb3ff7a47ba979cd%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A11%3A%22172.31.26.9%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A21%3A%22PostmanRuntime%2F7.20.1%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1575272613%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7D5f62f54e35f3d6a1ff2d2e8f10e9538d9b980ad9; AWSELB=B309A7C7080786A9330C4895EC1D6AB2F5CB27C6544FAD55A09268C7D0F1AD526C64C72ACD69D91DA86FFD70E57829EF681056481FA1D454D807EE12489FF69C6874FBC406", "Host: clientapiv2.phonecheck.com", "Postman-Token: 74eb780a-e233-4973-8f3e-30edd16bb683,9a1a2db2-2ff0-41a6-9383-41e24a09d2e4", "User-Agent: PostmanRuntime/7.20.1", "cache-control: no-cache", "content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" ), ));$response = curl_exec($curl); $err = curl_error($curl);curl_close($curl);if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

 

Related content