Catalog
Get Package Details
Return one package with effective pricing and catalog context.
Endpoint
GET /api/v1/packages/{packageId}
Path parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
packageId | packages id | Yes | Package identifier |
Response
Returns a single package object with enriched pricing:
{
"success": true,
"data": {
"_id": "kn76jer7k08d2nrg8jphjvy07183gvs4",
"costPrice": 4.05,
"dataAmount": "1GB",
"label": "1GB",
"operatorId": "kd7ff6sssan1v3d00dbbttwaa57yp27d",
"operatorName": "MTN",
"price": 4.5,
"productId": "m176bnddfzcp42fyhkaekker5s83gehh",
"productName": "MTNUP2U - Data Bundle",
"sellPrice": 5,
"status": "Active",
"validity": "90"
}
}Response fields
| Field | Type | Notes |
|---|---|---|
_id | string | Package identifier |
label | string | Package display label (e.g. "1GB") |
dataAmount | string | Bundle size (e.g. "1GB", "5GB") |
validity | string | Validity period in days (e.g. "90") |
price | number | Effective price for authenticated role |
sellPrice | number | Retail-facing customer price |
costPrice | number | Cost basis (wholesale pricing) |
operatorId | string | Parent operator ID |
operatorName | string | Operator name (e.g. "MTN") |
productId | string | Parent product ID |
productName | string | Product type (e.g. "MTNUP2U - Data Bundle") |
status | string | Active or Inactive |
Errors
404- Package not found
Sample request
curl -X GET "https://api.netconnectgh.online/api/v1/packages/q34examplepackage" \
-H "X-API-KEY: netconnect_live_your_secret_here" \
-H "Content-Type: application/json"
