Donation Campaign Object


A donation campaign represents a fundraising initiative that allows collecting donations for a specific cause or goal. Campaigns can be configured with various donation options, including one-time and recurring payments, predefined amounts, and campaign goals.

Use the Donation Campaigns API to create and manage donation campaigns on your site.

Properties
archivedboolean

Whether the donation campaign is archived and hidden from site visitors. Archived campaigns can't accept donations.

Default: false


campaignGoalCampaignGoal

Campaign fundraising goal.


commentsEnabledboolean

Whether donors can add comments to their donations.

Default: false


coverImageImage

Cover image for the donation campaign.


createdDatestringRead-onlyformat date-time

Date and time the donation campaign was created.


customAmountEnabledboolean

Whether donors can specify their own donation amount. If custom amounts are disabled, at least one predefined amount must be provided.

Default: false


customAmountOptionsCustomAmountOptions

Optional settings for custom donation amounts.


donationFrequenciesArray <string>minItems 1maxItems 4

Donation frequencies available for this campaign.

At least one frequency must be specified.


extendedFieldsExtendedFields

Custom field data for the program definition object.

Extended fields must be configured in the app dashboard before they can be accessed with API calls.


idstringRead-onlyformat GUID

Donation campaign ID.


namestringminLength 1maxLength 65

Name of the donation campaign.


predefinedDonationAmountsArray <PredefinedAmount>maxItems 20

Predefined donation amounts.

Each amount can include an optional description explaining its impact. For example, "Feed 5 families for a week".


revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the donation campaign is updated. To prevent conflicting changes, the current revision must be specified when updating the donation campaign.

Ignored when creating a donation campaign.


statusstringRead-only

Current status of the donation campaign.

The status is automatically calculated based on campaign settings and current progress:

  • COLLECTING: Campaign is active and accepting donations
  • EXPIRED: Campaign has passed its end date and acceptDonationsAfterEndDate is false
  • GOAL_REACHED: Campaign has reached its target amount and acceptDonationsAfterGoal is false

tagsTags

Tags assigned to this donation campaign.


updatedDatestringRead-onlyformat date-time

Date and time the donation campaign was last updated.

Did this help?