Developer Documentations

Transaction 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.

Get Payment Details

API Request

transactionIdUse 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
  • SUCCESS – The transaction was completed successfully.
  • PENDING – The transaction is still being processed.
  • FAILED – The transaction did not go through successfully.
currencyThe currency code of this transcation.
transactionIdUnique transaction ID for this transaction.
transactionTimeIt is the time when this transation is performed. It returns time in UTC timezone.
transactionAmountThe total amount of this transaction.
transactionVatVAT charges for this transaction.
transactionFeeTransaction service charges.
transactionSubTotalAmountTotal sub amount of a transaction.
countryCodeTransaction performed from country.
customerDetailsAll 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"
        }
    }
}