Campus
A Campus that has been added to your Organization.
Campuses can be especially useful in filtering Donations across the various locations of your Organization.
Example Object
{
"type": "Campus",
"id": "1",
"attributes": {
"address": {},
"name": "string"
},
"relationships": {}
}
Attributes
| Name |
Type |
Description |
address |
object |
The address for a campus. Campus descriptions can be set via Accounts or the People API. |
id |
primary_key |
The unique identifier for a campus. |
name |
string |
The name for a campus. Campus names can be set via Accounts or the People API. |
Pagination
| Name |
Parameter |
Type |
Description |
| per_page |
per_page |
integer |
how many records to return per page (min=1, max=100, default=25) |
| offset |
offset |
integer |
get results from given offset |
Endpoints
Listing
| HTTP Method |
Endpoint |
| GET |
/giving/v2/campuses |
Reading
| HTTP Method |
Endpoint |
| GET |
/giving/v2/campuses/{id} |
Associations
| HTTP Method |
Endpoint |
Returns |
Details |
Filter By |
| GET |
https://api.planningcenteronline.com/giving/v2/campuses/{campus_id}/donations |
Donation
|
|
|
Belongs To
| HTTP Method |
Endpoint |
Association |
Details |
Filter By |
| GET |
https://api.planningcenteronline.com/giving/v2/donations/{donation_id}/campus |
Donation
|
|
|
| GET |
https://api.planningcenteronline.com/giving/v2/in_kind_donations/{in_kind_donation_id}/campus |
InKindDonation
|
|
|
| GET |
https://api.planningcenteronline.com/giving/v2/campuses |
Organization
|
|
|
| GET |
https://api.planningcenteronline.com/giving/v2/people/{person_id}/primary_campus |
Person
|
|
|