Skip to content

Campaign Events

Events published during campaign lifecycle — creation, updates, deletion, and goal milestones.

campaign.created

Published when a new fundraising campaign is created.

FieldTypeDescription
campaignIdstringUUID of the campaign
titlestringCampaign title
ownerIdstringUUID of the campaign creator
goalAmountnumberTarget fundraising amount
categoryIdstringCategory UUID
slugstringURL-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.

FieldTypeDescription
campaignIdstringUUID of the campaign
changesRecord<string, any>Key-value map of changed fields

campaign.deleted

Published when a campaign is permanently removed.

FieldTypeDescription
campaignIdstringUUID of the campaign

campaign.goal_reached

Published when total donations meet or exceed the campaign goal.

FieldTypeDescription
campaignIdstringUUID of the campaign
goalAmountnumberOriginal goal amount
totalRaisednumberActual amount raised

Built with VitePress