Skip to main content

Create a donation

POST 

/v1/donations

Creates a new Donation of type direct. We will request payment from you for the Donations aggregated over a period. Percent and our associated foundations will then handle the ongoing safe and efficient disbursement of funds to the nonprofit.

Please note that if you are creating with a userId and no organisationId the user must be already supporting an organisation.

Request​

Header Parameters

    Idempotency-Key string

    Idempotency key.

Body

required
    oneOf
    amount integerrequired

    Amount to be donated. A positive integer representing how much to donate in the smallest currency unit, for example 100 pence to donate £1.00.

    currencyCode stringrequired

    Three-letter ISO currency code. Can only be AUD for AUS nonprofits, USD for USA nonprofits, and GBP for every-other nonprofit.

    organisationId stringrequired
    firstName string

    Possible values: <= 255 characters

    lastName string

    Possible values: <= 255 characters

    email string

    Possible values: <= 255 characters

    consentedToBeContactedByOrg string

    Possible values: [yes, no]

    anonymous string

    Possible values: [yes, no]

    metadata object

    Key-value data that you can attach to a Donation.

Responses​

Successfully created a Donation

Schema
    data object
    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
Loading...