NOTE: User must be logged in as admin to access this API

URL: api/dependency/country-codes
Method: GET
Description: Get Country List.

Parameters:

 

Parameter Type Optional/Required Description
limit Integer Optional How Many Country You wanted to Fetch.
page Integer Optional On which page you wanted to go. by default it will show 10 details per page

Success Response :

 {
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 10217,
"name": "Andaman and Nicobar Islands"
},
{
"id": 10239,
"name": "Andhra Pradesh"
},
{
"id": 10218,
"name": "Arunachal Pradesh"
},
{
"id": 10219,
"name": "Assam"
},
{
"id": 10220,
"name": "Bihar"
},
{
"id": 10241,
"name": "Chandigarh"
},
{
"id": 10221,
"name": "Chhattisgarh"
},
{
"id": 10222,
"name": "Dadra and Nagar Haveli"
},
{
"id": 10242,
"name": "Daman and Diu"
},
{
"id": 10223,
"name": "Delhi"
}
],
"first_page_url": "https://development.faveo/public/api/dependency/states?page=1",
"from": 1,
"next_page_url": "https://development.faveo/public/api/dependency/states?page=2",
"path": "https://development.faveo/public/api/dependency/states",
"per_page": 10,
"prev_page_url": null,
"to": 10
}
}
Tagged: