Operator
Get information about operator from VertexSMS internal database.
GET https://api.vertexsms.com/operators/{operatorId}
Request example:
GET /operators/493 HTTP/1.1
Host: api.vertexsms.com
Accept: application/json
X-VertexSMS-Token: eB52vNTPL9fO3rDrx8pYmVnj6nqceHNhnqceHNh
Response example:
HTTP/1.1 200 OK
Content-Type: application/json
Cache-control: no-cache
{“name”:”BITE”,”country”:”LT”,”mcc”:”245”,”mnc”:[“020”,”028”]}
GET https://api.vertexsms.com/rates/?format={format}
Network and Operator fields can also have values ‘All’ or ‘All other carriers’. It is the default route in both cases. It is named ‘All’ when there are only one default route, and ‘All other carriers’ means that in country there is more than one default route.
Request example:
GET /rates/?format=json HTTP/1.1
Host: api.vertexsms.com
Accept: application/json
X-VertexSMS-Token: eB52vNTPL9fO3rDrx8pYmVnj6nqceHNhnqceHNh
Response example:
HTTP/1.1 200 OK
Content-Type: application/json
Cache-control: no-cache
[{“CountryName”:”Abkhazia”,”CountryCode”:”AB”,”Operator”:”Default”,”Network”:”Default”,”MCC”:”289”,”MNC”:null,”Rate”:”0.039”},{“CountryName”:”Abkhazia”,”CountryCode”:”AB”,”Operator”:”Aquafon JSC”,”Network”:”Aquafon”,”MCC”:”289”,”MNC”:”67”,”Rate”:”0.039”}]
Get MCC and MNC list from VertexSMS internal database.
GET https://api.vertexsms.com/mccmnc/{country}?Page={Page}
Request example:
GET /mccmnc/LT?Page=1 HTTP/1.1
Host: api.vertexsms.com
Accept: application/json
X-VertexSMS-Token: eB52vNTPL9fO3rDrx8pYmVnj6nqceHNhnqceHNh
Response example:
HTTP/1.1 200 OK
Content-Type: application/json
Cache-control: no-cache
[{“country”:”LT”,”MCC”:”246”,”MNC”:”01”,”operatorId”:”1891”},{“country”:”LT”,”MCC”:”246”,”MNC”:”02”,”operatorId”:”493”}]
Get prefixes list from VertexSMS internal database.
GET https://api.vertexsms.com/prefixes/{country}
Request example:
GET /prefixes/LT HTTP/1.1
Host: api.vertexsms.com
Accept: application/json
X-VertexSMS-Token: eB52vNTPL9fO3rDrx8pYmVnj6nqceHNhnqceHNh
Response example:
HTTP/1.1 200 OK
Content-Type: application/json
Cache-control: no-cache
[{“prefix”:”3706000”,”country”:”LT”,”operatorId”:”2536”},{“prefix”:”3706001”,”country”:”LT”,”operatorId”:”2536”}]
Number correction is a method to fix given number(s) by a given parameters.
GET https://api.vertexsms.com/numberCorrection
Request example:
POST /numberCorrection HTTP/1.1
Host: api.vertexsms.com
Content-Type: application/json
Accept: application/json
X-VertexSMS-Token: eB52vNTPL9fO3rDrx8pYmVnj6nqceHNhnqceHNh
[{“Number”:”861860698”,”CountryIso”:”LT”},{“Number”:”61860698”,”CountryIso”:”LT”},
{“Number”:”(370)-618-60698”,”CountryIso”:”LT”}]
Response example:
HTTP/1.1 200 OK
Content-Type: application/json
Cache-control: no-cache
[ { “Error”: null, “Number”: “378611463155463”, “NumberType”: “unknown”, “CountryIso”: “LT”, “Mobile”: false, “NumberE164”: “+370378611463155463” }, { “Error”: null, “Number”: “61860698”, “NumberType”: “mobile”, “CountryIso”: “LT”, “Mobile”: true, “NumberE164”: “+37061860698” }, { “Error”: null, “Number”: “37056684554775”, “NumberType”: “unknown”, “CountryIso”: “LT”, “Mobile”: false, “NumberE164”: “+37056684554775” }]