Airtel IoT

Download OpenAPI specification:Download

Overview

Introduction

Airtel IoT Developer Portal showcases APIs that allows you to access data of the CMP Billable account from any external application. Using the APIs, you can perform almost all the operations that you perform through the CMP portal including Managing SIM Inventory, Changing SIM state (Test Mode, Activate, Change Plan, Safe custody), Monitoring data usage, Performing bulk operations and so on.

In this section, you’ll learn Airtel IoT Developer Portal Dashboard.

API Credentials

This section provide static details of Customer which will be used for accessing APIs.

Key Authentication
A Unique Identification Secret Key per Customer, must be passed in Headers while calling API and will be used for Authentication purpose.
Customer Information
Customer Information will show details of Customer Developer Account. This shows Customer Id, Customer Account No, Email Id, iv-user, Name, Developer Created By and Developer Created On. Some of these information will be used in accessing APIs.
OAuth2.0
Customer has to use unique Client Id and Client Secret mentioned in OAuth Credential table for Authentication of APIs.

Usage Information

This section provide Customer API usages details. This can show details based on different timestamps:

Activating your first SIM

Generating OAuth 2.0 token

The OAuth 2.0 authorization code grant will be used by customer to gain access to protected resources, such as APIs. This set of APIs shall allow user to generate Access Token and refresh Access Token to perform any action on CMP via the API gateway.

Request an Access Token

To get a token by using the client Id & Client Secret, send a POST request to the /developer/generate/authtoken

Sample Request

curl -X POST "https://openapi.airtel.in/iot/api/developer/generate/authtoken"
         -H "accept: application/json"
         -H "apikey: XXXXXXXXXXXXXXXXXXXXXX"
         -H "iv-user: XXXXXXXXXXXXXXXXXXXXXX"
         -H "Content-Type: application/x-www-form-urlencoded"
         -d "client_id=XXXXXXXXXXXXXXXXXXXXXX&client_secret=XXXXXXXXXXXXXXXXXXXXXX"
       

Sample Response

{
           "data": {
             "refresh_token": "XXXXXXXXXXXXXXXXXXXXXX",
             "token_type": "bearer",
             "access_token": "XXXXXXXXXXXXXXXXXXXXXX",
             "expires_in": 1800
           }
         }
         
       You can generate same request response from Airtel IoT Developer Portal. To do so :
  • Navigate to DocumentationAccount AuthorizationGenerate Access TokenTest Endpoint
  • Put values of apikey, client_id, client_secret, iv-user in mentioned text fields from Dashboard
  • Make API Call.

Fetch SIM Inventory

This API shall allow user to fetch the details of SIMs on that Customer Account. It can fetch the details of one or more SIMs at a time.

Sample Request

curl -X GET "https://openapi.airtel.in/iot/api/customer/details/basket/0/sims
       ?pageNo=1&pageSize=1&simStatus=INITIAL"
       -H "accept: application/json"
       -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX"
       -H "apikey: XXXXXXXXXXXXXXXXXXXXXX"
       -H "customer-id: XXXX"
       -H "iv-user: XXXXXXXXXXXXXXXXXXXXXX"
     

Sample Response

{
       "data":
       {
         "sims": [
         {
           "simId": "5165173",
           "mobileNo": "51967694502",
           "simNo": "9999000000000000000",
           "imsi": "30811010404043400",
           "lsi": " ",
           "status": "INITIAL",
           "isPaired": "0",
           "isPrepaidSim": "0",
           "circleName": "DELHI",
           "planCode": "M2M_PLN_0324",
           "planName": "VTS 49 special plan(without voice with sms)",
           "description": "VTS 49 special plan(without voice with sms)",
           "dataType": "2G",
           "dataUnits": "250",
           "planType": "0"
         }
         ],
         "total": "10000"
       }
     }
     
       You can generate same request response from Airtel IoT Developer Portal. To do so :
  • Navigate to DocumentationManage SIMsFetch SIMsTest Endpoint
  • Replace Bearer Token from access token generated from Generating OAuth 2.0 token
  • Put values of apikey, iv-user & customer-id in mentioned text fields from Dashboard.
  • Select simStatus as INITIAL
  • Make API Call.

Fetch Plans

