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.

Request Body

{"amount"=>{"currency"=>"EUR", "value"=>1000}, "reference"=>"YOUR_DONATION_REFERENCE", "paymentMethod"=>{"type"=>"scheme", "recurringDetailReference"=>"7219687191761347"}, "returnUrl"=>"https://your-company.com/...", "merchantAccount"=>"{{YOUR_MERCHANT_ACCOUNT}}", "donationAccount"=>"NONPROFIT_ACCOUNT", "shopperInteraction"=>"ContAuth", "shopperReference"=>"YOUR_SHOPPER_REFERENCE", "recurringProcessingModel"=>"CardOnFile"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
Idempotency-KeynullA 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"}