POST
/
admin
/
donations
/
{all}
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

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

all
boolean
required

Flag to get all donations

Body

application/json

Data needed to view all donations

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.