Skip to main content

Get Operator

Get Operator:

Postman Collection

URL

GET : /v1/service/recharge/operators?type={type}

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

type  (String)   Required
Category type (Like mobile / dth) (Max Length: Fixed)

Request

Example Request
  curl --location --request GET '/v1/service/recharge/operators?type=mobile' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw ''

Response Samples

{
"code": "0x0200",
"message": "Operator fetched successfully.",
"status": "SUCCESS",
"data": [
{
"operatorId": 1,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "AIRTEL"
},
{
"operatorId": 3,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "BSNL TOPUP"
},
{
"operatorId": 4,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "BSNL VALIDITY"
},
{
"operatorId": 5,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "IDEA"
}
]
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x02082FATWO FACTOR AUNTHENTICATION