Technical Specification
Specification Details
This web service supports only restful requests.
Methods
Ping
This method is called to confirm the availability of the service.
1. URL
Request URL - http://ADVISED-IP/simswap-central/api/ping
Request Method - GET
2. Sample Response
Reset
This method is called to generate credentials for the encryption of request messages in subsequent API calls. A secret key is generated. This method should only be called on credential change.
1. URL
Request URL - http://ADVISED-IP/simswap-central/api/reset
Request Method – POST
2. Sample JSON Request and Response
Login
This method leverages on JWT (Json Web Tokens API) to validate the client username and the generated encryption credentials and upon successful validation, returns an authorization string which the client will pass in header of subsequent request. This guarantees system to system access for a configured period of time(in seconds, minutes, hours, days, months, years etc) after which the token expires.
Request URL: - http://ADVISED-IP/simswap-central/api/login
Request Method: POST
4.3.2 Sample JSON Request and Response
If the http status code is 200, check the header string for the value of the parameter "Authorization" which will contain a value similar to the string highlighted in yellow below:
CLIENTXXX (Please use the tab button to create a space) eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJJTlRFR1JBVE9SIiwiaXNzIjoiaHR0cDovLzEyNy4w LjAuMTo4MDgwLzJGQVNlcnZpY2UvYXBpL2F1dGgvbG9naW4iLCJpYXQiOjE1MDY wNzI5MzksImV4cCI6MTUwNjE1OTMzOX0.0Nas5e2137dsmw77_Gil7jHfsqr_3Wx4BX TnMpkIb24TGrm1pSL1F5xlZztcYR3qJCwS4sjH41B-9_vlOqopAA
You are required to pass this generated string in the "Authorization" parameter on subsequent requests. An example shown is shown below
Authorization :
CLIENTXXX
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJJTlRFR1JBVE9SIiwiaXNzIjoiaHR0cDovLzEyNy4wLjAuMTo4MDgwLzJGQVNlcnZpY2UvYXBpL2F1dGgvbG9naW4iLCJpYXQiOjE1MDYwNzI5MzksImV4cCI6MTUwNjE1OTMzOX0.0Nas5e2137dsmw77_Gil7jHfsqr_3Wx4BXTnMpkIb24TGrm1pSL1F5xlZztcYR3qJCwS4sjH41B-9_vlOqopAA
Note: Where XXX is the client API username.
For example, if your username is APP, your authorization string will start with "CLIENTAPP"
Get Sim Swap Status
This method gets the SIM swap status of a particular mobile subscriber
1 Sample JSON Request and Response
POST
http://ADVISED-IP/simswap-central/api/status/
Request Body
clientCode
number
requestID
number
telco
string
phoneNumber
number
Encrypted Request:
Last updated