This API shall allow user to fetch the details of Plans that are associated with the Customer Account. It returns the Plan code, plan name, plan description and whether it is a test plan or actual plan as defined on the account.

Sample Request

curl -X GET "https://openapi.airtel.in/iot/api/customer/details/plans"
         -H "accept: application/json"
         -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX"
         -H "apikey: XXXXXXXXXXXXXXXXXXXXXX"
         -H "customer-id: XXXX"
         -H "iv-user: XXXXXXXXXXXXXXXXXXXXXX"
       

Sample Response

{
         "data": [
         {
           "planCode": "M2M_PLN_0001",
           "planName": "M2M-2G-1GB PLAN",
           "planDescription": "M2M-2G-1GB PLAN",
           "testPlan": false
         },
         {
           "planCode": "M2M_PLN_0003",
           "planName": "M2M 3G - 100 MB PLAN",
           "planDescription": "M2M 3G - 100 MB PLAN",
           "testPlan": true
         }
         ]
       }
     
       You can generate same request response from Airtel IoT Developer Portal. To do so :
  • Navigate to DocumentationAccount DetailsFetch Customer PlansTest Endpoint
  • Replace Bearer Token from access token generated from Generating OAuth 2.0 token
  • Put values of apikey, iv-user & customer-id in mentioned text fields from Dashboard.
  • Make API Call.

Perform Activation

This API shall allow user to change the state of SIM from Available (Initial to Activate) to Active with Plan that is associated with the Billable account. It requires inputs as mobile number and plan code.

Sample Request

curl -X POST "https://openapi.airtel.in/iot/api/om/job/sim/activate"
         -H "accept: application/json"
         -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXX"
         -H "apikey: XXXXXXXXXXXXXXXXXXXXXXXXX"
         -H "customer-id: XXXX"
         -H "iv-user: XXXXXXXXXXXXXXXXXXXXXXXXX"
         -H "Content-Type: application/json"
         -d "{ \"simDOList\": [ { \"mobileNO\": \"51967694502\",
         \"planDO\": { \"planCode\": \"M2M_PLN_0001\" } } ]}"
       

Sample Response

{
       "data": {
           "jobId": 795405,
           "jobType": "ACTIVATE_SIM",
           "orderCount": 0,
           "successCount": 0,
           "failureCount": 0,
           "inProgressCount": 0,
           "rejectedCount": 0,
           "orderInitiateDate": "25-04-2019 03:35:40 PM",
           "statusMessage": "Your request is in progress"
       }
   }
   
       You can generate same request response from Airtel IoT Developer Portal. To do so :
  • Navigate to DocumentationNew OrdersActivate SimActivate SimTest Endpoint
  • Replace Bearer Token from access token generated from Generating OAuth 2.0 token
  • Put values of apikey, iv-user & customer-id in mentioned text fields from Dashboard.
  • Put mobileNo in body fetched from response of API Fetch SIM Inventory
  • Put planCode in body fetched from response of API Fetch Plans
  • Make API Call.

NOTE
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.


Account Authorization

This set of APIs shall allow user to generate Access Token and refresh Access Token to perform any action on CMP via the API gateway.

Generate Access Token

This API shall allow user to generate Access Token to be used while doing any operations on the portal via APIs.

header Parameters
apikey
required
string

apikey

iv-user
required
string

Developer Account User ID

Request Body schema: application/x-www-form-urlencoded
required
client_id
required
string

Unique ID to Authorize Customer (shared during On-Boarding process)

client_secret
required
string

Developer Account Secret Key (shared during On-Boarding process) that shall be used to generate Token

Responses

Response samples

Content type
application/json
{
  • "property1": { },
  • "property2": { }
}

Refresh Access Token

This API shall allow user to refresh Access Token to be used while doing any operations on the portal via APIs.

header Parameters
apikey
required
string

apikey

iv-user
required
string

Developer Account User ID

Request Body schema: application/x-www-form-urlencoded
required
client_id
required
string

Unique ID to Authorize Customer (shared during On-Boarding process)

client_secret
required
string

Developer Account Secret Key (shared during On-Boarding process) that shall be used to generate Token

refresh_token
required
string

Token used to refresh access_token

Responses

Response samples

Content type
application/json
{
  • "property1": { },
  • "property2": { }
}

Account Details

