openapi: 3.2.0 info: version: '1.0' title: Airtel IoT KYC Manager API contact: email: m2m.support@airtel.com description: "# Overview\n ## Introduction\n
\n The OAuth 2.0 authorization code grant will be used by customer to gain access to protected\n resources, such as APIs.\n This set of APIs shall allow user to generate Access Token and refresh Access Token to perform\n any action on CMP via the API gateway.\n
To get a token by using the client Id & Client Secret, send a POST request to the /developer/generate/authtoken
curl -X POST \"https://openapi.airtel.in/iot/api/developer/generate/authtoken\"\n -H \"accept: application/json\"\n -H \"apikey: XXXXXXXXXXXXXXXXXXXXXX\"\n -H \"iv-user: XXXXXXXXXXXXXXXXXXXXXX\"\n -H \"Content-Type: application/x-www-form-urlencoded\"\n -d \"client_id=XXXXXXXXXXXXXXXXXXXXXX&client_secret=XXXXXXXXXXXXXXXXXXXXXX\"\n {\n \"data\": {\n \"refresh_token\": \"XXXXXXXXXXXXXXXXXXXXXX\",\n \"token_type\": \"bearer\",\n \"access_token\": \"XXXXXXXXXXXXXXXXXXXXXX\",\n \"expires_in\": 1800\n }\n }\n You can generate same request response from Airtel IoT Developer Portal. To do so :\n \n This API shall allow user to fetch the details of SIMs on that Customer\n Account. It can fetch the details of one or more SIMs at a time.\n
curl -X GET \"https://openapi.airtel.in/iot/api/customer/details/basket/0/sims\n ?pageNo=1&pageSize=1&simStatus=INITIAL\"\n -H \"accept: application/json\"\n -H \"Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX\"\n -H \"apikey: XXXXXXXXXXXXXXXXXXXXXX\"\n -H \"customer-id: XXXX\"\n -H \"iv-user: XXXXXXXXXXXXXXXXXXXXXX\"\n {\n \"data\":\n {\n \"sims\": [\n {\n \"simId\": \"5165173\",\n \"mobileNo\": \"51967694502\",\n \"simNo\": \"9999000000000000000\",\n \"imsi\": \"30811010404043400\",\n \"lsi\": \" \",\n \"status\": \"INITIAL\",\n \"isPaired\": \"0\",\n \"isPrepaidSim\": \"0\",\n \"circleName\": \"DELHI\",\n \"planCode\": \"M2M_PLN_0324\",\n \"planName\": \"VTS 49 special plan(without voice with sms)\",\n \"description\": \"VTS 49 special plan(without voice with sms)\",\n \"dataType\": \"2G\",\n \"dataUnits\": \"250\",\n \"planType\": \"0\"\n }\n ],\n \"total\": \"10000\"\n }\n }\n \n You can generate same request response from Airtel IoT Developer Portal. To do so :\n \n This API shall allow user to fetch the details of Plans that are associated with the Customer\n Account. It returns the Plan code, plan name, plan description and whether it is a test plan or\n actual plan as defined on the account.\n
curl -X GET \"https://openapi.airtel.in/iot/api/customer/details/plans\"\n -H \"accept: application/json\"\n -H \"Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX\"\n -H \"apikey: XXXXXXXXXXXXXXXXXXXXXX\"\n -H \"customer-id: XXXX\"\n -H \"iv-user: XXXXXXXXXXXXXXXXXXXXXX\"\n {\n \"data\": [\n {\n \"planCode\": \"M2M_PLN_0001\",\n \"planName\": \"M2M-2G-1GB PLAN\",\n \"planDescription\": \"M2M-2G-1GB PLAN\",\n \"testPlan\": false\n },\n {\n \"planCode\": \"M2M_PLN_0003\",\n \"planName\": \"M2M 3G - 100 MB PLAN\",\n \"planDescription\": \"M2M 3G - 100 MB PLAN\",\n \"testPlan\": true\n }\n ]\n }\n You can generate same request response from Airtel IoT Developer Portal. To do so :\n \n This API shall allow user to change the state of SIM from Available (Initial to Activate) to\n Active with Plan that is associated with the Billable account. It requires inputs as mobile\n number and plan code.\n
curl -X POST \"https://openapi.airtel.in/iot/api/om/job/sim/activate\"\n -H \"accept: application/json\"\n -H \"Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXX\"\n -H \"apikey: XXXXXXXXXXXXXXXXXXXXXXXXX\"\n -H \"customer-id: XXXX\"\n -H \"iv-user: XXXXXXXXXXXXXXXXXXXXXXXXX\"\n -H \"Content-Type: application/json\"\n -d \"{ \\\"simDOList\\\": [ { \\\"mobileNO\\\": \\\"51967694502\\\",\n \\\"planDO\\\": { \\\"planCode\\\": \\\"M2M_PLN_0001\\\" } } ]}\"\n {\n \"data\": {\n \"jobId\": 795405,\n \"jobType\": \"ACTIVATE_SIM\",\n \"orderCount\": 0,\n \"successCount\": 0,\n \"failureCount\": 0,\n \"inProgressCount\": 0,\n \"rejectedCount\": 0,\n \"orderInitiateDate\": \"25-04-2019 03:35:40 PM\",\n \"statusMessage\": \"Your request is in progress\"\n }\n }\n You can generate same request response from Airtel IoT Developer Portal. To do so :\n NOTE
\n The JobId in the response is important to track the status of activation order. The details of JobId can be fetched from Fetch Jobs API. There shall be Order ID(s) within a JobId to view status of specific Order(s) in a JobId.