Fetch Operator List Api
Fetch Operator List
Description :
This API endpoint is used to fetch operator list.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|---|---|---|---|---|---|
| category | string | Yes | Please pass the category like a [Prepaid, Postpaid, DTH, Electricity etc...] | |||
| state | string | Optional | Please pass the state name [For Prepaid, Postpaid & DTH Recharge] Pass state = All India For State List Api Click Here |
Request Example
Responses (JSON)
- Description: Data fetched successfully.
- status_code (integer): The status code of the response.
- data (object):
- operator_code (string): Pass this operator code while transacting.
- operator_name (string): Name of the operator
- operator_logo (string): Operator logo.
- digit_length (integer): Digit length means 10 digit mobile number.
- minimum_amount (integer): Minimum amount of transaction you can do.
- maximum_amount (integer): Maximum amount of transaction you can do.
- block_amount (integer): Amout is block for transaction.
- min_length (integer): Minimum digit length.
- max_length (integer): Maximum digit length.
- input_value1 (string): Show input field based on this value.
- input_value2 (string): Show input field based on this value.
- input_value3 (string): Show input field based on this value.
- input_value4 (string): Show input field based on this value.
- input_value5 (string): Show input field based on this value.
- input_value6 (string): Show input field based on this value.
- bill_fetch_required (string): If bill fetch required then Yes or if not required then No.
- bbps_status (string): BBPS status like a [Yes / No].
- status (string): Status of the service provider like a [Active / Inactive].
{"status_code": 2, "message": "category is required"}, 422
- Status Code 2: Validation Error
- Description: Validation error in the input parameters.
- 'status_code' (integer): 2
- 'message' (string): "A specific validation error message."
{"status_code": 0, "message": "Unable to fetch data"}, 200
- Status Code 0: Error message
- Description: A specific error message.
- 'status_code' (integer): 0
- 'message' (string): "Unable to fetch data"
Note
- The API endpoint should be accessed via a POST request.
- Ensure that the request is properly validated and sanitized to prevent security vulnerabilities.
- Implement proper error handling on the client side to display user-friendly error messages based on the 'status_code' and 'message' fields in the response.