This set of APIs fetch various details about a Billable Customer Account including Customer Profile, Plan details, User details and so on.

Fetch Customer Profile

This API shall allow user to fetch the overall profile of Customer as created at the time of On-Boarding.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "aadhaarNo": "string",
  • "accountCategory": "string",
  • "accountType": "string",
  • "activeSIMs": 0,
  • "address": "string",
  • "alternatePhoneNumber": "string",
  • "apn": "string",
  • "attribute1": "string",
  • "attribute2": "string",
  • "availableSIMs": 0,
  • "billCycle": "string",
  • "billCycleCutOff": "string",
  • "billMedia": "string",
  • "billType": "string",
  • "billingAddress": "string",
  • "billingCycle": "string",
  • "caAccountNo": "string",
  • "circleId": "string",
  • "cmpType": "string",
  • "companyCode": "string",
  • "coordinatorEmailId": "string",
  • "coordinatorMobile": "string",
  • "coordinatorName": "string",
  • "createdBy": "string",
  • "createdOn": "string",
  • "creditLimit": "string",
  • "crm": "string",
  • "custClass": "string",
  • "custRank": "string",
  • "customerAccountNumber": "string",
  • "customerAddressVO": [
    ],
  • "customerBillableId": "string",
  • "customerCircleId": "string",
  • "customerContactsVO": [
    ],
  • "customerId": 0,
  • "customerName": "string",
  • "customerPreferencesVO": {
    },
  • "customerType": "string",
  • "emailAddress": "string",
  • "groupAccount": "string",
  • "groupAccountServ": "string",
  • "gstNo": "string",
  • "inActiveSIMs": 0,
  • "inProgressSIMs": 0,
  • "kycAgreementTime": "string",
  • "kycIPAddress": "string",
  • "kycagreed": true,
  • "lastUpdatedBy": "string",
  • "lastUpdatedOn": "string",
  • "liveCustomer": true,
  • "localAddress": "string",
  • "m2mSolution": "string",
  • "maxBasketSize": 0,
  • "panNo": "string",
  • "parentAccountNumber": "string",
  • "permanentAddress": "string",
  • "preferredLanguage": "string",
  • "primaryLSI": "string",
  • "primaryPhoneNumber": "string",
  • "primaryPhoneSetDefault": true,
  • "primaryServiceNo": "string",
  • "productType": "string",
  • "safeCustodySIMs": 0,
  • "secondaryLSI": "string",
  • "secondaryServiceNo": "string",
  • "status": "string",
  • "tanNo": "string",
  • "tdsPercentage": "string",
  • "testModeSIMs": 0,
  • "tinNo": "string",
  • "totalBasketCount": 0,
  • "totalCustomer": 0,
  • "totalNoOfSim": 0,
  • "totalSIMs": 0,
  • "uinNo": "string",
  • "userAcceptingKYC": "string"
}

Fetch Customer Statistics

This API shall allow user to fetch the SIM Inventory statistics of a Customer Account at any given time. It returns the summary of SIM inventory as itâs shown on CMP portal.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "totalActiveSims": "string",
  • "totalAvailableSims": "string",
  • "totalBaskets": "string",
  • "totalInActiveSims": "string",
  • "totalInProgressSims": "string",
  • "totalSafeCustodySims": "string",
  • "totalSims": "string",
  • "totalSuspendedSims": "string",
  • "totalTempDisconnectedSims": "string",
  • "totalTestModeSims": "string",
  • "userStats": [
    ]
}

Fetch Customer Plans

This API shall allow user to fetch the details of Plans that are associated with the Customer Account. It returns the Plan code, plan name and plan description as defined on the account.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Inventory Management

This set of APIs fetch various details about Sim details, Basket details and so on in the account.

Download History

This API call is used to get the records for downloading files from Download History page that are processed for Download on the portal. It returns the Download Type, Requested and Completion date, status of download, and file name.

query Parameters
pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "downloadHistories": [
    ],
  • "total": "string"
}

Download File

This API call is used to download the file which is available or ready to download after processing from Download History Page.

path Parameters
downloadFileId
required
integer <int64>

downloadFileId

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Download SIM Inventory

