List Donations
GET/v1/donations
Retrieve a list of donations.
PII fields (firstName, lastName & email) will be included or excluded depending on your partner settings.
Request​
Query Parameters
Filter results by userId.
Possible values: [ACTIVE, REQUESTED_PAYMENT, RECEIVED_PAYMENT, DISBURSED, CANCELLED]
Filter results by status.
Start date to retrieve users donations from.
End date to retrieve users donations from.
Filter results by organisationId.
A cursor that points to where to start the page
How many items per page, for pagination.
25Responses​
- 200
- 400
- 401
- 403
Successfully listed Donations
- application/json
- Schema
- Example (from schema)
Schema
Array [
- direct donation
- hosted donation
]
data
object[]
anyOf
donation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxDonation amount. A positive integer representing donation amount in the smallest currency unit, for example 100 pence for a donation of £1.00.
123Three-letter ISO currency code
AUD2020-10-13T17:46:54.000ZPossible values: [ACTIVE, REQUESTED_PAYMENT, RECEIVED_PAYMENT, DISBURSED, CANCELLED]
Users first name.
Users last name.
Users email.
Whether the user consented to be contacted by the benefitting organisation.
Possible values: [yes, no]
Whether the user wants to share their donation publicly or not.
Possible values: [yes, no]
metadata
object
nullable
Key-value data that you can attach to an object.
2020-10-13T17:46:54.000Zdonationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxaccount_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxPossible values: [direct]
donation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxDonation amount. A positive integer representing donation amount in the smallest currency unit, for example 100 pence for a donation of £1.00.
123Three-letter ISO currency code
AUD2020-10-13T17:46:54.000ZPossible values: [ACTIVE, REQUESTED_PAYMENT, RECEIVED_PAYMENT, DISBURSED, CANCELLED]
Users first name.
Users last name.
Users email.
Whether the user consented to be contacted by the benefitting organisation.
Possible values: [yes, no]
Whether the user wants to share their donation publicly or not.
Possible values: [yes, no]
metadata
object
nullable
Key-value data that you can attach to an object.
2020-10-13T17:46:54.000Zdonationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxaccount_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxPossible values: [hosted]
hosted
object
Contains additional fields available for hosted Donations.
Donation Session Id
donationsession_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxdonation3325_links
object
https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3Dhttps://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3Dhttps://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D{
"data": [
{},
{}
],
"object": "donation",
"totalResults": 33,
"pageSize": 25,
"_links": {
"current": "https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D",
"next": "https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D",
"prev": "https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- IncorrectParams
- CursorError
Schema
error
object
{
"error": {
"code": "string",
"title": "string",
"message": "string",
"reasons": [
"string"
]
}
}
400 Incorrect Parameters
{
"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"
]
}
}
Error in cursor parameter
{
"error": {
"code": "pagination/cursor_error",
"title": "Bad request",
"message": "Unable to find the next page"
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
forbiddenForbiddenAccess is denied due to missing scope permissions{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}