Skip to main content

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 integerrequired

    Id of the Donation.

Responses​

Successfully retrieves a Donation

Schema

    data

    object

    oneOf

    idstring
    Example: donation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    userIdstringnullable
    organisationIdstringnullable
    amountinteger

    Donation amount. A positive integer representing donation amount in the smallest currency unit, for example 100 pence for a donation of £1.00.

    Example: 123
    currencyCodestring

    Three-letter ISO currency code

    Example: AUD
    createdAtdate-time
    Example: 2020-10-13T17:46:54.000Z
    statusstring

    Possible values: [ACTIVE, REQUESTED_PAYMENT, RECEIVED_PAYMENT, DISBURSED, CANCELLED]

    firstNamestringnullable

    Users first name.

    lastNamestringnullable

    Users last name.

    emailstringnullable

    Users email.

    consentedToBeContactedstringnullable

    Whether the user consented to be contacted by the benefitting organisation.

    Possible values: [yes, no]

    anonymousstringnullable

    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.

    property name*string
    giftAidIdstringnullable
    cancelledAtdate-timenullable
    Example: 2020-10-13T17:46:54.000Z
    donationRequestIdstringnullable
    Example: donationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    accountIdstringnullable
    Example: account_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    typestring

    Possible values: [direct]

    objectstring
    Example: donation