DTH Customer Information Fetch Api
Fetch DTH Customer Info
Description :
This API endpoint is used to fetch dth customer information.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|---|---|---|---|---|---|
| token | string | Yes | Pass the transaction token | |||
| number | integer | Yes | Pass DTH number | |||
| operatorcode | string | Yes | Operator code for operator identification |
Request Example
token=f6d82aa3c98cc114b78cb776d933e36f&number=123456780&operatorcode=ATV
Responses (JSON)
- status_code (integer): The status code of the response.
- message (string) Result fetch successfully.
- data (object):
- serviceProvider (string): Service provider name.
- customerId (string): customer id of dth number.
- customerName (string): dth customer name.
- currentBalance (string): current balance in dth connection.
- monthlyRecharge (string): monthly dth recharge amount.
- nextRechargeDate (string): next recharge date.
- lastRechargeDate (string): previous dth recharge date.
- planName (string): Dth plan name.
- planDescription (string): Plan description.
- connectionStatus (string): Dth connection status Active or Inactive.
{"status_code": 2, "message": "token is required"}
- 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"}
- 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.