Skip to main content

Retrieve donation session

GET 

/v1/donation-sessions/:id

Retrieve donation session

Request​

Path Parameters

    id stringrequired

    Id of the donation session to retrieve.

Responses​

Successfully retrieved a donation session

Schema

    data

    object

    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
Loading...