Country
State List
Use this API to get list of all countries.
GET /country/country-list
Query string parameters
Field | Type | Description |
---|---|---|
q | string | input search string |
- Response
- Schema
- Error Codes
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"countryList": [
{
"countryId": 1,
"countryCode": "AF",
"name": "Afghanistan"
},
],
"totalRecords": 1
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
Field | Type | Description |
---|---|---|
countryId | integer | Country ID |
countryCode | string | Country code |
name | string | Country Name |
totalRecords | integer | count of records returned |
For general error details, click here.