Skip to content

Get donation by receipt ID​

GET
/donations/receipt/{receiptId}

The donor's receipt. Public — the receipt id is the Stripe PaymentIntent (pi_…) or invoice (in_…) id, a capability token only the donor holds, so treat it as a secret: the response includes the donor's email and card details. Answers for a donation in any payment state, including pending. Responses are Cache-Control: private, no-store. receipt_context identifies the donation flow independently of a tax acknowledgment and is available while nonprofit settlement is pending. A reservation identity is never returned as nonprofit_receipt.

The receipt says where the payment stands (state and the fields beside it). A gift paid by US bank has its receipt from the moment the bank accepts the debit: state is in_progress and bank_arrival is the day the money is expected. money_went is the split the page shows, anonymous_key the donor's public anonymous identity, and receipt_email how many copies were mailed. A creator membership payment is read here too, by its invoice id; membership says who it supports.

Authentication is optional and changes one thing: receipt_email.sent_to lists the addresses only for the signed-in donor the gift belongs to.

Authorizations​

BearerAuth

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.

Type
HTTP (bearer)
or

Parameters​

Path Parameters

receiptId*

The receipt id, or the donation's PaymentIntent id.

Type
string
Required

Responses​

Receipt details

application/json
JSON
{
"data": {
"id": "string",
"fundraiser_id": "string",
"amount_cents": 0,
"net_amount_cents": 0,
"fee_amount_cents": 0,
"tip_amount_cents": 0,
"currency": "string",
"donor_name": "string",
"donor_email": "string",
"is_anonymous": true,
"payment_status": "string",
"payment_clearing": true,
"payment_method_type": "string",
"card_brand": "string",
"card_last4": "string",
"bank_name": "string",
"bank_last4": "string",
"wallet_type": "string",
"fee_kind": "string",
"fee_covered": true,
"state": "string",
"bank_arrival": "string",
"cleared_at": "string",
"payment_cleared_at": "string",
"reversed_at": "string",
"failure_code": "string",
"refunded_at": "string",
"refunded_cents": 0,
"money_went": "string",
"tax_cents": 0,
"anonymous_key": "string",
"receipt_email": "string",
"membership": {
"creator_id": "string",
"creator_name": "string",
"tier_name": "string",
"billing_interval": "string"
},
"receipt_id": "string",
"created_at": "string",
"campaign_title": "string",
"campaign_slug": "string",
"beneficiary_name": "string",
"receipt_context": "string",
"nonprofit_receipt": {
"additionalProperties": "string"
},
"nonprofit_receipt_adjustment": {
"state": "string",
"refunded_charge_cents": 0
},
"nonprofit_monthly": {
"status": "string",
"cancel_at_period_end": true,
"next_payment_at": "string"
},
"fundraiser": {
"title": "string",
"slug": "string"
}
}
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Built with VitePress