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
Donation added successfully
"Donation Successful"
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"
}