POST
/
admin
/
commitment
/
{commitment_id}
/
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

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

Path Parameters

commitment_id
integer
required

ID of the commitment to be added

Body

application/json
Donation data to be added
client_id
string
Example:

"1"

amount
number
Example:

100

commitment_id
number
Example:

1

method
integer
Example:

3

result
string
Example:

"result note"

created_at
string
Example:

"2022-01-01"

Response

200
application/json
Donation added successfully
message
string
Example:

"Donation Successful"