POST
/
admin
/
donors
/
send_year_end
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"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Data needed to send year end statements to donors

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.