Payments
Payment Resources
Payment Status

Payment Status

From the point of initiation payment goes through several statuses, which merchant can observe using methods described below.

statusdescription
AWAITING_AUTHORIZATIONPayment was initiated and it waits for the customer to confirm or cancel it in bank application.
PENDINGCustomer successfully authorized payment in bank application. Bank received thr request to process the payment.
COMPLETEDPayment has been accepted and processed by the initiating bank.
SETTLEDPayment confirmed and settled into the virtual account balance. Virtual account is required
FAILEDPayment failed at any stage of the flow.

Payment Statuses

Payment Status Updates

There are three complementary ways for merchant to know what is the current status of the payment.

methoddescription
Merchant callbackmerchant is notified about payment status via merchant callback URL in front-channel
Webhook notificationsmerchant is notified about payment status via webhook URL in back-channel
GetPaymentStatus API callmerchant can query payment status using an API call

Payment Status API

In addition to being passively informed about ongoing payment status by Merchant Callback and Webhook Notification, merchant can query payment status using direct API call to GetPaymentStatus

Request

curl --location --request GET 'https://api.sandbox.volumepay.io//api/payments/status?merchantPaymentId={merchantPaymentId}' \
--header 'x-application-id: {application-id}'
--header 'x-application-secret: {application-secret}'
argumentkindtypedescription
payment-idpath variableUUIDid of the payment to get status for
application-idheaderUUIDid of the merchant application
application-secretheaderUUIDprivate key of the merchant application

Response

{
    "paymentId": "dd91e433-f77a-4155-bef6-1452bdf2a1d6",
    "merchantPaymentId": "fecd123b8b123a4ef09c9a123eb41cb5",
    "paymentStatus": "COMPLETED",
    "paymentAmount": 52.06,
    "institutionId": "natwest",
    "shopperId": "5204d458-1234-4714-2f44-4a6f9fc99e67",
    "errorDescription": null,
    "tracingId": "6177857480076664131"
}
fieldtypedescription
paymentIdUUIDpayment id
merchantPaymentIdstring [optional]merchant payment id if specified when payment was initialized
paymentStatusstringcurrent payment status: AWAITING_AUTHORIZATION, AUTHORIZED, PENDING, COMPLETED, SETTLED, FAILED
errorDescriptionstring [optional]error details when paymentStatus is FAILED
tracingIdstringcall tracingId