Your masjid · Donation campaigns
Your donation account
Your organization's donation account: its currency, whether Stripe takes and pays out donations, and its default campaign. Never a Stripe id or a bank detail.
Right on the key: Donation campaigns: read for a read, edit (secret key) for a write.
Your donation account
GET/v1/masjid/donation-account
Your organization's donation account: its currency (every amount is in its minor units), whether Stripe takes and pays out donations, its default campaign. Needs Donation campaigns: read.
Parameters
No parameters.
Returns
The account.
objectdonation_accountAlways
donation_account.idstringThe account id.
countrystring | nullISO 3166-1 alpha-2.
currencystring | nullISO 4217: every amount of the account is in it.
timezonestring | nullIANA time zone: the days of its figures are read in it.
enabledbooleanValidated by Masjidbox and live: its campaigns take donations.
onboardedbooleanStripe has every onboarding detail.
chargesEnabledbooleanStripe accepts payments for it.
payoutsEnabledbooleanStripe pays it out.
defaultCampaignstring | nullThe campaign donations go to when none is named.
Errors
curl "https://hub.masjidbox.com/v1/masjid/donation-account" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"chargesEnabled": true,
"country": "GB",
"currency": "GBP",
"defaultCampaign": "cmp_6af5c9e2bc095fbd2dc5735b",
"enabled": true,
"id": "acc_6af5c9e2bc095fbd2dc5735a",
"object": "donation_account",
"onboarded": true,
"payoutsEnabled": true,
"timezone": "Europe/London"
}