Merge Donations
Merge one donation into another. The donation named by into is kept
and keeps its ID. The donation named by from is soft-deleted and points
at the into donation.
The response is the into donation after the merge. A value already set
on it is kept. A value it is missing can be filled with the value from
the from donation.
A merge cannot be undone. Repeating a completed merge is safe: it returns
the into donation again. The merge emits a donation.updated event for
the into donation and a donation.deleted event for the from one.
Errors
400when the same donation is on both sides.404when a donation does not exist.409when an input is deleted or merged. The problemtypeisdonation_deletedordonation_merged, and a merged input carries the ID of the donation it was merged into. A deleted or merged donation still exists, so a write conflicts with its state.409when both donations are reconciled to a deposit. The problemtypeisdonation_merge_conflict.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
Request
The donation to merge. It is soft-deleted and points at the into donation.
Response
The ISO 4217 code for every amount on the donation. Defaults to USD unless the source reports another currency.
The identifier of the Source that sent this donation.
The exchange rate used to convert the donation into target_currency.
Null when currency is already the target currency, or when no rate was reported.
The kind of gift.
individual: a gift from an individual donor.match: a company’s match of an employee’s gift.daf: a grant from a donor-advised fund.other: any other kind of gift.unknown: the source did not report the kind of gift.
Whether the donor set the gift to repeat.
one_time: the donor gave once.recurring: the donor set the gift to repeat.unknown: the source did not report whether the gift repeats.
Arbitrary key-value pairs recorded against the donation. Use this for reconciliation data, campaign identifiers, or other integration data.
A list of source artifacts that were used to create the donation. These can include the raw source files (PDFs, CSVs, etc.) that were received from upstream platforms or systems.
When the donation was deleted or merged. Null for a live donation.
GET /v1/donations/{id} still returns a deleted or merged donation,
but GET /v1/donations (list) excludes it. Expressed in RFC 3339
format.
The donation this one was merged into. Set only for a merged donation, as a donation ID. Null for a live or plain-deleted donation. Follow it to the donation that now holds the gift.
Deprecated. Use source_id.

