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"
} |
ENDPOINTS