Skip to main content

List Donations

GET 

/v1/donations

List Donations

Request​

Query Parameters

    userId string

    Filter results by userId.

    status string

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

    Filter results by status.

    startDate date-time

    Start date to retrieve users donations from.

    Example: 2020-10-13T17:46:54.000Z
    endDate date-time

    End date to retrieve users donations from.

    Example: 2020-10-13T17:46:54.000Z
    organisationId string

    Filter results by organisationId.

    cursor string

    A cursor that points to where to start the page

    pageSize integer

    Default value: 25

    How many items per page, for pagination.

Responses​

Successfully listed Donations

Schema
    data object[]
  • Array [
  • anyOf
    id string
    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.

    currencyCode string

    Three-letter ISO currency code

    createdAt date-time
    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

    Possible values: [yes, no]

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

    anonymous stringnullable

    Possible values: [yes, no]

    Whether the user wants to share their donation publicly or not.

    metadata objectnullable

    Key-value data that you can attach to an object.

    property name* string
    giftAidId stringnullable
    cancelledAt date-timenullable
    donationRequestId stringnullable
    accountId stringnullable
    type string

    Possible values: [direct]

  • ]
  • object string
    totalResults integer
    pageSize integer
    _links object
    current string
    next string
    prev string
Loading...