Get Districts by State ID
Get Districts by State ID:
Postman Collection
URL
GET : /v1/service/aeps/getDistrict/{stateId}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
stateId (String) Required
State ID (Max Length: 3)
State ID (Max Length: 3)
Request
Example Request
curl --location --request GET '/v1/service/aeps/getDistrict/34' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ== \
--data-raw ''
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Record fetched successfully.",
"status": "SUCCESS",
"data": [
{
"districtId": 608,
"districtName": "Agra",
"stateId": 34
},
{
"districtId": 609,
"districtName": "Aligarh",
"stateId": 34
},
{
"districtId": 610,
"districtName": "Allahabad",
"stateId": 34
},
{
"districtId": 611,
"districtName": "Ambedkar Nagar",
"stateId": 34
},
{
"districtId": 612,
"districtName": "Amethi",
"stateId": 34
}
]
}
{
"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 |