Skip to main content
POST
/
admin
/
donations
/
{all}
View all donations
curl --request POST \
  --url https://api.helpyousponsor.com/v1/admin/donations/{all} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "1",
  "date_from": "2022-01-01",
  "date_to": "2022-12-31",
  "pageSize": 10,
  "pageIndex": 1
}'
{
  "donations": [
    {}
  ],
  "organization": "Organization Name",
  "number_of_allDonations": 100,
  "number_of_donations": 10,
  "total_of_donations": "1000",
  "donation_graph_data": [
    {}
  ],
  "fields": [
    {}
  ],
  "date_from": "2022-01-01",
  "date_to": "2022-12-31",
  "all": false,
  "hysform": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

all
boolean
required

Body

application/json
client_id
string
Example:
date_from
string<date>
Example:
date_to
string<date>
Example:
pageSize
integer
Example:
pageIndex
integer
Example:

Response

donations
object[]
organization
string
Example:
number_of_allDonations
integer
Example:
number_of_donations
integer
Example:
total_of_donations
string
Example:
donation_graph_data
object[]
fields
object[]
date_from
string<date>
Example:
date_to
string<date>
Example:
all
boolean
Example:
hysform
object