Get Country List
GET/v1.2/master-data/countries
Used to get the country list.
Request
Header Parameters
Throttle-Key string
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
- Array [
- ]
status stringrequired
reason string
rejectCode integer
Find error codes here
countryList object[]required
Possible values: >= 1
countryCode stringrequired
Possible values: non-empty
countryName stringrequired
Possible values: non-empty
countryId number
{
"status": "string",
"reason": "string",
"rejectCode": 0,
"countryList": [
{
"countryCode": "string",
"countryName": "string",
"countryId": 0
}
]
}
{
"countryList": [
{
"countryCode": "94",
"countryName": "sri lanka",
"countryId": 0
}
],
"status": "SUCCESS",
"reason": "N/A",
"rejectCode": 0
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
timestamp string
status string
error string
message string
path string
rejectCode string
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.2/master-data/countries",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.2/master-data/countries",
"rejectCode": "1007"
}
Loading...
Is this page helpful for you?