After initialising the payment, we need to confirm it to complete the payment.
Here, we will confirm a payment draft using the payment ID parameter.
The payment ID is taken from the response to the payment initialisation request.
An optional comment.
To confirm the payment, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v3/payments/PAYM-47356/confirm
The sample request body is as follows:
{
"comment": "Confirm payment"
}
curl --location 'https://payment-api.sandbox.tuumplatform.com/api/v3/payments/PAYM-47356/confirm' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjQtMDItMDhUMTY6MTU6NTkiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIuRVUiLCJleHAiOjE3MDc0MDg5NTl9.9ra--2cschOt3BvgdMrq_yrKgVhZrPCiX6ea0IXkX08' \
--header 'Content-Type: application/json' \
--data '"comment": "Confirm payment"'
Below you will find the response to the sample request:
The payment is confirmed with the statusCode WAITING_FOR_AML
. You can check the AML-related information using the AML API. You can also manually approve or decline a payment detected by the AML monitoring system.
".../PAYM-47356/confirm"
{ "comment": "Confirm payment" }