SIM Swap Verification

Content

API Description

API URL https://apigw.tri.co.id/eai/verify_customer/query/sim_swap (NON-PROD)
API Name POST
API Type Query
Description This API is developed to verify if input MSISDN is swapped or not, it will return true or false. If MSISDN is swapped then returns Swapped date.

API Parameters

HTTP Header

Content Type application/json

Input Params

api_key An active unique api key registered by H3I to invoke your APIs.
sig Signature, it contains (api_key + Secret + TimeStamp) MD5 Hash, TimeStamp is in UNIX format, Refer Authentication section, for more details.


Request Body

txn_id A unique transaction id generated by external developer/partner, length can be up to 25 charactors, e.g. MYAPP202005152034120001
msisdn Present phone number to check if sim swapped is done for this number

Response Body

code Refer Error codes section
desc Refer message in Error codes section 
result
- msisdn Input MSISDN or phone number
- sim_swapped Returns true or false.
- sim_swapped_dt                    Returns date if sim_swapped is true, date format will be in yyyy-MM-DDTdd-mm-ss-z format.

Error Codes

Codes Message
00000 Success
9999 Unexpected system Error
11111 Error Process

For a full list of generic HTTP error response codes, see Generic HTTP Error Response Codes.

Samples

Sample Request

{ 
   "txn_id":"App12123123",
   "msisdn":"62895712343123"
}

 

Sample Success Response

{
   "code": "00000",
   "desc": "Success",
   "result": {
      "msisdn": "08967613408",
      "sim_swapped": "true",
      "sim_swapped_dt": "2012-03-19T07:22:15+7:00"
   }
}

 

Sample Fail Response

{  
   "response": {    
      "code": "11111",    
      "desc": "Error Process"  
   }
}

 

Sample CURL

curl --request POST \
  --url 'https://apigw.tri.co.id/eai/verify_customer/query/sim_swap?api_key=wrwx9kg72jyzx3u5zcmpwnzu' \
  --header 'Content-Type: application/json' \
  --data '{   "txn_id":"App20201223151030000",   "msisdn":"06289123456"}'

Back

 

 

 

 

 

.