Skip to main content

Get a data bundle

GET/airtime/v1/products/{idOrCode}

Returns one data bundle by its id or code. Use it to check that a bundle is still on sale, and its price, before you offer it.

Path parameters​

  • #idOrCodestringRequired
    The bundle's id (prod_…) or code, from List data bundles. You can send /products/mtn-data-15gb-30d for the same bundle.
    Example: prod_p4nzx9xp335h

Example request​

curl "https://sandbox-api.ponitor.com/airtime/v1/products/prod_p4nzx9xp335h" \
-H "apiKey: $PONITOR_API_KEY"

Responses​

OK. The bundle, as a product object.

{
"id": "prod_p4nzx9xp335h",
"code": "mtn-data-15gb-30d",
"type": "DATA",
"carrier": "LONESTAR",
"name": "Lonestar Cell MTN 15GB, 30 days",
"data": "15GB",
"validity": "30 days",
"price": 9,
"currency": "USD"
}