This API call returns the SIM inventory file in excel format for that Billable account.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "basketName": "string",
  • "completionDate": "string",
  • "creationDate": "string",
  • "downloadFileId": 0,
  • "downloadType": "string",
  • "extension": "string",
  • "fileName": "string",
  • "progress": 0,
  • "status": "string"
}

Fetch Customer Baskets

This API shall allow user to fetch the details of Baskets that are created on that Customer Account. It can fetch the details of a particular basket at any given point. It returns the SIM details in that basket with different states (Active, Available, Safe Custody, Test Mode, Suspended) along with Basket description and user details to whom that basket is assigned.

query Parameters
basketId
integer <int64>

Basket ID

basketName
string

Basket Name

detailedView
boolean
Default: true

${detailedView.notes}

myBaskets
boolean
Default: false

My Baskets(Basket Onwer)

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "baskets": [
    ],
  • "totalActiveSims": "string",
  • "totalAvailableSims": "string",
  • "totalBaskets": "string",
  • "totalInActiveSims": "string",
  • "totalInProgressSims": "string",
  • "totalSafeCustodySims": "string",
  • "totalSims": "string",
  • "totalSuspendedSims": "string",
  • "totalTestModeSims": "string"
}

Fetch SIMs.

This API shall allow user to fetch the details of SIMs in a particular Basket on that Customer Account. It can fetch the details of one or more SIMs at a time from a particular basket including SIM details, Plan details, SIM status, and other required details of SIMs in basket as it is shown on the CMP portal.

path Parameters
basketId
required
integer <int64>
Default: 0

Basket ID

query Parameters
filterValue
string

Value on which Sims to be filtered

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

simFilterType
string
Enum: "MSISDN" "SIM_NO" "IMSI"

Filter Type on which Sims to be filtered. The allowed types are MSISDN / SIM

simStatus
string
Enum: "INITIAL" "ACTIVE" "SAFE_CUSTODY" "ACTIVATED_ON_TEST_MODE" "IN_PROGRESS" "SUSPENDED" "TEMP_DISCONNECT" "ACTIVE_AND_SAFE_CUSTODY" "ACTIVE_AND_TEMP_DISCONNECT"

Status of SIM(s) being fetched from a basket

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "sims": [
    ],
  • "total": "string"
}

SIM LifeCycle

This API shall allow user to change the state of SIMs.

Activate SIM from Test Mode

This API shall allow user to change the Bill Plan on a particular SIM from test plan to the commercial plan associated with that Billable account. It requires inputs as mobile number and target plan code.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

changePlanOrder

required
Array of objects (SimDOWithPlan)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Change Plan

This API shall allow user to change the Bill Plan on a particular SIM from one Plan to the other Plan associated with that Billable account. It requires inputs as mobile number and target plan code.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

changePlanOrder

required
Array of objects (SimDOWithPlan)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Activate SIM

This API shall allow user to change the state of SIM from Available (Ready to Activate) to Active with Plan that is associated with the Billable account. It requires inputs as mobile number and plan code.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

generateOrder

required
Array of objects (SimDOWithPlan)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Swap SIM

In case the user wishes to replace SIM card associated with a Mobile number, in case of any issue with the SIM, this API shall allow user to change the SIM on that Billable account. It requires inputs as source SIM and target SIM number.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

swapSim

existingSIMNo
string
newSIMNo
string

Responses

Request samples

