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
client_id
string

The id of the client

Example:

"1"

hysform_id
integer

The id of the form

Example:

1

emailset_id
integer
Example:

1

donor_ids
integer[]
Example:

"[1,2,3]"

year
integer

The year of the statement

Example:

2020

Response

200
application/json
Successful operation
success_message
string
Example:

"2020 Year End Statements successfully sent to 5 Donors."

error_message
string
Example:

"Error: 2020 Year End Statements failed to send to 2 Donors"