Skip to main content

Get All States

Get All States:

Postman Collection

URL

GET : /v1/common/state/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/state/0' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data ''

Response Samples

    {
"code": "0x0200",
"message": "Record fetched successfully.",
"status": "SUCCESS",
"data": [
{
"stateId": 1,
"stateName": "Andaman & Nicobar Islands"
},
{
"stateId": 2,
"stateName": "Andhra Pradesh"
},
{
"stateId": 3,
"stateName": "Arunachal Pradesh"
},
{
"stateId": 4,
"stateName": "Assam"
},
{
"stateId": 5,
"stateName": "Bihar"
},
{
"stateId": 6,
"stateName": "Chandigarh"
},
{
"stateId": 32,
"stateName": "Telangana"
},
{
"stateId": 33,
"stateName": "Tripura"
},
{
"stateId": 34,
"stateName": "Uttar Pradesh"
},
{
"stateId": 35,
"stateName": "Uttarakhand"
},
{
"stateId": 36,
"stateName": "West Bengal"
}
]
}

Response Code

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