> 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/airtime-data-bills-vtu/fetch-single-vtu-transaction/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # Fetch Single VTU Transaction GET https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/{id} Fetch one VTU purchase by its transaction ID. **Path:** `id` (string, required) — the `transactionId` returned by a purchase endpoint. Use this to poll a `PENDING` purchase. Returns the full stored record (minus provider references/raw response), with the category and product. Note: the utility token is **not** included here — it is only returned in the purchase response. **Error format:** body validation failures (Joi) return `{ "status": "error", "message": "Validation error", "details": [ ... ] }`; all other errors return `{ "success": false, "message": "..." }`. Money fields (`amount`, `fee`) are Prisma Decimals and are serialized as **strings** (e.g. `"1000"`). Reference: https://docs.shimi.cash/api-reference/shimi-api/airtime-data-bills-vtu/fetch-single-vtu-transaction ## Authentication - `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes). ## Request ### Path parameters - `id` (string, required) — The VTU transaction ID. ## Response ### 200 OK - `success` (boolean, optional) - `data` (VtuSingleIdGetResponsesContentApplicationJsonSchemaData, optional) ## Errors ### 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) ### 404 Not Found Error Not Found - `success` (boolean, optional) - `message` (string, optional) ## Types ### VtuSingleIdGetResponsesContentApplicationJsonSchemaData - `id` (string, optional) - `companyId` (string, optional) - `vtuServiceCategoryId` (string, optional) - `productId` (string, optional, nullable) - `type` (string, optional) - `status` (string, optional) - `amount` (string, optional) - `settlementId` (integer, optional) - `phoneNumber` (string, optional, nullable) - `cardNumber` (string, optional, nullable) - `entityNumber` (string, optional) - `vendType` (string, optional) - `idempotencyKey` (string, optional) - `fee` (string, optional) - `narration` (string, optional) - `createdAt` (string, optional) - `updatedAt` (string, optional) - `meterVerificationId` (string, optional, nullable) - `vtuServiceCategory` (VtuSingleIdGetResponsesContentApplicationJsonSchemaDataVtuServiceCategory, optional) - `product` (string, optional, nullable) ### VtuSingleIdGetResponsesContentApplicationJsonSchemaDataVtuServiceCategory - `name` (string, optional) - `identifier` (string, optional) - `logo` (string, optional) - `isFixedAmount` (boolean, optional) ## Examples **Response** ```json { "success": true, "data": { "id": "cm2z9h1j20013vtx7ij89kl0", "companyId": "cm0c1d2e30000cmp4xy56za7", "vtuServiceCategoryId": "cm1v1b2c30021ikd7ef34gh5", "productId": null, "type": "UTILITY", "status": "SUCCESS", "amount": "5000", "settlementId": 1, "phoneNumber": null, "cardNumber": null, "entityNumber": "45031234567", "vendType": "PREPAID", "idempotencyKey": "7f3c2a9e-4b1d-4e8a-9c2f-1a5b6d7e8f90", "fee": "0", "narration": "Utility - Ikeja Electric (IKEDC) - 45031234567", "createdAt": "2026-10-04T10:22:31.418Z", "updatedAt": "2026-10-04T10:22:34.902Z", "meterVerificationId": null, "vtuServiceCategory": { "name": "Ikeja Electric (IKEDC)", "identifier": "IKEDC", "logo": "https://res.cloudinary.com/shimiwaas/image/upload/v1727700000/vtu/ikedc.png", "isFixedAmount": false }, "product": null } } ``` **SDK Code** ```python 200 Success import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id'; 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 package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id" 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 require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id") 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 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/vtu/single/id") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/single/id")! 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() ```