Content type
application/json
{
  • "existingSIMNo": "string",
  • "newSIMNo": "string"
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Safe Custody

In case the user wishes to voluntarily suspend the SIM card for sometime, there is an option to put the SIM in safe custody. This API shall allow user to put the SIM in safe custody on that Billable account. It requires inputs as mobile number.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

generateOrder

required
Array of objects (SimDO)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Out of Safe Custody

In case the user wishes to change the number state from Suspended to Active state, this API shall allow user to do the same on that Billable account. It requires inputs as mobile number.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

generateOrder

required
Array of objects (SimDO)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Temp Disconnection

This API is used to initiate disconnection of M2M SIMs. Initially, SIMs will go into temporary disconnection for 5 days and then SIMs will be permanently disconnected on completion of 5 days.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

generateOrder

reason
required
string
Enum: "NUMBER_NOT_REQUIRED" "PRICING_CONCERN" "NETWORK_COVERAGE_ISSUE" "BILLING_OR_COLLECTION_ISSUE" "CONTRACT_EXPIRED"

Disconnection Reason.

required
Array of objects (SimDO)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "reason": "NUMBER_NOT_REQUIRED",
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Resume from TD

This API is used to resume SIMs from temporary disconnection within 5 days of initiation of disconnection.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

generateOrder

required
Array of objects (SimDO)

List of SIM

Responses

Request samples

Content type
application/json
{
  • "simDOList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

SIM LifeCycle Bulk

This API shall allow user to change the state of SIMs.

Bulk Order Template Download

This API call is used to download the Bulk template for performing Bulk Operations on the account. It returns the file in excel format for that Billable account.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
optional

basketDO

action
string
Enum: "ALL" "ACTIVATE_ORDER" "CHANGE_ORDER" "ACTIVATE_TEST_ORDER"
basketId
required
integer <int64>

Basket ID

Responses

Request samples

Content type
application/json
{
  • "action": "ALL",
  • "basketId": 0
}

Response samples

Content type
application/json
{
  • "basketName": "string",
  • "completionDate": "string",
  • "creationDate": "string",
  • "downloadFileId": 0,
  • "downloadType": "string",
  • "extension": "string",
  • "fileName": "string",
  • "progress": 0,
  • "status": "string"
}

Bulk Upload

This API call is used to upload the Bulk Operations template for performing Bulk Operations on the account. It returns the Job ID along with Order counts in success, failure or rejected status and number status.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: multipart/form-data
required
action
any

action

basketId
any

basketId

file
required
string <binary>

File to upload.

Responses

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Job Status

This API will allow user to fetch Job details for any operations being performed in that Billable account.

Fetch Jobs

For all orders initiated on CMP, single or Bulk, there is a Job ID that gets generated for all orders. One Job ID may have one or multiple Order IDs. This API will allow user to fetch Job details in that Billable account.

query Parameters
displayRejectedRecords
boolean
Default: true

Show Rejected Jobs

endDate
string

End Date in a date range to fetch Job IDs. Format DD/MM/YYY

jobId
integer <int64>

Job ID, in case a particular Job ID to be fetched

jobType
Array of strings
Items Enum: "ACTIVATE_SIM" "CHANGE_PLAN" "SAFE_CUSTODY" "OUT_OF_SAFE_CUSTODY" "SWAP_SIM" "DOWNLOAD_SIM" "BASKET_DETAIL" "BULK_DISCONNECTION" "ACTIVATE_SIM_FOR_BASKET" "BULK_UPLOAD" "BASKET_OPERATION" "ACTIVATE_TEST_SIM" "ACCOUNT_BULK_UPLOAD" "BULK_TEMP_DISCONNECTION" "BULK_SMS_WHITELISTING" "BULK_GROUP_CHANGE"

Job Type as defined in CMP

mobileNo
string

Mobile Number, in case Job IDs for a particular mobile number needs to be fetched

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

startDate
string

Start Date in a date range to fetch Job IDs. Format DD/MM/YYY

status
string
Enum: "SUCCESS" "FAILURE" "IN_PROGRESS" "REJECTED"

Status of Job IDs

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ],
  • "total": "string"
}

Fetch Order IDs

To fetch Order IDs in single Job ID, this API will allow user to fetch single or multiple Order IDs in a Job in that Billable account.

path Parameters
jobId
required
integer <int64>

Job ID, in case order in a particular Job ID to be fetched

query Parameters
mobileNo
string

Mobile Number, in case Order IDs for a particular mobile number needs to be fetched

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

status
string
Enum: "SUCCESS" "FAILURE" "IN_PROGRESS" "REJECTED"

Status of Order ID

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "orders": [
    ],
  • "total": "string"
}

Device & Session Information

To data usage on a specific SIM, this API will allow user to get total data allocation, available data, used data, device information & session information for the SIM.

Get Device Info

Once the SIM is active on the network and inserted in a device to use data, this API will allow user to fetch device related parameters including IMEI, previous IMEI, device make / model, device type, etc.

query Parameters
mobileNo
required
string

Mobile No.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "deviceAttributes": [
    ],
  • "deviceFrequencies": [
    ],
  • "deviceIMEI": "string",
  • "deviceIMEIChanged": true,
  • "deviceModelNumber": "string",
  • "deviceName": "string",
  • "deviceType": "string",
  • "operatingSystemName": "string",
  • "operatingSystemProvider": "string",
  • "operatingSystemVersion": "string",
  • "otaSupport": "string",
  • "previousDeviceIMEI": "string"
}

