> 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/list-category-products/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # List Category Products GET https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/{serviceCategoryId}/products Lists purchasable products under a category (e.g. specific data bundles or cable TV packages) and their `categoryProductId`s, amounts, and validity. **Path:** `serviceCategoryId` (string, required). Returns active products only. `categoryProductId` is the `productId` for **Purchase Data** / **Purchase Cable TV**. `categoryProductName` falls back to `validity` when the product has no name. `amount` is a Decimal serialized as a string. **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/list-category-products ## Authentication - `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes). ## Request ### Path parameters - `serviceCategoryId` (string, required) — A category ID from List Service Categories. ## Response ### 200 Success (MTN data) / Success (DStv packages) - `success` (boolean, optional) - `data` (list of VtuCategoryServiceCategoryIdProductsGetResponsesContentApplicationJsonSchemaDataItems, 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) ### 500 Internal Server Error Internal Server Error - `success` (boolean, optional) - `message` (string, optional) ## Types ### VtuCategoryServiceCategoryIdProductsGetResponsesContentApplicationJsonSchemaDataItems - `categoryProductId` (string, optional) - `categoryProductName` (string, optional) - `amount` (string, optional) - `isFixedAmount` (boolean, optional) - `validity` (string, optional) ## Examples ### 200 Success (MTN data) **Response** ```json { "success": true, "data": [ { "categoryProductId": "cm1v2d4e50101mtd3mn78op9", "categoryProductName": "MTN 1.5GB", "amount": "1000", "isFixedAmount": true, "validity": "30 days" }, { "categoryProductId": "cm1v2d4e50102mtd8uv12wx3", "categoryProductName": "MTN 10GB", "amount": "4500", "isFixedAmount": true, "validity": "30 days" } ] } ``` **SDK Code** ```python 200 Success (MTN data) import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success (MTN data) const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products'; 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 (MTN data) package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products" 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 (MTN data) require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products") 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 (MTN data) 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/category/serviceCategoryId/products") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success (MTN data) request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success (MTN data) using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success (MTN data) import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products")! 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 (DStv packages) **Response** ```json { "success": true, "data": [ { "categoryProductId": "cm1v2d4e50201dsc5qr90st1", "categoryProductName": "DStv Compact", "amount": "19000", "isFixedAmount": true, "validity": "1 month" }, { "categoryProductId": "cm1v2d4e50202dsc7yz34ab5", "categoryProductName": "DStv Confam", "amount": "11000", "isFixedAmount": true, "validity": "1 month" } ] } ``` **SDK Code** ```python 200 Success (DStv packages) import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success (DStv packages) const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products'; 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 (DStv packages) package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products" 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 (DStv packages) require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products") 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 (DStv packages) 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/category/serviceCategoryId/products") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success (DStv packages) request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success (DStv packages) using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success (DStv packages) import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/vtu/category/serviceCategoryId/products")! 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() ```