curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/donation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"designation": "entity-1",
"donor_id": "1",
"amount": 10,
"dont_notify": 1,
"charge_donor": 1,
"method": "3",
"result": "result note",
"client_id": "1",
"created_at": "2022-01-01"
}'
{
"message": "Donation Successful"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Donation data
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/donation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"designation": "entity-1",
"donor_id": "1",
"amount": 10,
"dont_notify": 1,
"charge_donor": 1,
"method": "3",
"result": "result note",
"client_id": "1",
"created_at": "2022-01-01"
}'
{
"message": "Donation Successful"
}