Get Data Usage

To fetch real-time data usage on a specific SIM, this API will allow user to get total data allocation, available data and used data for the SIM.

query Parameters
mobileNo
required
string

Mobile No.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "basketName": "string",
  • "dataSegregation": {
    },
  • "dataUsageFound": true,
  • "dataUsageUnits": "string",
  • "error": "string",
  • "mobileNo": "string",
  • "planCode": "string",
  • "planName": "string",
  • "prepaid": true,
  • "remainingDataUsage": "string",
  • "simNo": "string",
  • "totalDataUsage": "string",
  • "usedDataUsage": "string"
}

Device Diagnose API.

Fetch Device Diagnose Radius Attributes.

query Parameters
endDate
string

End DateTime For AAA Radius. Format DD/MM/YYYY

mobileNo
required
string

Mobile No.

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 20

Page Size in pagination for AAA session details. Default Page Size is 20 and Maximum is 100.

startDate
string

Start DateTime For AAA Radius. Format DD/MM/YYYY

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "resCode": "string",
  • "resStatus": "string",
  • "totalCount": 0
}

Bulk Data Usage

This API call is used to initiate download of Bulk data usage file from a specific Basket. It returns the file name along with creation and completion date for that basket. Since, the number of SIMs in a basket is restricted to 5000, hence the maximum number of SIMs in this Bulk data usage file will be 5000.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

basketDO

basketId
required
integer <int64>

Basket ID

Responses

Request samples

Content type
application/json
{
  • "basketId": 0
}

Response samples

Content type
application/json
{
  • "basketName": "string",
  • "completionDate": "string",
  • "creationDate": "string",
  • "downloadFileId": 0,
  • "downloadType": "string",
  • "extension": "string",
  • "fileName": "string",
  • "progress": 0,
  • "status": "string"
}

Whitelisting

This set of APIs to manage whitelisting numbers on Airtel IoT portal in Batch

Fetch SMS Whitelisted Number

Fetch SMS Whitelisted Number by msisdn, simNo,basketName,pageNo,pagesize

query Parameters
basketId
integer <int32>

Basket ID

msisdn
string

msisdn

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

simNo
string

SIM Number

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "smsWTDetailsVO": [
    ],
  • "total": 0
}

SMS Batch Whitelisting API

SMS batch whitelisting on Airtel IoT portal. Minimum 1 and Maximum 100 MSISDN can be whitelisted at once

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

requestDO

Array of objects (SmsWhitelistNoDO)

Responses

Request samples

Content type
application/json
{
  • "simWTDoList": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Fetch Voice Whitelist Numbers from CMP

This API will fetch all numbers for Voice Whitelist on CMP portal with existing whitelisted records

query Parameters
msisdn
string

msisdn

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

simNo
string

SIM Number

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "total": 0,
  • "whitelistDetails": [
    ]
}

KYC Manager

This set of APIs to manage SIM KYC details.

Fetch SIM KYC Details

FetchSIMKYCDetails API

query Parameters
activationDate
string

Activation date range on which SIMs will be filtered. Format DD/MM/YYYY - DD/MM/YYYY

basketId
integer <int32>
Default: 0

basketId

complianceDate
string

Compliance Date range on which SIMs will be filtered. Format DD/MM/YYYY - DD/MM/YYYY

msisdn
string

Mobile No.

pageNo
integer <int32>
Default: 1

pageNo

pageSize
integer <int32>
Default: 25

pageSize

simNo
string

Sim No

status
string
Enum: "COMPLIANT" "NON_COMPLIANT" "PENDING"

Filter Type on which SIMs will be filtered. The allowed type are Compliant / Non-Compliant /Pending

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "simKycList": [
    ],
  • "totalRecords": 0
}

Update SIM KYC details

UpdateSIMKycDetails API

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

requestDo

attribute1
string
attribute2
string
attribute3
string
attribute4
string
attribute5
string
custodianAddress
required
string

custodian address.

custodianName
required
string

custodian name.

deviceImei
required
string

device imei.

deviceModel
required
string

device model.

