Tip FundlyHub
A tip to FundlyHub itself — not a donation to a cause, and not tax-deductible. Two ways to pay it, by what the request carries.
Hosted page (no confirmation_token_id and no payment_method_id): creates a pending tip row and a Stripe Checkout Session (payment mode for one_time, monthly subscription mode for recurring) and returns its url; send the browser there. Stripe returns the payer to /tip/{tip_id} on the site. The tip is settled by the Stripe webhook, not by this call.
Sheet mode (exactly one of confirmation_token_id or payment_method_id, while sheetEnabled from GET /payments/checkout-config is true): the tip is paid inside the checkout sheet. The server creates the payment and confirms it, and the 201 answer carries the PaymentIntent's status like every sheet checkout: succeeded, processing (a US bank debit was accepted; the tip counts now, clears in about four business days and is reversed if the bank returns it) or requires_action (finish 3-D Secure in the browser with stripe.handleNextAction({ clientSecret }); the tip is recorded when Stripe reports the payment succeeded). There is no separate confirm call. A monthly tip is a Stripe subscription whose first month is paid here. The tipper pays amount_cents whatever the method; the fee by method is FundlyHub's cost and is reported as stripe_fee_cents. checkout_key makes the request safe to repeat: the same key is the same tip and the same payment, never a second charge. After a decline (402), or a failure whose code is checkout_key_conflict or payment_not_completed, the next attempt uses a new key.
The tip switch. Tips to FundlyHub are taken while tips.platform_tip from GET /payments/checkout-config is true. While staff have it off, both ways answer 409 tip_not_offered and nothing is created or charged. Turning it off stops new tips only: a monthly tip that is already running keeps renewing.
Authentication is optional. With a session the tip is attributed to the account, and the account's name and email are used when the body does not give them. Currency is always USD. In sheet mode a guest paying with Apple Pay, Google Pay or Link sends no name or email (the wallet's are used; what is sent always wins), a guest paying with a new card or bank account sends donor_email, and a monthly tip needs an email however it is paid (400 donor_email_required). A one-time tip from a wallet that carries no email is taken and stored with none: no receipt is emailed, and the receipt page can still send one to an address typed there.
Rate limited at 10 requests/minute per IP (authentication bucket).
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
Hosted page: Checkout started (url). Sheet mode: the tip's payment as it stands (status).