Skip to main content
POST
Apply a received gift to recipient coverage

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

donation_id
integer
required

Donation id.

Required range: x >= 1
Example:

123

Body

application/json

Request fields accepted by this operation. Omitted optional properties retain the behavior described above.

entity_ids
integer[]
required

Organization-owned recipient IDs. Duplicates are removed before planning.

Required array length: 1 - 500 elements
Required range: x >= 1
covered_from
string<date> | null

Optional inclusive start. Otherwise starts on the gift date or the day after existing funding, whichever is later.

covered_through
string<date> | null

Optional inclusive end, validated after_or_equal:covered_from. Required by planning when the program has no monthly monetary target.

amounts
object | null

Optional amount map keyed by recipient ID. If non-empty, omitted selected IDs receive zero. Otherwise remaining gift value is split evenly, with the minor-unit remainder on the first recipient.

display_funder
enum<string> | null
default:inherit

Funder display preference saved by apply. Preview accepts but does not use this value.

Available options:
inherit,
named,
anonymous,
null

Response

Apply a received gift to recipient coverage response.

message
string
rows
object[]
available
string

Decimal major-unit amount serialized as a string with two decimal places.

Pattern: ^-?[0-9]+[.][0-9]{2}$
Example:

"35.00"