Skip to main content
POST /api/payments/confirm Confirms a payment transaction that was previously initiated. You must supply the transactionId from the Initiate Payment response. An optional confirmationCode (e.g., OTP) may be required depending on the product.

Request Body

transactionId
string
required
Transaction ID obtained from the Initiate Payment response.Example: TXN-20240616143022-A7F9E2
referenceNo
string
required
Merchant reference number associated with the transaction.Example: MER-20240616-001
confirmationCode
string
OTP or additional verification code required by some payment products.
extraProperties
string (JSON)
Additional confirmation data serialised as a JSON string.Example: "{}"

Response

200 — Payment Confirmed

isSuccess
boolean
true
errorCode
null
null on success.
message
string | null
Optional informational message.
data
object

400 — Bad Request

Validation failed or the transaction cannot be confirmed (e.g., already confirmed or expired).

500 — Internal Server Error


Examples

{
  "transactionId": "TXN-20240616143022-A7F9E2",
  "referenceNo": "MER-20240616-001",
  "confirmationCode": "123456",
  "extraProperties": "{}"
}