Create a fundraising campaign

Creates an active USD fundraising campaign for the authenticated user's active school, assigns the resolved merchant account and creator, and optionally creates donation types. The response is the complete campaign resource, including its generated id and hash.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
fundraising_fund_idintegerRequired
campaign_namestringRequired<=1000 characters
legal_namestringRequired<=1000 characters
tax_idstringRequired<=255 characters
descriptionstring or nullOptional
start_datedatetime or nullOptional
end_datedatetime or nullOptional
total_amountdoubleOptional
success_payment_messagestring or nullOptional<=255 characters
show_amountboolean or nullOptional
emailstring or nullOptional<=255 characters
phonestring or nullOptional<=255 characters
fundraising_donation_type_sortlist of integers or nullOptional
fundraising_donation_typeslist of maps from strings to any or nullOptional
file_manager_idinteger or nullOptional

Response

Campaign created.
statusstring
messagestring
dataobject

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error