deviceType
required
string
Enum: "VEHICLE_TRACKING" "SMART_METER" "ASSET_TRACKING" "POS_MACHINE" "HOME_AUTOMATION" "INDUSTRIAL_AUTOMATION" "SURVEILLANCE" "PERSONAL_TRACKER" "TRAFFIC_MANAGEMENT" "OTHERS"

type of device.

deviceTypeOthers
string

Device Type(Others)

mobileNo
required
string

mobilerNumber for which kyc needs to be done.

registrationNo
required
string

registration number.

Responses

Request samples

Content type
application/json
{
  • "attribute1": "string",
  • "attribute2": "string",
  • "attribute3": "string",
  • "attribute4": "string",
  • "attribute5": "string",
  • "custodianAddress": "string",
  • "custodianName": "string",
  • "deviceImei": "string",
  • "deviceModel": "string",
  • "deviceType": "VEHICLE_TRACKING",
  • "deviceTypeOthers": "string",
  • "mobileNo": "string",
  • "registrationNo": "string"
}

Response samples

Content type
application/json
{
  • "message": "string"
}

Messaging Centre

These set of APIs allow lifecycle management of the Messaging Centre functionality

Fetch SMS Quota

This API will fetch the available SMS Quota balance.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "expiryDate": "dd/MM/yyyy",
  • "outgoingSMSBalance": 0,
  • "rolloverSMSQuota": 0,
  • "totalBalance": 0
}

Fetch Billing History

This API will be used to fetch Plan Subscribe / Un-Subscribe history.

query Parameters
pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

purchaseEndDate
string

Purchase Date / Transaction Date to fetch billing history. Format DD/MM/YYYY

purchaseStartDate
string

Purchase Date / Transaction Date to fetch billing history. Format DD/MM/YYYY

subscriptionEvent
string
Enum: "Purchase" "Auto_Renew" "Unsubscribe"

Type of event which user want to filter.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "customerPlanVOs": [
    ],
  • "totalRecords": 0
}

Fetch SMS Template Details

This API will be used to fetch the list of Template Name and Template ID created on Messaging Centre on CMP. These templates details will be used to send SMS using 'Send SMS' or 'Send Batch SMS' feature.

query Parameters
fetchOnlyActiveTemplates
boolean

Pass true to fetch only Active Templates on which SMS can be sent.

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

templateName
string

Template Name to Search

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "smsTemplates": [
    ],
  • "totalRecords": 0
}

Send SMS

This API is used to initiate request for sending SMS on M2M SIMs. A single job can be used to send SMS to a maximum of 100 MSISDNs. This is an asynchronous API which will take input in specified JSON format mentioning MSISDN(s) and Template ID. In return it will provide a Job ID by which status of Job created by request can be tracked using 'Fetch SMS Jobs' and 'Fetch SMS Job Orders' APIs.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

smsBatchDO

Array of objects (SimDO)

Responses

Request samples

