Skip to main content
PATCH
Change the Online payments settings

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Query Parameters

dryRun
boolean

Check and report the change without saving it

Body

application/json

The settings to change

isActive
boolean
default:true

Turns online payments (Stripe) on for the workspace. Off stops members paying fees, tickets and donations by card. Dry-run and confirm with the person first.

eventTickets
boolean
default:true

Shown on the payments screen as event ticket sales. Currently stored only: nothing reads it, ticket sales are governed by events.hasTicketOnlinePayments.

isLocalActive
boolean
default:false

Lets local centers take online payments into their own connected Stripe account. Dry-run and confirm with the person first.

allLocalsEligible
boolean
default:true

Every local center may take online payments. Off means admins mark eligible local centers one by one.

productsWithLocalCenterOption
boolean
default:false

Lets admins mark products so the buyer picks the local center the payment is for.

donationProductUuid
string | null

Donation product used by the built-in donate page, the header Donate button and website donation widgets. Empty means no main donation product. The uuid of a Product in this workspace. Dry-run and confirm with the person first.

subscriptionSupportProductId
string | null

Recurring donation product whose active donors are shown as supporters on profiles and in the directory. Holds the product UUID despite the name. Empty means none. The uuid of a Product in this workspace.

showDonateButtonInHeader
boolean
default:true

Shows a Donate shortcut in the app header. Needs a donation product or a custom link in onlinePayments.donateButtonUrl.

donateButtonUrl
string | null

Where the header Donate button points: a link starting with https:// or a path starting with "/". Empty uses the built-in donate page for the donation product.

fees
boolean
default:true

Lets members pay their membership fee online by card. Needs membership fees on. Dry-run and confirm with the person first.

allMembersFeeEligible
boolean
default:true

Every member can pay the membership fee online. Off means only members of local centers marked as fee-eligible can.

hasCreateAccountForExternalProfiles
boolean
default:true

Lets admins set products so that buyers who are not members get an account created automatically.

checkoutCollectPhone
boolean
default:false

Asks for a phone number at Stripe checkout and on donation forms.

checkoutRequireMiddleName
boolean
default:false

Donation checkouts only: donors must enter their middle name, stored on their member or contact profile.

checkoutRequirePersonalId
boolean
default:false

Donation checkouts only: donors must enter their personal identification number, stored encrypted with every reveal audited.

hasPdfProof
boolean
default:false

Shows downloadable PDF receipts or proofs on a product's payments list.

sendStripeReceipt
boolean
default:false

Lets Stripe email its own payment receipt for tickets, donations and fees. Needs customer emails enabled in the Stripe account; Stripe never sends them in test mode.

isPolitics
boolean
default:false

Political organisation mode: donors must declare their donation is from private funds, and with automated identity validation on, recurring donations without a validated identity are cancelled and refunded after 6 days. With identity validation for online payments and automated validation on, a scheduled job cancels and refunds recurring donations still without a validated identity after 6 days. Dry-run and confirm with the person first.

confidentialityMandatory
boolean
default:false

Buyers must tick a confidentiality agreement before paying.

maxUserAmountPerYear
number | null

Most a single donor may give in a calendar year, in the workspace currency. Donations above it are refused and recurring donations are cancelled before the charge that would pass it. Empty means no limit. A daily job cancels, at period end, recurring donations whose next charge would take the donor past the cap, and emails the donor. Dry-run and confirm with the person first.

Required range: x >= 0

Response

OK