List available Countries
GET/v1/countries
This endpoint will return all the Countries that Percent currently supports. If hasRegistry is true, it will return the subset of Countries that Percent currently has nonprofit data for.
Request​
Query Parameters
hasRegistry boolean
Only return Countries with Registries
Responses​
- 200
- 400
- 401
- 403
Successfully retrieved Countries
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]
code string
name string
hasRegistry boolean
object string
{
"data": [
{
"code": "POL",
"name": "Poland",
"hasRegistry": true
}
],
"object": "Country"
}
Error validating inputs
- application/json
- Schema
- Example (from schema)
Schema
error object
code string
title string
message string
reasons string[]
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error object
code string
title string
message string
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}
Loading...