Skip to main content

Get a purchase

GET/airtime/v1/purchases/{id}

Returns a purchase by its id. Use it to check a PENDING purchase or to look up an earlier purchase.

Path parameters​

  • #idstring (uuid)Required
    The purchase id returned by POST /purchases.
    Example: 8d60dc7f-78a2-4ed5-99d9-d1dfeb2338d0
Waiting for a pending purchase

Ponitor checks a PENDING purchase every 30 seconds for up to an hour. If you poll, wait 30 to 60 seconds between calls. A webhook tells you when it settles.

Example request​

curl "https://sandbox-api.ponitor.com/airtime/v1/purchases/8d60dc7f-78a2-4ed5-99d9-d1dfeb2338d0" \
-H "apiKey: $PONITOR_API_KEY"

Responses​

OK. The purchase object, with the current status. A data bundle purchase has type DATA and the bundle in product.

{
"id": "8d60dc7f-78a2-4ed5-99d9-d1dfeb2338d0",
"externalId": "order-8842",
"type": "AIRTIME",
"msisdn": "231770000000",
"carrier": "ORANGE",
"product": null,
"amount": 5,
"cost": 5,
"status": "SUCCESS",
"failureReason": null,
"instructions": null,
"createdAt": "2026-09-21T22:57:02.278Z"
}