Skip to content

Give once to the community fund​

POST
/communities/{id}/fund/gifts

Anyone, guests included (a guest gives donor_email). A destination charge to the community's own Stripe account: the card fee comes out, FundlyHub keeps 0%. A gift to the fund is not a donation to a Fundly and is not tax-deductible. Confirm the returned PaymentIntent with Stripe Elements. Needs the same reCAPTCHA token as a donation's payment intent (recaptcha_token or x-recaptcha-token; signed-in verified users are exempt).

Authorizations​

or
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)

Parameters​

Path Parameters

id*

The community's uuid or slug.

Type
string
Required

Request Body​

application/json
JSON
{
"amount_cents": 0,
"note": "string",
"anonymous": true,
"donor_name": "string",
"donor_email": "string",
"recaptcha_token": "string",
"additionalProperties": "string"
}

Responses​

OK

application/json
JSON
{
"data": {
"client_secret": "string",
"payment_intent_id": "string",
"fee_cents": 0,
"net_cents": 0,
"additionalProperties": "string"
},
"additionalProperties": "string"
}

Playground​

Server
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Built with VitePress