Campaign Events
Events published during campaign lifecycle — creation, updates, deletion, and goal milestones.
campaign.created
Published when a new fundraising campaign is created.
| Field | Type | Description |
|---|---|---|
campaignId | string | UUID of the campaign |
title | string | Campaign title |
ownerId | string | UUID of the campaign creator |
goalAmount | number | Target fundraising amount |
categoryId | string | Category UUID |
slug | string | URL-friendly slug |
json
{
"type": "campaign.created",
"version": "1.0.0",
"payload": {
"aggregateId": "f1e2d3c4-...",
"campaignId": "f1e2d3c4-...",
"title": "Help Local School",
"ownerId": "a1b2c3d4-...",
"goalAmount": 5000,
"categoryId": "cat-education-...",
"slug": "help-local-school"
}
}campaign.updated
Published when any campaign details change.
| Field | Type | Description |
|---|---|---|
campaignId | string | UUID of the campaign |
changes | Record<string, any> | Key-value map of changed fields |
campaign.deleted
Published when a campaign is permanently removed.
| Field | Type | Description |
|---|---|---|
campaignId | string | UUID of the campaign |
campaign.goal_reached
Published when total donations meet or exceed the campaign goal.
| Field | Type | Description |
|---|---|---|
campaignId | string | UUID of the campaign |
goalAmount | number | Original goal amount |
totalRaised | number | Actual amount raised |