Donations

Create donation checkout session

Changed on

Creates a Stripe checkout session for a one-time or recurring donation.

post/donations/checkout

Request

  • Base URL: https://web.fluxer.app/api/v1
  • URL: https://web.fluxer.app/api/v1/donations/checkout
  • Auth: none required

Request body

emailstring email required

Donor email address

amount_centsinteger required

Donation amount in minor units for the selected currency

currency'usd' | 'eur' | 'brl' | 'inr' | 'pln' | 'try' | 'sek' | 'dkk' | 'nok' required
interval'month' | 'year' nullable required

Billing interval (null for one-time donation)

is_businessboolean

Whether the donation is from a business. When true, Stripe Checkout requires a billing address for tax invoicing. When false or omitted, billing address collection is left to Stripe.

Response

Success

urlstring uri required

Stripe checkout URL to redirect the user to

Changes

    • warning

      changed the pattern of the request property from ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ to ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$

    • info

      added the new dkk enum value to the request property

    • info

      added the new nok enum value to the request property

    • info

      added the new sek enum value to the request property