curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/commitment/{commitment_id}/donation \
--header 'Content-Type: application/json' \
--header 'X-HYS-API-Key: <api-key>' \
--data '
{
"client_id": "1",
"amount": 100,
"commitment_id": 1,
"method": 3,
"result": "result note",
"created_at": "2022-01-01"
}
'{
"message": "Donation Successful"
}API key generated from Developer Settings. Format: hys_...
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 'Content-Type: application/json' \
--header 'X-HYS-API-Key: <api-key>' \
--data '
{
"client_id": "1",
"amount": 100,
"commitment_id": 1,
"method": 3,
"result": "result note",
"created_at": "2022-01-01"
}
'{
"message": "Donation Successful"
}