Get Payment Details
This API returns transaction status, charges and other details. Before settling a transaction in your application, hit this API anytime to check the status of a transaction.
API Request
|
transactionId |
Use paymentId you have received in your response when you initiated a tansaction. |
|---|
POST: https://testapi.vaultspay.com/public/external/v1/get-transaction-details
{
"transactionId": "1",
"accessToken": "xxyyZZx..."
}
API Response
|
transactionStatus |
|
|---|---|
|
currency |
The currency code of this transcation. |
|
transactionId |
Unique transaction ID for this transaction. |
|
transactionTime |
It is the time when this transation is performed. It returns time in UTC timezone. |
|
transactionAmount |
The total amount of this transaction. |
|
transactionVat |
VAT charges for this transaction. |
|
transactionFee |
Transaction service charges. |
|
transactionSubTotalAmount |
Total sub amount of a transaction. |
|
countryCode |
Transaction performed from country. |
|
customerDetails |
All the customer details |
{
"message": "Successful.",
"code": "200",
"data": {
"transactionStatus": "SUCCESS",
"currency": "AED",
"transactionId": "AP_HCLQNK2GGQOOH",
"transactionTime": "2021-08-26T04:32:06.000000Z",
"transactionAmount": "10000.00000000",
"transactionVat": "0.00000000",
"transactionFee": "0.00000000",
"transactionSubTotalAmount": "100",
"countryCode": "",
"customerDetails": {
"name": "nizam",
"email": "nizam@gmail.com",
"phoneNumber": "1231231231",
"cardNumber": "4111111111111111",
"cardHolderName": "Nizam"
}
}
}