Create a donation

post /donate

Schedules a new payment to be created (including a new authorisation request) for the specified donation using the payment details of the original payment.

This endpoint is part of our classic API integration. If using a newer integration, use the /donations endpoint under Checkout API instead.

Endpoint destination URL

https://pal-test.adyen.com/pal/servlet/Payment/v68/donate
Click to copy

Request parameters

donationAccount string Required

The Adyen account name of the charity.

merchantAccount string Required

The merchant account that is used to process the payment.

modificationAmount Required

The amount to be donated.The currency must match the currency used in authorisation, the value must be smaller than or equal to the authorised amount.

originalReference string

The original pspReference of the payment to modify. This reference is returned in:

  • authorisation response
  • authorisation notification
reference string

Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.

Response parameters

After submitting a call, you receive a response message to inform you that your request was received and processed.

Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.

HTTP Responses

  • 200 - OK

    The request has succeeded.

    Show more Show less
  • 400 - Bad Request

    A problem reading or understanding the request.

    Show more Show less
  • 401 - Unauthorized

    Authentication required.

    Show more Show less
  • 403 - Forbidden

    Insufficient permissions to process the request.

    Show more Show less
  • 422 - Unprocessable Entity

    A request validation error.

    Show more Show less
  • 500 - Internal Server Error

    The server could not process the request.

    Show more Show less
  • Request
  • Click to copy
  • Response
  • Click to copy