Create a donation
POST
/donate
Modifications
This endpoint is part of our classic API integration. If using a newer integration, use the /donations
endpoint under Checkout API instead.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/donate' \
--header 'Content-Type: application/json' \
--data-raw '{
"donationAccount": "string",
"merchantAccount": "string",
"modificationAmount": {
"currency": "str",
"value": 0
},
"originalReference": "string",
"platformChargebackLogic": {
"behavior": "deductAccordingToSplitRatio",
"costAllocationAccount": "string",
"targetAccount": "string"
},
"reference": "string"
}'
Response Response Example
200 - Example 1
{
"additionalData": {
"property1": "string",
"property2": "string"
},
"pspReference": "string",
"response": "[capture-received]"
}
Request
Body Params application/json
Responses
Modified at 2023-08-15 08:20:06