Skip to content

Create donation

POST
/donations

Submit a new donation to a fundraiser.

Authorizations

BearerAuth

Authentication is handled automatically via httpOnly session cookies after signing in at /cognito/signin or via Google SSO at /cognito/oauth/google. For Swagger UI testing, paste a JWT token from the /cognito/signin response.

Type
HTTP (bearer)

Request Body

application/json
JSON
{
"fundraiser_id": "string",
"amount": 50,
"message": "string",
"is_anonymous": false
}

Responses

Donation created

application/json
JSON
{
"id": "string",
"fundraiser_id": "string",
"donor_id": "string",
"amount": 50,
"status": "string",
"message": "string",
"is_anonymous": true,
"receipt_id": "string",
"created_at": "string"
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI

Built with VitePress