---
agentTools:
  projectIndex: https://safehavenmfb.readme.io/llms.txt
---

# Get Virtual Transaction

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Safe Haven IBS API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.sandbox.safehavenmfb.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/virtual-accounts/{virtualAccountId}/transaction": {
      "get": {
        "summary": "Get Virtual Transaction",
        "description": "",
        "operationId": "get-virtual-transaction",
        "parameters": [
          {
            "name": "virtualAccountId",
            "in": "path",
            "description": "_id of the virtual account",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 200,\n    \"message\": \"Transaction fetched successfully.\",\n    \"data\": {\n        \"_id\": \"65ba4476bc1bf40024463a4e\",\n        \"client\": \"61e5a83ac6f0ec001ee90fac\",\n        \"virtualAccount\": {\n            \"_id\": \"65ba43c3bc1bf4002446385d\",\n            \"client\": \"61e5a83ac6f0ec001ee90fac\",\n            \"bankCode\": \"999240\",\n            \"accountNumber\": \"8065077863\",\n            \"accountName\": \"BITAKOTECHNOLOG / OmaTech\",\n            \"currencyCode\": \"NGN\",\n            \"bvn\": \"22332322322\",\n            \"validFor\": 1800,\n            \"externalReference\": \"balabulular312\",\n            \"amountControl\": \"OverPayment\",\n            \"amount\": 1000,\n            \"expiryDate\": \"2024-01-31T13:27:39.014Z\",\n            \"callbackUrl\": \"https://michael.requestcatcher.com/\",\n            \"settlementAccount\": {\n                \"_id\": \"65ba43c3bc1bf4002446385e\",\n                \"bankCode\": \"999240\",\n                \"accountNumber\": \"0110763495\"\n            },\n            \"status\": \"Expired\",\n            \"isDeleted\": false,\n            \"createdAt\": \"2024-01-31T12:57:39.014Z\",\n            \"updatedAt\": \"2024-01-31T12:57:39.014Z\",\n            \"__v\": 0\n        },\n        \"sessionId\": \"999240240131130036797579995689\",\n        \"nameEnquiryReference\": \"999240240131130019707818302580\",\n        \"paymentReference\": \"999240240131130036797579995689\",\n        \"isReversed\": false,\n        \"reversalReference\": \"\",\n        \"provider\": \"BANK\",\n        \"providerChannel\": \"TRANSFER\",\n        \"providerChannelCode\": \"IBS\",\n        \"destinationInstitutionCode\": \"999240\",\n        \"creditAccountName\": \"BITAKOTECHNOLOG / OmaTech\",\n        \"creditAccountNumber\": \"8065077863\",\n        \"creditBankVerificationNumber\": null,\n        \"creditKYCLevel\": \"3\",\n        \"debitAccountName\": \"BITAKO TECHNOLOGIES LIMITED\",\n        \"debitAccountNumber\": \"0110763495\",\n        \"debitBankVerificationNumber\": null,\n        \"debitKYCLevel\": \"3\",\n        \"transactionLocation\": \"9.0932,7.4429\",\n        \"narration\": \"\",\n        \"amount\": 1200,\n        \"fees\": 5,\n        \"vat\": 0,\n        \"stampDuty\": 0,\n        \"responseCode\": \"00\",\n        \"responseMessage\": \"Approved or completed successfully\",\n        \"status\": \"Completed\",\n        \"isDeleted\": false,\n        \"createdAt\": \"2024-01-31T13:00:38.688Z\",\n        \"declinedAt\": \"2024-01-31T13:00:38.688Z\",\n        \"updatedAt\": \"2024-01-31T13:00:40.827Z\",\n        \"__v\": 0\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Transaction fetched successfully."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "_id": {
                          "type": "string",
                          "example": "65ba4476bc1bf40024463a4e"
                        },
                        "client": {
                          "type": "string",
                          "example": "61e5a83ac6f0ec001ee90fac"
                        },
                        "virtualAccount": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "string",
                              "example": "65ba43c3bc1bf4002446385d"
                            },
                            "client": {
                              "type": "string",
                              "example": "61e5a83ac6f0ec001ee90fac"
                            },
                            "bankCode": {
                              "type": "string",
                              "example": "999240"
                            },
                            "accountNumber": {
                              "type": "string",
                              "example": "8065077863"
                            },
                            "accountName": {
                              "type": "string",
                              "example": "BITAKOTECHNOLOG / OmaTech"
                            },
                            "currencyCode": {
                              "type": "string",
                              "example": "NGN"
                            },
                            "bvn": {
                              "type": "string",
                              "example": "22332322322"
                            },
                            "validFor": {
                              "type": "integer",
                              "example": 1800,
                              "default": 0
                            },
                            "externalReference": {
                              "type": "string",
                              "example": "balabulular312"
                            },
                            "amountControl": {
                              "type": "string",
                              "example": "OverPayment"
                            },
                            "amount": {
                              "type": "integer",
                              "example": 1000,
                              "default": 0
                            },
                            "expiryDate": {
                              "type": "string",
                              "example": "2024-01-31T13:27:39.014Z"
                            },
                            "callbackUrl": {
                              "type": "string",
                              "example": "https://michael.requestcatcher.com/"
                            },
                            "settlementAccount": {
                              "type": "object",
                              "properties": {
                                "_id": {
                                  "type": "string",
                                  "example": "65ba43c3bc1bf4002446385e"
                                },
                                "bankCode": {
                                  "type": "string",
                                  "example": "999240"
                                },
                                "accountNumber": {
                                  "type": "string",
                                  "example": "0110763495"
                                }
                              }
                            },
                            "status": {
                              "type": "string",
                              "example": "Expired"
                            },
                            "isDeleted": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "createdAt": {
                              "type": "string",
                              "example": "2024-01-31T12:57:39.014Z"
                            },
                            "updatedAt": {
                              "type": "string",
                              "example": "2024-01-31T12:57:39.014Z"
                            },
                            "__v": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            }
                          }
                        },
                        "sessionId": {
                          "type": "string",
                          "example": "999240240131130036797579995689"
                        },
                        "nameEnquiryReference": {
                          "type": "string",
                          "example": "999240240131130019707818302580"
                        },
                        "paymentReference": {
                          "type": "string",
                          "example": "999240240131130036797579995689"
                        },
                        "isReversed": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "reversalReference": {
                          "type": "string",
                          "example": ""
                        },
                        "provider": {
                          "type": "string",
                          "example": "BANK"
                        },
                        "providerChannel": {
                          "type": "string",
                          "example": "TRANSFER"
                        },
                        "providerChannelCode": {
                          "type": "string",
                          "example": "IBS"
                        },
                        "destinationInstitutionCode": {
                          "type": "string",
                          "example": "999240"
                        },
                        "creditAccountName": {
                          "type": "string",
                          "example": "BITAKOTECHNOLOG / OmaTech"
                        },
                        "creditAccountNumber": {
                          "type": "string",
                          "example": "8065077863"
                        },
                        "creditBankVerificationNumber": {},
                        "creditKYCLevel": {
                          "type": "string",
                          "example": "3"
                        },
                        "debitAccountName": {
                          "type": "string",
                          "example": "BITAKO TECHNOLOGIES LIMITED"
                        },
                        "debitAccountNumber": {
                          "type": "string",
                          "example": "0110763495"
                        },
                        "debitBankVerificationNumber": {},
                        "debitKYCLevel": {
                          "type": "string",
                          "example": "3"
                        },
                        "transactionLocation": {
                          "type": "string",
                          "example": "9.0932,7.4429"
                        },
                        "narration": {
                          "type": "string",
                          "example": ""
                        },
                        "amount": {
                          "type": "integer",
                          "example": 1200,
                          "default": 0
                        },
                        "fees": {
                          "type": "integer",
                          "example": 5,
                          "default": 0
                        },
                        "vat": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "stampDuty": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "00"
                        },
                        "responseMessage": {
                          "type": "string",
                          "example": "Approved or completed successfully"
                        },
                        "status": {
                          "type": "string",
                          "example": "Completed"
                        },
                        "isDeleted": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "createdAt": {
                          "type": "string",
                          "example": "2024-01-31T13:00:38.688Z"
                        },
                        "declinedAt": {
                          "type": "string",
                          "example": "2024-01-31T13:00:38.688Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "example": "2024-01-31T13:00:40.827Z"
                        },
                        "__v": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61e69ed05b7bd4006a962eed:65c14eb195a5ec006c1bb61f"
}
```