Skip to main content

Confirm payment

post/payments/confirm
Confirms the payment using Strong Customer Authentication (SCA).

To confirm a payment you must make this request two times:

1. Make this request to initiate SCA and receive the WWW-Authenticate header.
2. After the user completes the SCA challenge, make this request again, including the updated WWW-Authenticate header.

The second response provides a redirection URL that guides the user to a payment success or failure page.

For more information, see our documentation.

Endpoint destination URL
Click to copy
WWW-Authenticatestring

Header for authenticating through SCA: Contains information for an SCA challenge for A2A payments.

balanceAccountIdstringRequired
Min length: 1Max length: 100

The balance account ID of the account where the funds should be subtracted.

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.

  • 401 - Unauthorized

    The API credential used in the request is invalid or does not have the right permissions.

  • 422 - Unprocessable Entity

    A request validation error.

  • 500 - Internal Service Error

    An unrecoverable error occurred while trying to perform the request.