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

Masjid key · Donation campaigns: read

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_account

    Always donation_account.

  • idstring

    The account id.

  • countrystring | null

    ISO 3166-1 alpha-2.

  • currencystring | null

    ISO 4217: every amount of the account is in it.

  • timezonestring | null

    IANA time zone: the days of its figures are read in it.

  • enabledboolean

    Validated by Masjidbox and live: its campaigns take donations.

  • onboardedboolean

    Stripe has every onboarding detail.

  • chargesEnabledboolean

    Stripe accepts payments for it.

  • payoutsEnabledboolean

    Stripe pays it out.

  • defaultCampaignstring | null

    The campaign donations go to when none is named.

GET /v1/masjid/donation-account
curl "https://hub.masjidbox.com/v1/masjid/donation-account" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidDonationAccount
{
  "chargesEnabled": true,
  "country": "GB",
  "currency": "GBP",
  "defaultCampaign": "cmp_6af5c9e2bc095fbd2dc5735b",
  "enabled": true,
  "id": "acc_6af5c9e2bc095fbd2dc5735a",
  "object": "donation_account",
  "onboarded": true,
  "payoutsEnabled": true,
  "timezone": "Europe/London"
}