Skip to main content

Cancel payment

post/payments/cancel

Cancels the payment. Returns a URL for user redirection.

Endpoint destination URL
Click to copy
tokenstringRequired
Min length: 1Max length: 1000

The payment token is an identifier for the payment. It is generated by Adyen on the response of the payment details.

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.

  • 400 - Bad Request

    The request is malformed or is not the expected format.

  • 422 - Unprocessable Entity

    A request validation error.

  • 500 - Internal Service Error

    An unrecoverable error occurred while trying to perform the request.