curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/donors/send_year_end \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1",
"hysform_id": 1,
"emailset_id": 1,
"donor_ids": "[1,2,3]",
"year": 2020
}'
{
"success_message": "2020 Year End Statements successfully sent to 5 Donors.",
"error_message": "Error: 2020 Year End Statements failed to send to 2 Donors"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Data needed to send year end statements to donors
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/donors/send_year_end \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1",
"hysform_id": 1,
"emailset_id": 1,
"donor_ids": "[1,2,3]",
"year": 2020
}'
{
"success_message": "2020 Year End Statements successfully sent to 5 Donors.",
"error_message": "Error: 2020 Year End Statements failed to send to 2 Donors"
}