NetConnect API
Catalog

Get Package Details

Return one package with effective pricing and catalog context.

Endpoint

GET /api/v1/packages/{packageId}

Path parameters

ParameterTypeRequiredNotes
packageIdpackages idYesPackage 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

FieldTypeNotes
_idstringPackage identifier
labelstringPackage display label (e.g. "1GB")
dataAmountstringBundle size (e.g. "1GB", "5GB")
validitystringValidity period in days (e.g. "90")
pricenumberEffective price for authenticated role
sellPricenumberRetail-facing customer price
costPricenumberCost basis (wholesale pricing)
operatorIdstringParent operator ID
operatorNamestringOperator name (e.g. "MTN")
productIdstringParent product ID
productNamestringProduct type (e.g. "MTNUP2U - Data Bundle")
statusstringActive 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"

On this page