Skip to main content

Create Donation

Create a donation checkout session for a creator.

POST
/donation/create
x-api-key<token>

API key used for authentication

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/donation/create" \  -H "Content-Type: application/json" \  -d '{    "amount": 0.01,    "currency": "aed"  }'
{
  "id": "test-donation-id",
  "amount": 1000,
  "currency": "usd",
  "donorName": "Test Donor",
  "donorEmail": "test@example.com",
  "message": "Test donation",
  "createdAt": "2026-03-14T11:35:08.457Z"
}
{
  "error": "string",
  "code": "string",
  "details": {}
}