Skip to main content

Operator List

Authentication

Basic Authentication

  • Username: Client Id
  • Password: Secret Key

Example Authorization Header:

Authorization: Basic eGV0dGxlXzgzMjg2NjU5YmRmNzBkZWEzMDUwMzcwNzE1MTYwMzA0MDo3YzE1ZDQyYTZhYjEyOTYzYWI4NzJhMzFkOTk4MDk1ZDMwNTAzNzA3MTUxNjMyMDg5

Request Body

{}

Request Parameters

ParameterTypeRequiredDescription
operatorTypestringYesType of operator (e.g., "prepaid", "postpaid", "dth")
circlestringYesTelecom circle or region (e.g., "mumbai", "delhi")

Request Examples

Request Examples

curl --location 'https://xyz.com/v1/service/recharge/operators' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YOUR_AUTH_TOKEN'

Response Examples

{
code: "0x0200",
message: "Operator fetched successfully.",
status: "SUCCESS",
data: [
{
id: 1,
logo: "https://xyz.com/public/images/mobile_recharge_logo/airtel.png",
operatorName: "AIRTEL UP EAST",
operatorId: "AS"
},
{
id: 2,
logo: "https://xyz.com/public/images/mobile_recharge_logo/airtel.png",
operatorName: "AIRTEL",
operatorId: "AT"
},
{
id: 3,
logo: "https://xyz.com/public/images/mobile_recharge_logo/BSNL_TOPUP.png",
operatorName: "BSNL TOPUP",
operatorId: "BS"
},
{
id: 4,
logo: "https://xyz.com/public/images/mobile_recharge_logo/bsnl_validity.png",
operatorName: "BSNL VALIDITY",
operatorId: "BR"
}
]
}

Response Codes

The API uses the following response codes to indicate the status of requests:

CodeDescriptionMeaning
0x0200SUCCESSThe request was processed successfully.
0x0201UNAUTHORIZEDAuthentication failed or insufficient permissions.
0x0202FAILEDThe request processing failed for a reason other than those specifically identified.
0x0203MISSING_PARAMETERThe request is missing one or more required parameters.
0x0206PENDINGThe request has been received and is being processed, but processing has not yet completed.
0x0205SOMETHING_WENT_WRONGA server error occurred during processing of the request.