Get public information about charities of a specific company
GET/pub/company/:company_id/charities
This call serves to retrieve all charities of a specific company on public website with Cents' js library
Request
Path Parameters
company_id stringrequired
Unique ID of the company in scope.
Responses
- 200
- 401
- 422
successful operation
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
Array [
]
]
]
data
object[]
id uuid
cents id of the charity
name string
The name of the charity
sectors string[]
sectors to be used for blacklist/whitelist from company gateway side
areas
object[]
region string
The region of action
country string
The country of action
categories
undefined[]
category_id UUID
Cents ID of the category
name string
Category name
description string
Category description
causes
undefined[]
name
object
The name of the cause
key string
The key of the cause
translations
object
The translations
en string
The english translation
it string
The italian translation
description
object
en string
The english translation
it string
The italian translation
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Fondazione Umberto Venovesi",
"sectors": [
[
"Public Sector"
]
],
"areas": [
{
"region": "Kenya",
"country": "Africa"
}
],
"categories": [
{
"category_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Alberi",
"description": "Seminiamo Alberi",
"causes": [
{
"name": {
"key": "Cause",
"translations": {
"en": "Cause",
"it": "Causa"
}
},
"description": {
"en": "Cause Description",
"it": "Descrizione Causa"
}
}
]
}
]
}
]
}
Unauthorized
Invalid input
Loading...