Skip to main content
POST
/
admin
/
commitment
/
{commitment_id}
/
donation
Add a commitment donation
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"
}

Authorizations

Authorization
string
header
required

Path Parameters

commitment_id
integer
required

Body

application/json
client_id
string
Example:
amount
number
Example:
commitment_id
number
Example:
method
integer
Example:
result
string
Example:
created_at
string
Example:

Response

message
string
Example: