Skip to main content

Operator Validation API

Operator Validation API

Method: POST
Headers:
    Content-Type: application/json
    API-Key: (api key shared with the partner)

Request

Request Body ParameterData TypeMandatory?Size
mobileNumberStringYesMin = 10, Max = 10
operatorCodeStringYesMax = 5
circleCodeStringYesMax = 5
amountNumberYesPositive, Max = 10000 Rs

Sample Request

{
"userUid": "azHiANCiasoijvc",
"mobileNumber": "9999999999",
"operatorCode": "1",
"circleCode": "10",
"amount": 719
}

Sample Response

Success Status Code: 200

{
"validationCode": "2",
"validationMessage": "Plan Offering applicable only for Jio Phone customers",
"operatorCode": "1",
"circleCode": "10"
}
Response Body ParameterData TypeSize
validationCodeStringMax = 2
validationMessageStringMax = 200
operatorCodeStringMax = 5
circleCodeStringMax = 5

Details

  1. The operator code and circle code in the response will be the same as the request, and will not be given the correct operator or circle if the provided one is wrong. This API will just verify whether the given request is correct or not.

Validation codes and their meanings

CodeMeaning
0Validation successful, no error in the given request
1Error while calling API
2Validation failed, there is an error in the given request, the relevant validation message will be provided
4Exception in the validation API
emptyTimeout while calling the API