List available Countries
GET/v1/countries
This endpoint will return all the Countries that Goodstack currently supports. If hasRegistry is true, it will return the subset of Countries that Goodstack 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
Example:
POL
name string
Example:
Poland
hasRegistry boolean
Example:
true
object string
Example:
Country
{
"data": [
{
"code": "POL",
"name": "Poland",
"hasRegistry": true
}
],
"object": "Country"
}
Error validating inputs
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
bad_request
title string
Example:
Bad request
message string
Example:
One or more of the inputs were invalid
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
Example:
forbidden
title string
Example:
Forbidden
message string
Example:
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}
Loading...