List of states
Fire this api to get list of states for given country id.
Last updated
Fire this api to get list of states for given country id.
Last updated
GET
https://castleindia.in/emart/public /api/states/{countryid}?secret=xxxx /api/states/
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"states": [
{
"id": 1,
"name": "Andaman and Nicobar Islands",
"country_id": 101
},
{
"id": 2,
"name": "Andhra Pradesh",
"country_id": 101
},
{
"id": 3,
"name": "Arunachal Pradesh",
"country_id": 101
},
{
"id": 4,
"name": "Assam",
"country_id": 101
},
{
"id": 5,
"name": "Bihar",
"country_id": 101
},
{
"id": 6,
"name": "Chandigarh",
"country_id": 101
},
{
"id": 7,
"name": "Chhattisgarh",
"country_id": 101
},
{
"id": 8,
"name": "Dadra and Nagar Haveli",
"country_id": 101
},
{
"id": 9,
"name": "Daman and Diu",
"country_id": 101
},
{
"id": 10,
"name": "Delhi",
"country_id": 101
},
{
"id": 11,
"name": "Goa",
"country_id": 101
},
{
"id": 12,
"name": "Gujarat",
"country_id": 101
},
{
"id": 13,
"name": "Haryana",
"country_id": 101
},
{
"id": 14,
"name": "Himachal Pradesh",
"country_id": 101
},
{
"id": 15,
"name": "Jammu and Kashmir",
"country_id": 101
},
{
"id": 16,
"name": "Jharkhand",
"country_id": 101
},
{
"id": 17,
"name": "Karnataka",
"country_id": 101
},
{
"id": 18,
"name": "Kenmore",
"country_id": 101
},
{
"id": 19,
"name": "Kerala",
"country_id": 101
},
{
"id": 20,
"name": "Lakshadweep",
"country_id": 101
},
{
"id": 21,
"name": "Madhya Pradesh",
"country_id": 101
},
{
"id": 22,
"name": "Maharashtra",
"country_id": 101
},
{
"id": 23,
"name": "Manipur",
"country_id": 101
},
{
"id": 24,
"name": "Meghalaya",
"country_id": 101
},
{
"id": 25,
"name": "Mizoram",
"country_id": 101
},
{
"id": 26,
"name": "Nagaland",
"country_id": 101
},
{
"id": 27,
"name": "Narora",
"country_id": 101
},
{
"id": 28,
"name": "Natwar",
"country_id": 101
},
{
"id": 29,
"name": "Odisha",
"country_id": 101
},
{
"id": 30,
"name": "Paschim Medinipur",
"country_id": 101
},
{
"id": 31,
"name": "Pondicherry",
"country_id": 101
},
{
"id": 32,
"name": "Punjab",
"country_id": 101
},
{
"id": 33,
"name": "Rajasthan",
"country_id": 101
},
{
"id": 34,
"name": "Sikkim",
"country_id": 101
},
{
"id": 35,
"name": "Tamil Nadu",
"country_id": 101
},
{
"id": 36,
"name": "Telangana",
"country_id": 101
},
{
"id": 37,
"name": "Tripura",
"country_id": 101
},
{
"id": 38,
"name": "Uttar Pradesh",
"country_id": 101
},
{
"id": 39,
"name": "Uttarakhand",
"country_id": 101
},
{
"id": 40,
"name": "Vaishali",
"country_id": 101
},
{
"id": 41,
"name": "West Bengal",
"country_id": 101
},
{
"id": 4122,
"name": "Test",
"country_id": 101
},
{
"id": 4123,
"name": "Ankit",
"country_id": 101
}
],
"success": "success"
}
countryid*
String
ID of the country from the country list.
secret*
String
Client secret which obtained from admin panel.
Accept*
String
application/json