Skip to main content

Get All Districts

Get All Districts:

Postman Collection

URL

GET : /v1/common/district/0

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Request

Example Request
    curl --location --request GET '/v1/common/district/0' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data ''

Response Samples

    {
"code": "0x0200",
"message": "Record fetched successfully.",
"status": "SUCCESS",
"data": [
{
"districtId": 1,
"districtName": "Nicobar",
"stateId": 1
},
{
"districtId": 2,
"districtName": "North Middle Andaman",
"stateId": 1
},
{
"districtId": 3,
"districtName": "South Andaman",
"stateId": 1
},
{
"districtId": 4,
"districtName": "Anantapur",
"stateId": 2
},
{
"districtId": 694,
"districtName": "Udham Singh Nagar",
"stateId": 35
},
{
"districtId": 695,
"districtName": "Uttarkashi",
"stateId": 35
}
]
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING