Confirm payment
After initialising the payment, we need to confirm it to complete the payment.
Use case
Here, we will confirm a payment draft using the payment ID parameter.
Use case data
API parameters with values
The payment ID is taken from the response to the payment initialisation request.
".../PAYM-47356/confirm"An optional comment.
{ "comment": "Confirm payment" }Sample API call
To confirm the payment, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v3/payments/PAYM-47356/confirm
Sample request
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"'Sample response
Below you will find the response to the sample request:
Result
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.
Last updated
Was this helpful?