{"_id":"551abac26491a10d0099943c","editedParams":true,"parentDoc":null,"__v":5,"editedParams2":true,"project":"54eb50e5615ffc1900305a16","category":{"_id":"55154749c28d6125001b8885","__v":3,"pages":["551abac26491a10d0099943c","551ba163944d6b2f00479d47","551bc170c08a24210029d50e"],"project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-03-27T12:04:25.647Z","from_sync":false,"order":10,"slug":"number-context","title":"Number Lookup"},"user":"54eb4fdedf7add210007b29b","version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":28,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915","59b8eeeb707542001076d3b6"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-03-31T15:18:26.795Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"language":"json","status":200,"name":"","code":"{  \n   \"results\":[  \n      {  \n         \"to\":\"41793026727\",\n         \"mccMnc\":\"22801\",\n         \"originalNetwork\":{  \n            \"networkPrefix\":\"79\",\n            \"countryPrefix\":\"41\"\n         },\n         \"ported\":false,\n         \"roaming\":false,\n         \"status\":{  \n            \"groupId\":2,\n            \"groupName\":\"UNDELIVERABLE\",\n            \"id\":9,\n            \"name\":\"UNDELIVERABLE_NOT_DELIVERED\",\n            \"description\":\"Message sent not delivered\"\n         },\n         \"error\":{  \n            \"groupId\":1,\n            \"groupName\":\"HANDSET_ERRORS\",\n            \"id\":27,\n            \"name\":\"EC_ABSENT_SUBSCRIBER\",\n            \"description\":\"Absent Subscriber\",\n            \"permanent\":false\n         }\n      }\n   ]\n}"},{"code":"{\n    \"requestError\": {\n        \"serviceException\": {\n            \"messageId\": \"BAD_REQUEST\",\n            \"text\": \"[to : Number of destinations is limited to 1000. For larger requests use /number/1/notify API endpoint.]\"\n        }\n    }\n}","language":"json","status":400,"name":"Too many destinations"}]},"settings":"","examples":{"codes":[{"code":"POST /number/1/query HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{  \n   \"to\":[\"41793026727\"]\n}","language":"json","name":""}]},"method":"post","auth":"required","params":[{"_id":"551abac26491a10d0099943d","ref":"","in":"body","required":true,"desc":"Array of Number Lookup destination addresses. Maximum supported number of destination addresses is **1000** per request. If the Number Lookup is requested for one phone number, a single String is supported instead of an Array. Destination addresses must be in international format (Example: 41793026727).","default":"","type":"array_string","name":"to"}],"url":"/number/:version/query"},"isReference":true,"order":1,"body":"# Response format\n\nIf successful, the response header HTTP status code will be `200 OK` and include Number Lookup information in the response body.\n\nIf you try to send a Number Lookup without authorization, you will get a response with the HTTP status code `401 Unauthorized`.\n\nIf your request contains more than 1000 destination addresses, API will return the status code `400 Bad Request`.\n\n### NCResponse\n\n|Parameter|Type|Description|\n|-|-|-|\n|* bulkId*|String|The ID that uniquely identifies the request. Bulk ID will be received only when you send a [Number Lookup to more than one destination address](#number-context-lookup-multiple-phone-numbers).|\n|*results*|[NCResponseDetails](#section-ncresponsedetails)|Array of Number Lookup results, one per every phone number.|\n\n### NCResponseDetails\n\n|Parameter|Type|Description|\n|-|-|-|\n|*to*|String|The Number Lookup destination address.|\n|*mccMnc*|String|Mobile country code and mobile network code concatenated. MccMnc will start with the MCC, and it will always have three digits, followed by the MNC (length of the MNC depends on the value of the MCC, and it can be two or three).|\n|*imsi*|String|International Mobile Subscriber Identity, used to uniquely identify the user of a mobile network.|\n|*originalNetwork*|[Network](#section-network)|Information about the original network.|\n|*ported*|Boolean|Tells if the phone number is ported.|\n|*portedNetwork*|[Network](#section-network)|Information about the ported network.|\n|*roaming*|Boolean|Informs if the phone number is in roaming.|\n|*roamingNetwork*|[Network](#section-network)|Information about the roaming network.|\n|*servingMSC*|String|Serving mobile switching center.|\n|*status*|[Status](#section-status)|Indicates whether the Number Lookup query was successfully executed, not executed or any other possible status.|\n|*error*|[Error](#section-error)|Indicates whether the error occurred during the query execution.|\n\n#### Network\n\n|Parameter|Type|Description|\n|-|-|-|\n|*networkName*|String|Network name.|\n|*networkPrefix*|String|Network prefix.|\n|*countryName*|String|Country name.|\n|*countryPrefix*|String|Country prefix.|\n\n#### Status\n\n|Parameter|Type|Description|\n|-|-|-|\n|*groupId*|int|Status [group ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*groupName*|String|Status [group name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*id*|int|Status [ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*name*|String|Status [name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#status-object-example) of the status.|\n|*action*|String|[Action](http://dev.infobip.com/v1/docs/response-codes#status-object-example) that should be taken to eliminate the error.|\n\n#### Error\n\n|Parameter|Type|Description|\n|-|-|-|\n|*groupId*|int|Error [group ID](http://dev.infobip.com/v1/docs/response-codes#error-object-example).|\n|*groupName*|String|Error [group name](http://dev.infobip.com/v1/docs/response-codes#error-object-example).|\n|*id*|int|Error [ID](http://dev.infobip.com/v1/docs/response-codes#error-object-example).|\n|*name*|String|Error [name](http://dev.infobip.com/v1/docs/response-codes#error-object-example).|\n|*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#error-object-example) of the error.|\n|*permanent*|boolean|Tells if the error [is permanent](http://dev.infobip.com/v1/docs/response-codes#error-object-example).|\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Information:\",\n  \"body\": \"**[Various Number Lookup packages](http://dev.infobip.com/v1/docs/number-context)** are available. Depending on your package, some information may not be accessible. For a package change, contact your Account Manager.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Additional examples\"\n}\n[/block]\n# Number Lookup - Single phone number\n\n**Request**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /number/1/query HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\nAccept: application/json\\n\\n{  \\n   \\\"to\\\":[\\\"41793026727\\\"]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"POST /number/1/query HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\\nContent-Type: application/xml\\nAccept: application/xml\\n\\n<request>\\n\\t<to>41793026727</to>\\n</request>\\t\\n\",\n      \"language\": \"xml\"\n    },\n    {\n      \"code\": \"curl -X POST \\\\\\n-H \\\"Content-Type: application/json\\\" \\\\\\n-H 'Accept: application/json' \\\\\\n-H \\\"Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\\\" \\\\\\n-d '{  \\n   \\\"to\\\":[\\\"41793026727\\\"]\\n}' https://api.infobip.com/number/1/query\",\n      \"language\": \"curl\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$curl = curl_init();\\n\\ncurl_setopt_array($curl, array(\\n  CURLOPT_URL => \\\"http://api.infobip.com/number/1/query\\\",\\n  CURLOPT_RETURNTRANSFER => true,\\n  CURLOPT_ENCODING => \\\"\\\",\\n  CURLOPT_MAXREDIRS => 10,\\n  CURLOPT_TIMEOUT => 30,\\n  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\\n  CURLOPT_CUSTOMREQUEST => \\\"POST\\\",\\n  CURLOPT_POSTFIELDS => \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\"]}\\\",\\n  CURLOPT_HTTPHEADER => array(\\n    \\\"accept: application/json\\\",\\n    \\\"authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    \\\"content-type: application/json\\\"\\n  ),\\n));\\n\\n$response = curl_exec($curl);\\n$err = curl_error($curl);\\n\\ncurl_close($curl);\\n\\nif ($err) {\\n  echo \\\"cURL Error #:\\\" . $err;\\n} else {\\n  echo $response;\\n}\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'uri'\\nrequire 'net/http'\\n\\nurl = URI(\\\"https://api.infobip.com/number/1/query\\\")\\n\\nhttp = Net::HTTP.new(url.host, url.port)\\nhttp.use_ssl = true\\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\\n\\nrequest = Net::HTTP::Post.new(url)\\nrequest[\\\"authorization\\\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nrequest[\\\"accept\\\"] = 'application/json'\\nrequest[\\\"content-type\\\"] = 'application/json'\\n\\nrequest.body = \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\"]}\\\"\\n\\nresponse = http.request(request)\\nputs response.read_body\",\n      \"language\": \"ruby\"\n    },\n    {\n      \"code\": \"import http.client\\n\\nconn = http.client.HTTPSConnection(\\\"api.infobip.com\\\")\\n\\npayload = \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\"]}\\\"\\n\\nheaders = {\\n    'authorization': \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    'accept': \\\"application/json\\\",\\n    'content-type': \\\"application/json\\\"\\n    }\\n\\nconn.request(\\\"POST\\\", \\\"/number/1/query\\\", payload, headers)\\n\\nres = conn.getresponse()\\ndata = res.read()\\n\\nprint(data.decode(\\\"utf-8\\\"))\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"HttpResponse<String> response = Unirest.post(\\\"https://api.infobip.com/number/1/query\\\")\\n  .header(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\")\\n  .header(\\\"accept\\\", \\\"application/json\\\")\\n  .header(\\\"content-type\\\", \\\"application/json\\\")\\n  .body(\\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\"]}\\\")\\n  .asString();\",\n      \"language\": \"java\"\n    },\n    {\n      \"code\": \"var client = new RestClient(\\\"https://api.infobip.com/number/1/query\\\");\\n\\nvar request = new RestRequest(Method.POST);\\nrequest.AddHeader(\\\"content-type\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"accept\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nrequest.AddParameter(\\\"application/json\\\", \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\"]}\\\", ParameterType.RequestBody);\\n\\nIRestResponse response = client.Execute(request);\",\n      \"language\": \"csharp\"\n    },\n    {\n      \"code\": \"var data = JSON.stringify({\\n  \\\"to\\\": [\\n    \\\"41793026727\\\"\\n  ]\\n});\\n\\nvar xhr = new XMLHttpRequest();\\nxhr.withCredentials = true;\\n\\nxhr.addEventListener(\\\"readystatechange\\\", function () {\\n  if (this.readyState === this.DONE) {\\n    console.log(this.responseText);\\n  }\\n});\\n\\nxhr.open(\\\"POST\\\", \\\"https://api.infobip.com/number/1/query\\\");\\nxhr.setRequestHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nxhr.setRequestHeader(\\\"accept\\\", \\\"application/json\\\");\\nxhr.setRequestHeader(\\\"content-type\\\", \\\"application/json\\\");\\n\\nxhr.send(data);\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n**Response**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/1.1 200 OK\\nContent-Type: application/json\\n\\n{  \\n   \\\"results\\\":[  \\n      {  \\n         \\\"to\\\":\\\"41793026727\\\",\\n         \\\"mccMnc\\\":\\\"22801\\\",\\n         \\\"originalNetwork\\\":{  \\n            \\\"networkPrefix\\\":\\\"79\\\",\\n            \\\"countryPrefix\\\":\\\"41\\\"\\n         },\\n         \\\"ported\\\":false,\\n         \\\"roaming\\\":false,\\n         \\\"status\\\":{  \\n            \\\"groupId\\\":2,\\n            \\\"groupName\\\":\\\"UNDELIVERABLE\\\",\\n            \\\"id\\\":9,\\n            \\\"name\\\":\\\"UNDELIVERABLE_NOT_DELIVERED\\\",\\n            \\\"description\\\":\\\"Message sent not delivered\\\"\\n         },\\n         \\\"error\\\":{  \\n            \\\"groupId\\\":1,\\n            \\\"groupName\\\":\\\"HANDSET_ERRORS\\\",\\n            \\\"id\\\":27,\\n            \\\"name\\\":\\\"EC_ABSENT_SUBSCRIBER\\\",\\n            \\\"description\\\":\\\"Absent Subscriber\\\",\\n            \\\"permanent\\\":false\\n         }\\n      }\\n   ]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"HTTP/1.1 200 OK\\nContent-Type: application/xml\\n\\n<ncResponse>\\n   <results>\\n      <result>\\n         <to>41793026727</to>\\n         <mccMnc>22801</mccMnc>\\n         <originalNetwork>\\n            <networkPrefix>79</networkPrefix>\\n            <countryPrefix>41</countryPrefix>\\n         </originalNetwork>\\n         <ported>false</ported>\\n         <roaming>false</roaming>\\n         <status>\\n            <groupId>2</groupId>\\n            <groupName>UNDELIVERABLE</groupName>\\n            <id>9</id>\\n            <name>UNDELIVERABLE_NOT_DELIVERED</name>\\n            <description>Message sent not delivered</description>\\n         </status>\\n         <error>\\n            <groupId>1</groupId>\\n            <groupName>HANDSET_ERRORS</groupName>\\n            <id>27</id>\\n            <name>EC_ABSENT_SUBSCRIBER</name>\\n            <description>Absent Subscriber</description>\\n            <permanent>false</permanent>\\n         </error>\\n      </result>\\n   </results>\\n</ncResponse>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\n# Number Lookup - Multiple phone numbers\n\n**Request**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /number/1/query HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\nAccept: application/json\\n\\n{  \\n   \\\"to\\\":[  \\n      \\\"41793026727\\\",\\n      \\\"3859851212\\\"\\n   ]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"POST /number/1/query HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/xml\\nAccept: application/xml\\n\\n<request>\\n   <to>\\n      <to>41793026727</to>\\n      <to>3859851212</to>\\n   </to>\\n</request>\",\n      \"language\": \"xml\"\n    },\n    {\n      \"code\": \"curl -X POST \\n-H \\\"Content-Type: application/json\\\" \\n-H 'Accept: application/json' \\n-H \\\"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=\\\" \\n-d '{  \\n   \\\"to\\\":[  \\n      \\\"41793026727\\\",\\n      \\\"3859851212\\\"\\n   ]\\n}' https://api.infobip.com/number/1/query\",\n      \"language\": \"curl\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$curl = curl_init();\\n\\ncurl_setopt_array($curl, array(\\n  CURLOPT_URL => \\\"http://api.infobip.com/number/1/query\\\",\\n  CURLOPT_RETURNTRANSFER => true,\\n  CURLOPT_ENCODING => \\\"\\\",\\n  CURLOPT_MAXREDIRS => 10,\\n  CURLOPT_TIMEOUT => 30,\\n  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\\n  CURLOPT_CUSTOMREQUEST => \\\"POST\\\",\\n  CURLOPT_POSTFIELDS => \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\",\\\\\\\"3859851212\\\\\\\"]}\\\",\\n  CURLOPT_HTTPHEADER => array(\\n    \\\"accept: application/json\\\",\\n    \\\"authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    \\\"content-type: application/json\\\"\\n  ),\\n));\\n\\n$response = curl_exec($curl);\\n$err = curl_error($curl);\\n\\ncurl_close($curl);\\n\\nif ($err) {\\n  echo \\\"cURL Error #:\\\" . $err;\\n} else {\\n  echo $response;\\n}\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'uri'\\nrequire 'net/http'\\n\\nurl = URI(\\\"https://api.infobip.com/number/1/query\\\")\\n\\nhttp = Net::HTTP.new(url.host, url.port)\\nhttp.use_ssl = true\\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\\n\\nrequest = Net::HTTP::Post.new(url)\\nrequest[\\\"authorization\\\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nrequest[\\\"accept\\\"] = 'application/json'\\nrequest[\\\"content-type\\\"] = 'application/json'\\n\\nrequest.body = \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\", \\\\\\\"3859851212\\\\\\\"]}\\\"\\n\\nresponse = http.request(request)\\nputs response.read_body\",\n      \"language\": \"ruby\"\n    },\n    {\n      \"code\": \"import http.client\\n\\nconn = http.client.HTTPSConnection(\\\"api.infobip.com\\\")\\n\\npayload = \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\", \\\\\\\"3859851212\\\\\\\"]}\\\"\\n\\nheaders = {\\n    'authorization': \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    'accept': \\\"application/json\\\",\\n    'content-type': \\\"application/json\\\"\\n    }\\n\\nconn.request(\\\"POST\\\", \\\"/number/1/query\\\", payload, headers)\\n\\nres = conn.getresponse()\\ndata = res.read()\\n\\nprint(data.decode(\\\"utf-8\\\"))\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"HttpResponse<String> response = Unirest.post(\\\"https://api.infobip.com/number/1/query\\\")\\n  .header(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\")\\n  .header(\\\"accept\\\", \\\"application/json\\\")\\n  .header(\\\"content-type\\\", \\\"application/json\\\")\\n  .body(\\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\", \\\\\\\"3859851212\\\\\\\"]}\\\")\\n  .asString();\",\n      \"language\": \"java\"\n    },\n    {\n      \"code\": \"var client = new RestClient(\\\"https://api.infobip.com/number/1/query\\\");\\n\\nvar request = new RestRequest(Method.POST);\\nrequest.AddHeader(\\\"content-type\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"accept\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nrequest.AddParameter(\\\"application/json\\\", \\\"{\\\\\\\"to\\\\\\\":[\\\\\\\"41793026727\\\\\\\", \\\\\\\"3859851212\\\\\\\"]}\\\", ParameterType.RequestBody);\\n\\nIRestResponse response = client.Execute(request);\",\n      \"language\": \"csharp\"\n    },\n    {\n      \"code\": \"var data = JSON.stringify({\\n  \\\"to\\\": [\\n    \\\"41793026727\\\",\\n    \\\"3859851212\\\"\\n  ]\\n});\\n\\nvar xhr = new XMLHttpRequest();\\nxhr.withCredentials = true;\\n\\nxhr.addEventListener(\\\"readystatechange\\\", function () {\\n  if (this.readyState === this.DONE) {\\n    console.log(this.responseText);\\n  }\\n});\\n\\nxhr.open(\\\"POST\\\", \\\"https://api.infobip.com/number/1/query\\\");\\nxhr.setRequestHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nxhr.setRequestHeader(\\\"accept\\\", \\\"application/json\\\");\\nxhr.setRequestHeader(\\\"content-type\\\", \\\"application/json\\\");\\n\\nxhr.send(data);\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n**Response**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/1.1 200 OK\\nContent-Type: application/json\\n\\n{  \\n   \\\"bulkId\\\":\\\"f5c4322c-10e7-a41e-5528-34fat43er4134\\\",\\n   \\\"results\\\":[  \\n      {  \\n         \\\"to\\\":\\\"3859851212\\\",\\n         \\\"mccMnc\\\":\\\"21901\\\",\\n         \\\"originalNetwork\\\":{  \\n            \\\"networkPrefix\\\":\\\"98\\\",\\n            \\\"countryPrefix\\\":\\\"385\\\"\\n         },\\n         \\\"ported\\\":false,\\n         \\\"roaming\\\":false,\\n         \\\"status\\\":{  \\n            \\\"groupId\\\":2,\\n            \\\"groupName\\\":\\\"UNDELIVERABLE\\\",\\n            \\\"id\\\":9,\\n            \\\"name\\\":\\\"UNDELIVERABLE_NOT_DELIVERED\\\",\\n            \\\"description\\\":\\\"Message sent not delivered\\\"\\n         },\\n         \\\"error\\\":{  \\n            \\\"groupId\\\":1,\\n            \\\"groupName\\\":\\\"HANDSET_ERRORS\\\",\\n            \\\"id\\\":1,\\n            \\\"name\\\":\\\"EC_UNKNOWN_SUBSCRIBER\\\",\\n            \\\"description\\\":\\\"Unknown Subscriber\\\",\\n            \\\"permanent\\\":true\\n         }\\n      },\\n      {  \\n         \\\"to\\\":\\\"41793026727\\\",\\n         \\\"mccMnc\\\":\\\"22801\\\",\\n         \\\"originalNetwork\\\":{  \\n            \\\"networkPrefix\\\":\\\"79\\\",\\n            \\\"countryPrefix\\\":\\\"41\\\"\\n         },\\n         \\\"ported\\\":false,\\n         \\\"roaming\\\":false,\\n         \\\"status\\\":{  \\n            \\\"groupId\\\":2,\\n            \\\"groupName\\\":\\\"UNDELIVERABLE\\\",\\n            \\\"id\\\":9,\\n            \\\"name\\\":\\\"UNDELIVERABLE_NOT_DELIVERED\\\",\\n            \\\"description\\\":\\\"Message sent not delivered\\\"\\n         },\\n         \\\"error\\\":{  \\n            \\\"groupId\\\":1,\\n            \\\"groupName\\\":\\\"HANDSET_ERRORS\\\",\\n            \\\"id\\\":27,\\n            \\\"name\\\":\\\"EC_ABSENT_SUBSCRIBER\\\",\\n            \\\"description\\\":\\\"Absent Subscriber\\\",\\n            \\\"permanent\\\":false\\n         }\\n      }\\n   ]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"HTTP/1.1 200 OK\\nContent-Type: application/xml\\n\\n<ncResponse>\\n   <bulkId>f5c4322c-10e7-a41e-5528-34fat43er4134</bulkId>\\n   <results>\\n      <result>\\n         <to>41793026727</to>\\n         <mccMnc>22801</mccMnc>\\n         <originalNetwork>\\n            <networkPrefix>79</networkPrefix>\\n            <countryPrefix>41</countryPrefix>\\n         </originalNetwork>\\n         <ported>false</ported>\\n         <roaming>false</roaming>\\n         <status>\\n            <groupId>2</groupId>\\n            <groupName>UNDELIVERABLE</groupName>\\n            <id>9</id>\\n            <name>UNDELIVERABLE_NOT_DELIVERED</name>\\n            <description>Message sent not delivered</description>\\n         </status>\\n         <error>\\n            <groupId>1</groupId>\\n            <groupName>HANDSET_ERRORS</groupName>\\n            <id>27</id>\\n            <name>EC_ABSENT_SUBSCRIBER</name>\\n            <description>Absent Subscriber</description>\\n            <permanent>false</permanent>\\n         </error>\\n      </result>\\n      <result>\\n         <to>3859851212</to>\\n         <mccMnc>21901</mccMnc>\\n         <originalNetwork>\\n            <networkPrefix>98</networkPrefix>\\n            <countryPrefix>385</countryPrefix>\\n         </originalNetwork>\\n         <ported>false</ported>\\n         <roaming>false</roaming>\\n         <status>\\n            <groupId>2</groupId>\\n            <groupName>UNDELIVERABLE</groupName>\\n            <id>9</id>\\n            <name>UNDELIVERABLE_NOT_DELIVERED</name>\\n            <description>Message sent not delivered</description>\\n         </status>\\n         <error>\\n            <groupId>1</groupId>\\n            <groupName>HANDSET_ERRORS</groupName>\\n            <id>1</id>\\n            <name>EC_UNKNOWN_SUBSCRIBER</name>\\n            <description>Unknown Subscriber</description>\\n            <permanent>true</permanent>\\n         </error>\\n      </result>\\n   </results>\\n</ncResponse>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]","excerpt":"This method gives you the ability to make a synchronous Number Lookup request over HTTP. Number Lookup response is returned immediately, eliminating the need for the call back server.\n\nUnlike the asynchronous version of Number Lookup, this endpoint is intended to be used to check smaller amounts of phone numbers and does not support batch processing. It is more convenient, and can be used in scenarios like validating individual phone numbers collected from the user interface. Note that this API endpoint may incur larger latency then the reset of the API.","slug":"sending-synchronous-request","type":"endpoint","title":"Synchronous request"}

postSynchronous request

This method gives you the ability to make a synchronous Number Lookup request over HTTP. Number Lookup response is returned immediately, eliminating the need for the call back server. Unlike the asynchronous version of Number Lookup, this endpoint is intended to be used to check smaller amounts of phone numbers and does not support batch processing. It is more convenient, and can be used in scenarios like validating individual phone numbers collected from the user interface. Note that this API endpoint may incur larger latency then the reset of the API.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

to:
required
array of strings
Array of Number Lookup destination addresses. Maximum supported number of destination addresses is **1000** per request. If the Number Lookup is requested for one phone number, a single String is supported instead of an Array. Destination addresses must be in international format (Example: 41793026727).

Examples


Result Format


Documentation

# Response format If successful, the response header HTTP status code will be `200 OK` and include Number Lookup information in the response body. If you try to send a Number Lookup without authorization, you will get a response with the HTTP status code `401 Unauthorized`. If your request contains more than 1000 destination addresses, API will return the status code `400 Bad Request`. ### NCResponse |Parameter|Type|Description| |-|-|-| |* bulkId*|String|The ID that uniquely identifies the request. Bulk ID will be received only when you send a [Number Lookup to more than one destination address](#number-context-lookup-multiple-phone-numbers).| |*results*|[NCResponseDetails](#section-ncresponsedetails)|Array of Number Lookup results, one per every phone number.| ### NCResponseDetails |Parameter|Type|Description| |-|-|-| |*to*|String|The Number Lookup destination address.| |*mccMnc*|String|Mobile country code and mobile network code concatenated. MccMnc will start with the MCC, and it will always have three digits, followed by the MNC (length of the MNC depends on the value of the MCC, and it can be two or three).| |*imsi*|String|International Mobile Subscriber Identity, used to uniquely identify the user of a mobile network.| |*originalNetwork*|[Network](#section-network)|Information about the original network.| |*ported*|Boolean|Tells if the phone number is ported.| |*portedNetwork*|[Network](#section-network)|Information about the ported network.| |*roaming*|Boolean|Informs if the phone number is in roaming.| |*roamingNetwork*|[Network](#section-network)|Information about the roaming network.| |*servingMSC*|String|Serving mobile switching center.| |*status*|[Status](#section-status)|Indicates whether the Number Lookup query was successfully executed, not executed or any other possible status.| |*error*|[Error](#section-error)|Indicates whether the error occurred during the query execution.| #### Network |Parameter|Type|Description| |-|-|-| |*networkName*|String|Network name.| |*networkPrefix*|String|Network prefix.| |*countryName*|String|Country name.| |*countryPrefix*|String|Country prefix.| #### Status |Parameter|Type|Description| |-|-|-| |*groupId*|int|Status [group ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*groupName*|String|Status [group name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*id*|int|Status [ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*name*|String|Status [name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#status-object-example) of the status.| |*action*|String|[Action](http://dev.infobip.com/v1/docs/response-codes#status-object-example) that should be taken to eliminate the error.| #### Error |Parameter|Type|Description| |-|-|-| |*groupId*|int|Error [group ID](http://dev.infobip.com/v1/docs/response-codes#error-object-example).| |*groupName*|String|Error [group name](http://dev.infobip.com/v1/docs/response-codes#error-object-example).| |*id*|int|Error [ID](http://dev.infobip.com/v1/docs/response-codes#error-object-example).| |*name*|String|Error [name](http://dev.infobip.com/v1/docs/response-codes#error-object-example).| |*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#error-object-example) of the error.| |*permanent*|boolean|Tells if the error [is permanent](http://dev.infobip.com/v1/docs/response-codes#error-object-example).| [block:callout] { "type": "info", "title": "Information:", "body": "**[Various Number Lookup packages](http://dev.infobip.com/v1/docs/number-context)** are available. Depending on your package, some information may not be accessible. For a package change, contact your Account Manager." } [/block] [block:api-header] { "type": "basic", "title": "Additional examples" } [/block] # Number Lookup - Single phone number **Request** [block:code] { "codes": [ { "code": "POST /number/1/query HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{ \n \"to\":[\"41793026727\"]\n}", "language": "json" }, { "code": "POST /number/1/query HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\nContent-Type: application/xml\nAccept: application/xml\n\n<request>\n\t<to>41793026727</to>\n</request>\t\n", "language": "xml" }, { "code": "curl -X POST \\\n-H \"Content-Type: application/json\" \\\n-H 'Accept: application/json' \\\n-H \"Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\" \\\n-d '{ \n \"to\":[\"41793026727\"]\n}' https://api.infobip.com/number/1/query", "language": "curl" }, { "code": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n CURLOPT_URL => \"http://api.infobip.com/number/1/query\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"{\\\"to\\\":[\\\"41793026727\\\"]}\",\n CURLOPT_HTTPHEADER => array(\n \"accept: application/json\",\n \"authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n \"content-type: application/json\"\n ),\n));\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}", "language": "php" }, { "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/number/1/query\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\n\nrequest.body = \"{\\\"to\\\":[\\\"41793026727\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body", "language": "ruby" }, { "code": "import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\npayload = \"{\\\"to\\\":[\\\"41793026727\\\"]}\"\n\nheaders = {\n 'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n 'accept': \"application/json\",\n 'content-type': \"application/json\"\n }\n\nconn.request(\"POST\", \"/number/1/query\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))", "language": "python" }, { "code": "HttpResponse<String> response = Unirest.post(\"https://api.infobip.com/number/1/query\")\n .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .body(\"{\\\"to\\\":[\\\"41793026727\\\"]}\")\n .asString();", "language": "java" }, { "code": "var client = new RestClient(\"https://api.infobip.com/number/1/query\");\n\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nrequest.AddParameter(\"application/json\", \"{\\\"to\\\":[\\\"41793026727\\\"]}\", ParameterType.RequestBody);\n\nIRestResponse response = client.Execute(request);", "language": "csharp" }, { "code": "var data = JSON.stringify({\n \"to\": [\n \"41793026727\"\n ]\n});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"POST\", \"https://api.infobip.com/number/1/query\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\n\nxhr.send(data);", "language": "javascript" } ] } [/block] **Response** [block:code] { "codes": [ { "code": "HTTP/1.1 200 OK\nContent-Type: application/json\n\n{ \n \"results\":[ \n { \n \"to\":\"41793026727\",\n \"mccMnc\":\"22801\",\n \"originalNetwork\":{ \n \"networkPrefix\":\"79\",\n \"countryPrefix\":\"41\"\n },\n \"ported\":false,\n \"roaming\":false,\n \"status\":{ \n \"groupId\":2,\n \"groupName\":\"UNDELIVERABLE\",\n \"id\":9,\n \"name\":\"UNDELIVERABLE_NOT_DELIVERED\",\n \"description\":\"Message sent not delivered\"\n },\n \"error\":{ \n \"groupId\":1,\n \"groupName\":\"HANDSET_ERRORS\",\n \"id\":27,\n \"name\":\"EC_ABSENT_SUBSCRIBER\",\n \"description\":\"Absent Subscriber\",\n \"permanent\":false\n }\n }\n ]\n}", "language": "json" }, { "code": "HTTP/1.1 200 OK\nContent-Type: application/xml\n\n<ncResponse>\n <results>\n <result>\n <to>41793026727</to>\n <mccMnc>22801</mccMnc>\n <originalNetwork>\n <networkPrefix>79</networkPrefix>\n <countryPrefix>41</countryPrefix>\n </originalNetwork>\n <ported>false</ported>\n <roaming>false</roaming>\n <status>\n <groupId>2</groupId>\n <groupName>UNDELIVERABLE</groupName>\n <id>9</id>\n <name>UNDELIVERABLE_NOT_DELIVERED</name>\n <description>Message sent not delivered</description>\n </status>\n <error>\n <groupId>1</groupId>\n <groupName>HANDSET_ERRORS</groupName>\n <id>27</id>\n <name>EC_ABSENT_SUBSCRIBER</name>\n <description>Absent Subscriber</description>\n <permanent>false</permanent>\n </error>\n </result>\n </results>\n</ncResponse>", "language": "xml" } ] } [/block] # Number Lookup - Multiple phone numbers **Request** [block:code] { "codes": [ { "code": "POST /number/1/query HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{ \n \"to\":[ \n \"41793026727\",\n \"3859851212\"\n ]\n}", "language": "json" }, { "code": "POST /number/1/query HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/xml\nAccept: application/xml\n\n<request>\n <to>\n <to>41793026727</to>\n <to>3859851212</to>\n </to>\n</request>", "language": "xml" }, { "code": "curl -X POST \n-H \"Content-Type: application/json\" \n-H 'Accept: application/json' \n-H \"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=\" \n-d '{ \n \"to\":[ \n \"41793026727\",\n \"3859851212\"\n ]\n}' https://api.infobip.com/number/1/query", "language": "curl" }, { "code": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n CURLOPT_URL => \"http://api.infobip.com/number/1/query\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"{\\\"to\\\":[\\\"41793026727\\\",\\\"3859851212\\\"]}\",\n CURLOPT_HTTPHEADER => array(\n \"accept: application/json\",\n \"authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n \"content-type: application/json\"\n ),\n));\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}", "language": "php" }, { "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/number/1/query\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\nrequest[\"content-type\"] = 'application/json'\n\nrequest.body = \"{\\\"to\\\":[\\\"41793026727\\\", \\\"3859851212\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body", "language": "ruby" }, { "code": "import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\npayload = \"{\\\"to\\\":[\\\"41793026727\\\", \\\"3859851212\\\"]}\"\n\nheaders = {\n 'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n 'accept': \"application/json\",\n 'content-type': \"application/json\"\n }\n\nconn.request(\"POST\", \"/number/1/query\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))", "language": "python" }, { "code": "HttpResponse<String> response = Unirest.post(\"https://api.infobip.com/number/1/query\")\n .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n .header(\"accept\", \"application/json\")\n .header(\"content-type\", \"application/json\")\n .body(\"{\\\"to\\\":[\\\"41793026727\\\", \\\"3859851212\\\"]}\")\n .asString();", "language": "java" }, { "code": "var client = new RestClient(\"https://api.infobip.com/number/1/query\");\n\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nrequest.AddParameter(\"application/json\", \"{\\\"to\\\":[\\\"41793026727\\\", \\\"3859851212\\\"]}\", ParameterType.RequestBody);\n\nIRestResponse response = client.Execute(request);", "language": "csharp" }, { "code": "var data = JSON.stringify({\n \"to\": [\n \"41793026727\",\n \"3859851212\"\n ]\n});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"POST\", \"https://api.infobip.com/number/1/query\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\n\nxhr.send(data);", "language": "javascript" } ] } [/block] **Response** [block:code] { "codes": [ { "code": "HTTP/1.1 200 OK\nContent-Type: application/json\n\n{ \n \"bulkId\":\"f5c4322c-10e7-a41e-5528-34fat43er4134\",\n \"results\":[ \n { \n \"to\":\"3859851212\",\n \"mccMnc\":\"21901\",\n \"originalNetwork\":{ \n \"networkPrefix\":\"98\",\n \"countryPrefix\":\"385\"\n },\n \"ported\":false,\n \"roaming\":false,\n \"status\":{ \n \"groupId\":2,\n \"groupName\":\"UNDELIVERABLE\",\n \"id\":9,\n \"name\":\"UNDELIVERABLE_NOT_DELIVERED\",\n \"description\":\"Message sent not delivered\"\n },\n \"error\":{ \n \"groupId\":1,\n \"groupName\":\"HANDSET_ERRORS\",\n \"id\":1,\n \"name\":\"EC_UNKNOWN_SUBSCRIBER\",\n \"description\":\"Unknown Subscriber\",\n \"permanent\":true\n }\n },\n { \n \"to\":\"41793026727\",\n \"mccMnc\":\"22801\",\n \"originalNetwork\":{ \n \"networkPrefix\":\"79\",\n \"countryPrefix\":\"41\"\n },\n \"ported\":false,\n \"roaming\":false,\n \"status\":{ \n \"groupId\":2,\n \"groupName\":\"UNDELIVERABLE\",\n \"id\":9,\n \"name\":\"UNDELIVERABLE_NOT_DELIVERED\",\n \"description\":\"Message sent not delivered\"\n },\n \"error\":{ \n \"groupId\":1,\n \"groupName\":\"HANDSET_ERRORS\",\n \"id\":27,\n \"name\":\"EC_ABSENT_SUBSCRIBER\",\n \"description\":\"Absent Subscriber\",\n \"permanent\":false\n }\n }\n ]\n}", "language": "json" }, { "code": "HTTP/1.1 200 OK\nContent-Type: application/xml\n\n<ncResponse>\n <bulkId>f5c4322c-10e7-a41e-5528-34fat43er4134</bulkId>\n <results>\n <result>\n <to>41793026727</to>\n <mccMnc>22801</mccMnc>\n <originalNetwork>\n <networkPrefix>79</networkPrefix>\n <countryPrefix>41</countryPrefix>\n </originalNetwork>\n <ported>false</ported>\n <roaming>false</roaming>\n <status>\n <groupId>2</groupId>\n <groupName>UNDELIVERABLE</groupName>\n <id>9</id>\n <name>UNDELIVERABLE_NOT_DELIVERED</name>\n <description>Message sent not delivered</description>\n </status>\n <error>\n <groupId>1</groupId>\n <groupName>HANDSET_ERRORS</groupName>\n <id>27</id>\n <name>EC_ABSENT_SUBSCRIBER</name>\n <description>Absent Subscriber</description>\n <permanent>false</permanent>\n </error>\n </result>\n <result>\n <to>3859851212</to>\n <mccMnc>21901</mccMnc>\n <originalNetwork>\n <networkPrefix>98</networkPrefix>\n <countryPrefix>385</countryPrefix>\n </originalNetwork>\n <ported>false</ported>\n <roaming>false</roaming>\n <status>\n <groupId>2</groupId>\n <groupName>UNDELIVERABLE</groupName>\n <id>9</id>\n <name>UNDELIVERABLE_NOT_DELIVERED</name>\n <description>Message sent not delivered</description>\n </status>\n <error>\n <groupId>1</groupId>\n <groupName>HANDSET_ERRORS</groupName>\n <id>1</id>\n <name>EC_UNKNOWN_SUBSCRIBER</name>\n <description>Unknown Subscriber</description>\n <permanent>true</permanent>\n </error>\n </result>\n </results>\n</ncResponse>", "language": "xml" } ] } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}