Check transaction status

This Operation allows merchant to check the status of a transaction.

Request

curl -X GET \
https://stg-backend.seerbitapi.com/api/v2/payments/query/{paymentReference}
-H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJjbGllbnRJZCI6InRlc3QiLCJDbGllbnRTZWNyZXQiOiJ0ZXN0IiwiZXhwIjoxNTU4MDEwNjc4LCJpc3MiOiJDRyJ9.WMysigxW-CekXJZrdrbmfOyV6DIeTJxg2Vcp4WvTWtTOQyaOGgOdY52-pV025ZTvCw07NaBvkNcS7fxRxsWLNQ' \

Response

{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"redirectLink": "http://localhost:3000/#/",
"amount": "25000.00",
"customerName": "No Name",
"customerMobile": "40433452905",
"customerEmail": "test@mvaa.com",
"email": "test@mvaa.com",
"mobilenumber": "40433452905",
"fullName": "No Name",
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"paymentType": "CARD",
"maskedPan": "5123-45xx-xxxx-0008",
"gateway": "MPGS",
"gatewayMessage": "Successful",
"gatewayCode": "00",
"gatewayref": "F765758821578563534540",
"callbackurl": "http://mvaa.ebs-rcm.com/payment",
"redirecturl": "http://localhost:3000/#/",
"channelType": "master",
"paymentKey": "b888aa5f23a817883d4d12c74044bab1ae6ee65dc8d6e11515394aba452b273b",
"sourceIP": "127.0.0.1",
"deviceType": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36",
"clientAppCode": "kpp64",
"cardBin": "512345",
"lastFourDigits": "0008",
"type": "3DSECURE",
"country": "NG",
"currency": "NGN",
"paymentReference": "2PP1334QW9874YE239RTAPQ"
},
"customers": {
"customerName": "No Name",
"customerMobile": "404",
"customerEmail": "test@mvaa.com",
"amount": "25000.00"
},
"message": "Successful"
}
}

This operation is a GET request, no parameter is required in the body. Note: append the value of the Transaction reference to the endpoint to fetch status.