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_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Donation amount. A positive integer representing donation amount in the smallest currency unit, for example 100 pence for a donation of £1.00.
123
Three-letter ISO currency code
AUD
2020-10-13T17:46:54.000Z
Possible 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.000Z
donationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
account_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Possible values: [direct
]
donation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Donation amount. A positive integer representing donation amount in the smallest currency unit, for example 100 pence for a donation of £1.00.
123
Three-letter ISO currency code
AUD
2020-10-13T17:46:54.000Z
Possible 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.000Z
donationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
account_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Possible values: [hosted
]
hosted
object
Contains additional fields available for hosted Donations.
Donation Session Id
donationsession_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
donation
{
"data": {},
"object": "donation"
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
forbidden
Forbidden
Access 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_found
Resource not found
This 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"
}
}