Logo
Adyen APIs API Documentation

Start a donation transaction with a token

POST {{baseUrl}}/donations

Takes in the donation token generated by the /payments request and uses it to make the donation for the donation account specified in the request. For more information, see Donations.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string
Idempotency-Key
null A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).




RESPONSES

status OK

{ "amount": { "currency": "EUR", "value": 500 }, "donationAccount": "NONPROFIT_ACCOUNT", "id": "UNIQUE_RESOURCE_ID", "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "payment": { "pspReference": "FJM726V375BV9D82", "resultCode": "Authorised", "amount": { "currency": "EUR", "value": 500 }, "merchantReference": "YOUR_DONATION_REFERENCE" }, "reference": "1412563167350061", "status": "completed" }



Curl
curl -X POST 'https://checkout-test.adyen.com/v71/donations' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Idempotency-Key: ' -d '{"amount":{"currency":"EUR","value":1000},"reference":"YOUR_DONATION_REFERENCE","paymentMethod":{"type":"scheme","recurringDetailReference":"7219687191761347"},"returnUrl":"https://your-company.com/...","merchantAccount":"","donationAccount":"NONPROFIT_ACCOUNT","shopperInteraction":"ContAuth","shopperReference":"YOUR_SHOPPER_REFERENCE","recurringProcessingModel":"CardOnFile"}'

ENDPOINTS