Skip to main content
POST
Add a commitment donation

Authorizations

X-HYS-API-Key
string
header
required

Gratona API key sent with the compatibility header X-HYS-API-Key.

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

A zero amount records a failed-payment notice without charging or advancing the commitment.

Required range: x >= 0
Example:

100

commitment_id
number
Example:

1

method
integer
Example:

3

result
string | null

Optional rich-text note. Null or omitted values are persisted as an empty string.

Example:

"result note"

created_at
string
Example:

"2022-01-01"

addSoftCredit
boolean
Example:

true

soft_credit_donor_id
integer
Example:

2

soft_credit_type
integer
Example:

1

soft_credit_amount
number
Example:

25

Response

Donation added successfully

message
string
Example:

"Donation Successful"