Whitelist API
TPOSS Whitelist API allows you to provision, deprovision, and look for IMEI(s) in the TPOSS whitelist database using these RPC methods:
- Imei.Whitelist.Add - to add a list of IMEISV to the TPOSS whitelist database
- Imei.Whitelist.Delete - to delete a list of IMEISV from the TPOSS whitelist database
- Imei.Whitelist.Get - to fetch IMEISV from the TPOSS whitelist database
API methods
Imei.Whitelist.Add
This method allows you to add a list of IMEI(s) to the TPOSS whitelist database.
You can pass the following parameters in the request:
Example of the request:
The API returns the total number of IMEIs that arrived in the request and the number of IMEIs successfully added to the whitelist.
Example of the successful response:
In the case of an error, the response contains the error object with an error code and message:
The following error codes may be returned:
-30000- Required field is missing.-32700- Can't decode JSON request body.-33333- Not authenticated.
Imei.Whitelist.Delete
The method allows you to delete IMEI(s) from the TPOSS whitelist database.
You can pass the following parameters in the request:
Example of the request:
The API returns the total number of IMEIs that arrived in the request and the number of IMEIs successfully deleted from the whitelist.
Example of the successful response:
In the case of an error, the response contains the error object with an error code and message:
The following error codes may be returned:
-30000- Required field is missing.-32700- Can't decode JSON request body.-33333- Not authenticated.
Imei.Whitelist.Get
This method allows you to fetch IMEI(s) from the TPOSS whitelist database by the given Limit and Offset.
You can pass the following parameters in the request:
Example of the request:
Example of the successful response:
In the case of an error, the response contains the error object with an error code and message:
The following error codes may be returned:
-30000- Required field is missing.-32700- Can't decode JSON request body.-33333- Not authenticated.