curl --request PATCH \
--url https://api.example.com/api/church/editdonationstatus \
--header 'Content-Type: application/json' \
--data '
{
"donationId": "<string>",
"churchId": "<string>",
"status": {}
}
'{
"success": true,
"message": "<string>",
"data": {
"data._id": "<string>",
"data.church": "<string>",
"data.donationName": "<string>",
"data.donationStatus": {},
"data.startDate": "<string>",
"data.endDate": "<string>",
"data.donationDescription": "<string>",
"data.bankDetails": {},
"data.donationSupportContact": {},
"data.donationMetrics": {},
"data.createdAt": "<string>",
"data.updatedAt": "<string>"
}
}Update the status of a donation campaign. Only pastors can modify donation status.
curl --request PATCH \
--url https://api.example.com/api/church/editdonationstatus \
--header 'Content-Type: application/json' \
--data '
{
"donationId": "<string>",
"churchId": "<string>",
"status": {}
}
'{
"success": true,
"message": "<string>",
"data": {
"data._id": "<string>",
"data.church": "<string>",
"data.donationName": "<string>",
"data.donationStatus": {},
"data.startDate": "<string>",
"data.endDate": "<string>",
"data.donationDescription": "<string>",
"data.bankDetails": {},
"data.donationSupportContact": {},
"data.donationMetrics": {},
"data.createdAt": "<string>",
"data.updatedAt": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SidneyEmeka/church_management_system/llms.txt
Use this file to discover all available pages before exploring further.
pastorPATCH /api/church/editdonationstatus
"on" - Activate the donation (allows new contributions)"off" - Deactivate the donation (temporarily pause contributions)"completed" - Mark the donation as completed (prevents new contributions)/makedonation endpointcurl -X PATCH "https://api.example.com/api/church/editdonationstatus" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"donationId": "60d5ec49f1b2c72b8c8e4f1c",
"churchId": "60d5ec49f1b2c72b8c8e4f1b",
"status": "completed"
}'
{
"success": true,
"message": "Donation status changed",
"data": {
"_id": "60d5ec49f1b2c72b8c8e4f1c",
"church": "60d5ec49f1b2c72b8c8e4f1b",
"donationName": "Building Fund 2026",
"donationStatus": "completed",
"startDate": "2026-04-01T00:00:00.000Z",
"endDate": "2026-12-31T23:59:59.000Z",
"donationDescription": "Fundraising for new church building construction",
"bankDetails": {
"accountName": "First Baptist Church",
"accountNumber": "1234567890",
"bankName": "Community Bank"
},
"donationSupportContact": {
"phone": "+1-555-0123",
"email": "[email protected]"
},
"donationMetrics": {
"targetAmount": 500000,
"minAmount": 10,
"totalGotten": 500000
},
"createdAt": "2026-03-07T10:30:00.000Z",
"updatedAt": "2026-03-07T15:45:00.000Z"
}
}
{
"success": false,
"message": "Unable to edit donation status",
"data": "Donation status must be on, off or completed"
}
{
"success": false,
"message": "Unable to edit donation status",
"data": "Donation not found"
}
{
"success": false,
"message": "Unable to edit donation status",
"data": "Error message details"
}
{
"donationId": "60d5ec49f1b2c72b8c8e4f1c",
"churchId": "60d5ec49f1b2c72b8c8e4f1b",
"status": "on"
}
{
"donationId": "60d5ec49f1b2c72b8c8e4f1c",
"churchId": "60d5ec49f1b2c72b8c8e4f1b",
"status": "off"
}
{
"donationId": "60d5ec49f1b2c72b8c8e4f1c",
"churchId": "60d5ec49f1b2c72b8c8e4f1b",
"status": "completed"
}
churchId parameter ensures pastors can only modify donations for their churches/makedonation endpoint behaviordonators array is excluded from the response for performanceupdatedAt timestamp is automatically updated when status changes