Content type
application/json
{
  • "simsDO": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Send Custom SMS

This API is used to initiate request for sending either Text or Binary SMS on M2M SIMs. A single job can be used to send SMS to a maximum of 10 MSISDNs. This is an asynchronous API which will take input in specified JSON format mentioning MSISDN(s) and Custom Message. In return it will provide a Job ID by which status of Job created by request can be tracked using 'Fetch SMS Jobs' and 'Fetch SMS Job Orders' APIs. Use API for below mentioned scenarios

  • Send Text SMS : Pass binarySMS value as false. Maximum allowed content length of customMessage is 160 characters.
  • Send Binary SMS : Pass binarySMS value as true. Maximum allowed content length of customMessage is 1000 characters. And content must be in 8-bit Binary format

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

customSMSBatchDO

Array of objects (CustomMessageDO)

Responses

Request samples

Content type
application/json
{
  • "customMessageDOS": [
    ]
}

Response samples

Content type
application/json
{
  • "errorFileName": "string",
  • "errorItemsCount": 0,
  • "failureCount": 0,
  • "inProgressCount": 0,
  • "jobId": 0,
  • "jobType": "string",
  • "orderCompletionTime": "string",
  • "orderCount": 0,
  • "orderInitiateDate": "string",
  • "rejectedCount": 0,
  • "requestedOrderItems": 0,
  • "statusCode": "string",
  • "statusMessage": "string",
  • "successCount": 0,
  • "uploadFileName": "string"
}

Download Batch SMS Template

This API call is used to download the Batch template for performing 'Send Batch SMS' Operations on the account. It returns the file in excel format.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: application/json
required

downloadTemplateDO

basketId
integer <int32>
smsData
string
Enum: "Y" "N"

Responses

Request samples

Content type
application/json
{
  • "basketId": 0,
  • "smsData": "Y"
}

Response samples

Content type
application/json
{
  • "basketName": "string",
  • "completionDate": "string",
  • "creationDate": "string",
  • "downloadFileId": 0,
  • "downloadType": "string",
  • "extension": "string",
  • "fileName": "string",
  • "progress": 0,
  • "status": "string"
}

Send Batch SMS

This API is used to initiate request for sending SMS on M2M SIMs in Batch. This is an asynchronous API which will take input in excel file mentioning MSISDN(s) and Template Name. In return it will provide a Job ID by which status of Job created by request can be tracked using 'Fetch SMS Jobs' and 'Fetch SMS Job Orders' APIs. Batch SMS template can be used to send SMS to up to 5,000 numbers in a single job.

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Request Body schema: multipart/form-data
required
basketId
any

basketId

file
required
string <binary>

File to upload.

Responses

Response samples

Content type
application/json
{
  • "createdBy": "string",
  • "customerId": 0,
  • "errorFileName": "string",
  • "failureOrders": 0,
  • "jobCreationTime": "2019-08-24T14:15:22Z",
  • "jobId": 0,
  • "jobStatus": "string",
  • "jobType": "string",
  • "rejectedOrders": 0,
  • "successOrders": 0,
  • "totalOrders": 0,
  • "uploadFileName": "string"
}

Fetch SMS History

This API is used to fetch history of both Incoming as well as Outgoing Messages received on Messaging Centre. API also provide a list of filters by which data specific to a MSISDN, Message Type, Sent Date etc. can be fetched.

query Parameters
endDate
string

End Date in a date range to fetch Job IDs. Format DD/MM/YYY

messageType
string
Enum: "Incoming" "Outgoing"

Message types. Available types are - incoming/outgoing.

msisdn
string

Mobile Number, in case Job IDs for a particular mobile number needs to be fetched

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

startDate
string

Start Date in a date range to fetch Job IDs. Format DD/MM/YYY

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "messageDetails": [
    ],
  • "total": 0
}

Fetch SMS Jobs

This API is used to fetch Jobs created while sending SMS either by 'Send SMS' or 'Send Batch SMS' feature. Using Job IDs mentioned in response of API, customer can fetch the details of SMS sent in that particular Job.

query Parameters
endDate
string

End Date in a date range to fetch Job IDs. Format DD/MM/YYY

jobId
integer <int64>

Job ID, in case a particular Job ID to be fetched

jobType
string
Enum: "Sync" "Send_SMS" "Batch_SMS"

jobType

msisdn
string

msisdn

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

startDate
string

Start Date in a date range to fetch Job IDs. Format DD/MM/YYY

status
string
Enum: "In_Progress" "Success" "Failed" "Error"

Status of SMS

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ],
  • "total": "string"
}

Fetch SMS Job Orders

This API is used to fetch line item details of each SMS sent to MSISDN either by 'Send SMS' or 'Send Batch SMS' feature in a Job. Job ID used in this API can be fetched from Fetch SMS Jobs.

query Parameters
jobId
required
integer <int32>

jobId

msisdn
string

msisdn

pageNo
integer <int32>
Default: 1

Page Number in case of pagination. Default Page No. is 1.

pageSize
integer <int32>
Default: 25

Page Size in pagination. Default Page Size is 25 and Maximum is 100.

status
string
Enum: "In_Progress" "Success" "Failed" "Error"

Status of SMS

header Parameters
Authorization
required
string
Default: Bearer XXXXXXXXXXXXXX

Authorization Header (Value must be like Bearer )

apikey
required
string

Developer API Key

customer-id
required
integer <int64>

Unique ID to identify Customer (shared during On-Boarding process)

iv-user
required
string

Developer Account User ID

Responses

Response samples

Content type
application/json
{
  • "orderVOs": [
    ],
  • "total": 0
}