Get Operator
Get Operator:
Postman Collection
URL
GET : /v1/service/recharge/operators?type={type}Headers
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
type (String) Required
Category type (Like mobile / dth) (Max Length: Fixed)
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
- SUCCESS-Mobile
- SUCCESS-DTH
- FAILED
{
"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"
}
]
}
{
"code": "0x0200",
"message": "Operator fetched successfully.",
"status": "SUCCESS",
"data": [
{
"operatorId": 13,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "AIRTEL DIGITAL"
},
{
"operatorId": 14,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "DISH TV"
},
{
"operatorId": 16,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "SUN DIRECT TV"
},
{
"operatorId": 17,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "TATA SKY"
},
{
"operatorId": 18,
"logo": "https://stg.xettle.io/public/images/mobile_recharge_logo/default.png",
"operatorName": "VIDEOCON D2H"
}
]
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "No record found"
}
Response Code
| Status Code | Status | Message |
|---|---|---|
| 0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
| 0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
| 0x0202 | FAILURE | FAILURE USER |
| 0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
| 0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
| 0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
| 0x0206 | PENDING | TRANSACTION PENDING |
| 0x0208 | 2FA | TWO FACTOR AUNTHENTICATION |