Retrieve a Donation
GET/v1/donations/:id
Retrieve a donation by its ID.
PII fields (firstName, lastName & email) will be included or excluded depending on your partner settings.
Request​
Path Parameters
Id of the Donation.
Responses​
- 200
- 401
- 403
- 404
Successfully retrieves a Donation
- application/json
- Schema
- Example (from schema)
Schema
- direct donation
- hosted donation
data
object
oneOf
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_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxdonation{
"data": {},
"object": "donation"
}
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"
}
}
The specified resource was not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
not_foundResource not foundThis endpoint is unavailable or can not be found{
"error": {
"code": "not_found",
"title": "Resource not found",
"message": "This endpoint is unavailable or can not be found"
}
}