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": {}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Flag to get all donations
Data needed to view all donations
The body is of type object
.
Successful operation
The response is of type object
.
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": {}
}