> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.shimi.cash/api-reference/shimi-api/virtual-accounts/fetch-virtual-account-transaction/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # Fetch Virtual Account Transaction GET https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/{transactionId} Fetch the status of one virtual-account collection by its transaction ID. **Path parameter:** `transactionId` (string, required) - the `virtual_trx_id` from Generate Virtual Account. **Behaviour notes** - `status` is one of `PENDING`, `SUCCESS` or `FAILED`. - The response doesn't echo the transaction ID. - `bankName` here is the provider's value, which may differ from the hard-coded name returned by Generate Virtual Account. - Not found returns `400` (not 404). Reference: https://docs.shimi.cash/api-reference/shimi-api/virtual-accounts/fetch-virtual-account-transaction ## Authentication - `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes). ## Request ### Path parameters - `transactionId` (string, required) — The transaction ID returned by Generate Virtual Account. ## Response ### 200 Success (pending) / Success (funded) - `status` (string, optional) - `data` (VirtualAccountTransactionIdGetResponsesContentApplicationJsonSchemaData, optional) ## Errors ### 400 Bad Request Error Bad Request - `status` (string, optional) - `message` (string, optional) ### 401 Unauthorized Error Unauthorized - `message` (string, optional) ### 403 Forbidden Error Invalid or expired access token / KYB not approved / Account deactivated - `message` (string, optional) - `code` (string, optional) - `kybStatus` (string, optional) ## Types ### VirtualAccountTransactionIdGetResponsesContentApplicationJsonSchemaData - `amount` (integer, optional) - `expiryDate` (string, optional) - `bankName` (string, optional) - `accountNumber` (string, optional) - `externalReference` (string, optional) - `status` (string, optional) - `currency` (VirtualAccountTransactionIdGetResponsesContentApplicationJsonSchemaDataCurrency, optional) - `createdAt` (string, optional) ### VirtualAccountTransactionIdGetResponsesContentApplicationJsonSchemaDataCurrency - `name` (string, optional) ## Examples ### 200 Success (pending) **Response** ```json { "status": "success", "data": { "amount": 5000, "expiryDate": "2026-10-04T11:05:12.000Z", "bankName": "Safe Haven Microfinance Bank", "accountNumber": "8800417263", "externalReference": "cmgd2j6k50003mn8z4q7r1s9t", "status": "PENDING", "currency": { "name": "NGN" }, "createdAt": "2026-10-04T10:35:12.204Z" } } ``` **SDK Code** ```python 200 Success (pending) import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success (pending) const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Success (pending) package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Success (pending) require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Success (pending) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success (pending) request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success (pending) using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success (pending) import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### 200 Success (funded) **Response** ```json { "status": "success", "data": { "amount": 5000, "expiryDate": "2026-10-04T11:05:12.000Z", "bankName": "Safe Haven Microfinance Bank", "accountNumber": "8800417263", "externalReference": "cmgd2j6k50003mn8z4q7r1s9t", "status": "SUCCESS", "currency": { "name": "NGN" }, "createdAt": "2026-10-04T10:35:12.204Z" } } ``` **SDK Code** ```python 200 Success (funded) import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success (funded) const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Success (funded) package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Success (funded) require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Success (funded) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success (funded) request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success (funded) using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success (funded) import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/virtual-account/transactionId")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```