Skip to main content

List Donation Sessions

GET 

/v1/donation-sessions

List Donation Sessions

Request​

Query Parameters

    direction string

    Possible values: [ASC, DESC]

    Which way to sort by the given 'sort' field. Default DESC

    cursor string

    A cursor that points to where to start the page

    pageSize integer

    How many items per page, for pagination.

    Default value: 25

Responses​

Successfully lists Donation Sessions

Schema

    data

    object[]

  • Array [

  • id string
    Example: donationsession_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    organisationId string
    Example: organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    successUrl stringnullable

    Optional URL the donor will be directed to after making a donation.

    Example: https://example.com/donation-completed
    userId stringnullable

    Id of the User who this donation belongs to, if one exists.

    Example: user_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    accountId stringnullable

    Id of the Account who this donation belongs to, if one exists.

    Example: account_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    url string
    Example: https://donate.poweredbypercent.com/donation-session
    status string

    Possible values: [open, completed, expired]

    createdAt date-time
    Example: 2021-10-13T17:46:54.000Z
    expiresAt date-time
    Example: 2021-10-13T17:46:54.000Z
    language string
    Default value: en-GB
    Example: en-GB
    metadata objectnullable

    Key-value data that you can attach to an object. When a Donation is created from a DonationSession, the DonationSession copies its metadata to the Donation.

    Example: {"key1":"value1","key2":"value2"}
    currency stringnullable
    Example: GBP
  • ]

  • object string
    Example: donation_session
    totalResults integer
    Example: 33
    pageSize integer
    Example: 25

    _links

    object

    current string
    Example: https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D
    next string
    Example: https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D
    prev string
    Example: https://.../v1/...?cursor=eyJ2Ijox...N3AifQ%3D%3D
Loading...