> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Donation Campaign Lifecycles

## Article: Donation Campaign Lifecycles

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/donation-campaign-lifecycles.md

## Article Content:

# About Donation Campaign Lifecycles

A donation campaign moves through distinct stages from [creation](#creation-and-setup) to completion: 
- [Active collection](#active-collection-period), 
- [Campaign completion](#campaign-completion)
- [Post-completion](#after-completion) 

> **Note** Campaign do not need to have an end. They may remain in the active collection period indefinitely.

Each stage has a specific status and determines whether the campaign accepts donations, how you can modify settings, and what data you can retrieve.

## Creation and setup

When you create a donation campaign, you configure the core settings that define how it operates. Each campaign requires basic information including a name. You configure donation amounts by enabling custom amounts, predefined amounts, or both. These settings determine what options donors see when they contribute.

You also set donation frequencies to specify whether the campaign accepts one-time donations, recurring donations, or multiple frequency options. Recurring donations can be weekly, monthly, or yearly. Optionally, you can configure `endDate` and post-completion behaviors that control what happens when the campaign reaches its goal or time limit. Note that campaigns ending doesn't affect recurring donations.

Once you complete setup, the system automatically activates the campaign so it can accept donations. The campaign enters the active collection period immediately after creation. Learn more about [accepting donations](https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/introduction.md#accept-donations).

## Active collection period

During the active collection period, the campaign's status is `COLLECTING`. This status indicates that the campaign is accepting donations according to its configured settings.

Retrieve progress information via the [metrics and reporting](https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/introduction.md#view-metrics-and-reports) method to track donation count and total amount collected. While the campaign is collecting, you can update campaign settings without losing donation history. This flexibility allows you to optimize the campaign based on performance data.

## Campaign completion

A campaign can reach completion in the following ways: 
- [Goal achievement](#goal-achievement) 
- [Time expiration](#time-expiration)

### Goal achievement

A campaign reaches its goal when total donations meet the target amount. At this point, the campaign's behavior depends on the `acceptDonationsAfterGoal` setting:

- If `acceptDonationsAfterGoal` is `false`, the campaign's status becomes `GOAL_REACHED`, and it stops accepting donations.
- If `acceptDonationsAfterGoal` is `true`, the campaign continues accepting donations beyond the goal.

The default value is `true`, allowing campaigns to continue collecting after reaching their target.

### Time expiration

The campaign expires when the current date passes the configured `endDate`. The campaign's behavior at expiration depends on the `acceptDonationsAfterEndDate` setting:

- If `acceptDonationsAfterEndDate` is `false`, the campaign's status becomes `EXPIRED`, and it stops accepting donations.
- If `acceptDonationsAfterEndDate` is `true`, the campaign continues accepting donations past `endDate`.

The default value is `false`, stopping donations when the campaign reaches its end date.

## After completion

You can still query completed campaigns and retrieve their metrics and [donations](https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/introduction.md#retrieve-donations) even after they stop collecting donations. Wix preserves historical donation data, ensuring you maintain access to campaign records.

If needed, you can update campaign settings to reactivate a campaign. This capability lets you extend campaigns or adjust completion behaviors based on changing needs.

## See also

- [About Donation Campaigns](https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/introduction.md)
- [Sample Flows](https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/sample-flows.md)