curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/commitment/{commitment_id}/donation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1",
"amount": 100,
"commitment_id": 1,
"method": 3,
"result": "result note",
"created_at": "2022-01-01"
}'
{
"message": "Donation Successful"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the commitment to be added
Donation data to be added
The body is of type object
.
Donation added successfully
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/commitment/{commitment_id}/donation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1",
"amount": 100,
"commitment_id": 1,
"method": 3,
"result": "result note",
"created_at": "2022-01-01"
}'
{
"message": "Donation Successful"
}