Skip to main content
GET
Get a donation worksheet with query filters

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Query Parameters

selectedTab
enum<string>
required

Worksheet mode; controls row and aggregate semantics.

Available options:
Donations,
Refunds,
Failed,
Soft Credits
Donor_Group

Donor form within the current organization, or all forms. Required unless all=true; saved views do not fill this field.

Example:

42

all
boolean

Include every donor form; also enabled by Donor_Group=all.

date_from
string<date>

Inclusive creation-date start; default30 days before today when both dates are omitted. Refund occurrence mode uses refund date instead.

date_to
string<date>

Inclusive end date; default today. A single supplied date is used for both bounds.

pageSize
integer

Requested page size; default10.

pageIndex
integer

One-based worksheet page; default1.

includeSummary
boolean

Default true. False skips expensive summary/statistics/graph work and returns zero or empty aggregates.

include_summary
boolean

Compatibility alias for includeSummary.

query
string

Search across allowed donation/recognition fields.

search_fields
string[]

Optional registered searchable field keys.

filterGroups
object[]

Ordered field predicates. Unsupported stale view fields are sanitized; invalid literal values can return422.

filterKey
string

Single-filter field when filterGroups is absent.

filterOperator
string

Single-filter operator, default equals.

filterValue

Filter operand matching the field and operator. Multi-select operators accept arrays.

Example:

"Education"

sortKey
string

Registered donation or recognition sort key; unsupported keys are ignored.

sortOrder
enum<string>

Sort direction normalized by the sort-field contract.

Available options:
asc,
desc
sort_key
string

Compatibility alias for sortKey.

sort_order
string

Compatibility alias for sortOrder.

savedFilterId
integer

Organization-owned Donations saved view whose preferences fill omitted values.

saved_filter_id
integer

Compatibility alias for savedFilterId.

fields

Selected column keys as an array or JSON-encoded list. Controls related projections and response display flags.

in_kind
boolean | null

Restrict to in-kind gifts when true, or exclude them when false.

in_kind_category
string

Optional in-kind category filter.

sponsorship_type

Legacy one_time filter applied to displayed donation rows.

Example:

1

refund_occurred
boolean

For the Refunds tab, select by applied refund occurrence dates with a legacy updated_at fallback.

dateRange

Relative date range materialized in organization time; all_time starts1970-01-01.

date_range

Compatibility alias for dateRange.

report_name
string

Optional nonblank name creates a saved Report as a side effect. Supply fields when saving.

Response

Operation result.

The response also includes boolean display flags for selected built-in and standardized fields.

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

"Example Nonprofit"

client
Client · object

A Gratona client — the tenant of the multi-tenant system. Owns donors, entities, programs, users, and integrations. The client_id on every other resource scopes data to this row. Stripe Connect onboarding state, account-level settings, and the client's display name all live here.

number_of_allDonations
integer

Filtered total row count for the current tab.

Example:

25

number_of_donations
integer

Rows on this page.

Example:

10

total_of_donations

Tab-dependent aggregate, or zero when summary is disabled.

Example:

"625"

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

"2026-09-20"

date_to
string<date>
Example:

"2026-10-20"

program_totals
object[]
all
boolean
Example:

true

hysform
object
current_year
integer
Example:

2026

last_year
integer
Example:

2025

show_standardized_fields
boolean
Example:

true

visible_standard_field_keys
string[]
title_field_keys
string[]
standard_title_field_keys
string[]
sort
object
applied_filters
object

Applied saved-view preferences when a saved filter is selected.