Update a donation
Partially updates donor fields, memo, designation, advisor, and (when the donation status is pledged) quantity, identifier, and source. The server also accepts PATCH with the same JSON body.
- Type: stringidrequired
Partial update for a donation. quantity, identifier, and source may only be sent when the donation status is pledged. designation_id must refer to a designation on the donation's campaign when set. The server also accepts PATCH with the same JSON body.
- Type: object | nulladvisor
When present, links or creates an advisor (email required when providing an object). Use null to clear the advisor.
- Type: string | nulldesignation
_id UUID of a campaign designation on this donation's campaign; omit or null to clear.
- Type: stringdonor
_address _line _1 - Type: stringdonor
_address _line _2 - Type: stringdonor
_city - Type: string · CountryCodeenumdonor
_country ISO 3166-1 alpha-2 country code
values- ad
- ae
- af
- ag
- ai
- Type: stringFormat: emaildonor
_email - Type: stringdonor
_first _name - Type: stringdonor
_last _name - Type: stringdonor
_postal _code - Type: stringdonor
_province - Type: stringidentifier
Partial update for a donation. quantity, identifier, and source may only be sent when the donation status is pledged. designation_id must refer to a designation on the donation's campaign when set. The server also accepts PATCH with the same JSON body.
- application/json
- application/json
- 401
Unauthorized
- 403
Forbidden
- application/json
curl 'https://api.infinitegiving.com/v1/donations/{id}' \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"donor_first_name": "Iggy",
"donor_last_name": "Stardust",
"donor_email": "iggy@example.com",
"donor_address_line_1": "123 Generosity Lane",
"donor_address_line_2": "",
"donor_city": "",
"donor_province": "",
"donor_postal_code": "",
"donor_country": "ad",
"designation_id": null,
"memo": "",
"quantity": 1,
"source": "",
"identifier": "",
"advisor": {
"email": "",
"first_name": "",
"middle_name": "",
"last_name": "",
"title": "",
"bio": "",
"sec_url": "",
"firm_name": ""
}
}'
{ "data": { "id": "cmm4uj7wf00013b6sbb8fz4oq", "donor_first_name": "Iggy", "donor_last_name": "Stardust", "donor_email": "iggy@gmail.com", "donor_address_line_1": "123 Generosity Lane", "donor_address_line_2": "Flat 21", "donor_city": "Anytown", "donor_province": "GA",