Send donation receipt
Email the receipt for one donation.
The donation is named by receipt_id and nothing else — every figure
in the email is read from that row, so the caller cannot dictate the
contents. receipt_id is the Stripe PaymentIntent id, which is not
guessable.
recipient_email is deliberately free-form, because "send it to my
accountant" is the feature. What bounds it instead is a cap of 5
sends per donation, after which this returns 429 (code
RECEIPT_EMAIL_CAPPED) for that donation permanently. Every answer
that counted a send carries receipt_email, the counts after it.
A gift whose US bank payment is still in progress can be mailed too:
the copy reads "Bank payment in progress", with the day the money is
expected. The address is kept with the gift once the copy is sent, and
shown again only to the signed-in donor (GET /donations/receipt/{receiptId}).
Authentication is optional; the endpoint is rate limited.
Authorizations
In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.
Request Body
Responses
Receipt sent.