Skip to main content
POST
View all donations

Authorizations

X-HYS-API-Key
string
header
required

Gratona API key sent with the compatibility header X-HYS-API-Key.

Path Parameters

all
boolean
required

Flag to get all donations

Example:

true

Body

application/json

Data needed to view all donations

selectedTab
enum<string>
required
Available options:
Donations,
Refunds,
Failed,
Soft Credits
Example:

"Donations"

Donor_Group
required

Donor form ID to scope the list, or all for every donor form in the authenticated organization.

Example:

42

client_id
string
Example:

"1"

date_from
string<date>
Example:

"2022-01-01"

date_to
string<date>
Example:

"2022-12-31"

pageSize
integer
Example:

10

pageIndex
integer
Example:

1

Response

Successful operation

donations
object[]
soft_credits
object[]
organization
string
Example:

"Organization Name"

number_of_allDonations
integer
Example:

100

number_of_donations
integer
Example:

10

total_of_donations
string
Example:

"1000"

soft_credit_stats
object
soft_credit_graph_data
object[]
donation_graph_data
object[]
fields
object[]
date_from
string<date>
Example:

"2022-01-01"

date_to
string<date>
Example:

"2022-12-31"

all
boolean
Example:

false

hysform
object