Skip to main content

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
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

stateId  (String)   Required
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

{
"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
}
]
}

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