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

    id string
    Example: donation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    userId stringnullable
    organisationId stringnullable
    amount integer

    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
    currencyCode string

    Three-letter ISO currency code

    Example: AUD
    createdAt date-time
    Example: 2020-10-13T17:46:54.000Z
    status string

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

    firstName stringnullable

    Users first name.

    lastName stringnullable

    Users last name.

    email stringnullable

    Users email.

    consentedToBeContacted stringnullable

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

    Possible values: [yes, no]

    anonymous stringnullable

    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
    giftAidId stringnullable
    cancelledAt date-timenullable
    Example: 2020-10-13T17:46:54.000Z
    donationRequestId stringnullable
    Example: donationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    accountId stringnullable
    Example: account_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    type string

    Possible values: [direct]

    object string
    Example: donation
Loading...