Read transaction details (PSP)
You can use the GET /payment/v1/transactions/{pspReference}
API endpoint to get details about a payment transaction.
For this API,
payment:transactions.read
scope should be enabled in your app.
The response would look similar to the following:
{
"pspReference": "8815360785594505",
"amount": {
"currency": "EUR",
"value": 190
},
"merchantReference": "something",
"merchantAccountCode": "MyHotelCOM",
"terminalId": "T400-1234567",
"originalFolioId": "XKCDER-1-1",
"propertyId": "BER",
"journal": [
{
"pspReference": "8815360785594505",
"amount": {
"currency": "EUR",
"value": 190
},
"eventCode": "AUTHORISATION",
"dateTime": "2021-09-08T04:42:19.1650234Z",
"isSuccess": false,
"reason": "Refused",
"refusalReason": "05 : Do not honor"
},
{
"pspReference": "862623095673169A",
"amount": {
"currency": "EUR",
"value": 100
},
"eventCode": "CAPTURE",
"dateTime": "2021-09-08T04:43:19.1650286Z",
"isSuccess": true
},
{
"pspReference": "862623087842791E",
"amount": {
"currency": "EUR",
"value": 90
},
"eventCode": "CAPTURE",
"dateTime": "2021-09-08T04:44:19.1650295Z",
"isSuccess": true
},
{
"pspReference": "862623087842791E",
"amount": {
"currency": "EUR",
"value": 70
},
"eventCode": "CAPTURE",
"dateTime": "2021-09-08T04:45:19.1650302Z",
"isSuccess": true,
"reason": "Insufficient balance on payment"
},
{
"pspReference": "862623094473133B",
"amount": {
"currency": "EUR",
"value": 10
},
"eventCode": "REFUND",
"dateTime": "2021-09-08T05:14:19.1650308Z",
"isSuccess": false
}
]
}
The transaction can be refused or cancelled for some reason. The refusal reason is primarily based on the authorization response code that is received from the issuer or card scheme, known as raw acquirer response. For more information about
refusalReason
, refer to raw acquirer responses.