POST
/
admin
/
donation
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Donation data
designation
string
Example:

"entity-1"

donor_id
string
Example:

"1"

amount
number
Example:

10

dont_notify
integer
Example:

1

charge_donor
integer
Example:

1

method
string
Example:

"3"

result
string
Example:

"result note"

client_id
string
Example:

"1"

created_at
string
Example:

"2022-01-01"

Response

200
application/json
Successful operation
message
string
Example:

"Donation Successful"