Get a purchase
const url = 'https://api.poweredbyaura.com/v1/purchases/pur_01JA7ZK3Q9W2D8M5X4N6B1C0VE';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.poweredbyaura.com/v1/purchases/pur_01JA7ZK3Q9W2D8M5X4N6B1C0VE \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
pur_01JA7ZK3Q9W2D8M5X4N6B1C0VEResponses
Section titled “Responses”The purchase in its current state.
object
pending: accepted, waiting for the network’s confirmation. successful: the network confirmed the
bundle was credited, and you were charged. failed: the bundle was not credited, and you were not
charged. reversed: the network reversed a successful bundle, and you were refunded. successful,
failed and reversed are final, except that successful can become reversed.
The bundle as it was when bought.
object
The amount held while pending, charged if successful, and refunded if reversed.
object
Amount in the currency’s minor unit (kobo for NGN).
ISO 4217 currency code.
The latest time by which this purchase will reach a final state. If the network has not confirmed by
then, the purchase fails with network_timeout and nothing is charged.
When the purchase reached successful or failed.
Present once the network has confirmed the bundle was credited.
object
The network’s own reference for the credit, when the network provides one.
Present when the purchase failed.
object
Why a purchase failed. New codes may be added in v1.
Present when a successful purchase was reversed.
object
object
Examples
Confirmed by the network
{ "id": "pur_01JA7ZK3Q9W2D8M5X4N6B1C0VE", "object": "purchase", "reference": "order-10293", "status": "successful", "phone_number": "+2348000000001", "network_id": "net_ng_a", "bundle": { "id": "bnd_ng_a_1gb_1d", "name": "1GB Daily", "data_mb": 1024, "validity_hours": 24 }, "price": { "amount": 35000, "currency": "NGN" }, "created_at": "2026-10-12T09:14:30Z", "resolve_by": "2026-10-12T09:44:30Z", "completed_at": "2026-10-12T09:14:31Z", "delivery": { "confirmed_at": "2026-10-12T09:14:31Z", "network_reference": "A-8841207731" }, "failure": null, "reversal": null, "metadata": { "customer_id": "cus_88412" }}Refused by the network
{ "id": "pur_01JA7ZQ8C4V1M6T2R9K5H3B7XN", "object": "purchase", "reference": "order-10294", "status": "failed", "phone_number": "+2348000000003", "network_id": "net_ng_a", "bundle": { "id": "bnd_ng_a_1gb_1d", "name": "1GB Daily", "data_mb": 1024, "validity_hours": 24 }, "price": { "amount": 35000, "currency": "NGN" }, "created_at": "2026-10-12T09:15:02Z", "resolve_by": "2026-10-12T09:45:02Z", "completed_at": "2026-10-12T09:15:04Z", "delivery": null, "failure": { "code": "number_not_eligible", "message": "The network refused this bundle for this number." }, "reversal": null, "metadata": {}}Reversed by the network after success
{ "id": "pur_01JA7ZT2N8D5K1Q7W3F9C6M4BR", "object": "purchase", "reference": "order-10295", "status": "reversed", "phone_number": "+2348000000005", "network_id": "net_ng_a", "bundle": { "id": "bnd_ng_a_1gb_1d", "name": "1GB Daily", "data_mb": 1024, "validity_hours": 24 }, "price": { "amount": 35000, "currency": "NGN" }, "created_at": "2026-10-12T09:16:10Z", "resolve_by": "2026-10-12T09:46:10Z", "completed_at": "2026-10-12T09:16:12Z", "delivery": { "confirmed_at": "2026-10-12T09:16:12Z", "network_reference": "A-8841209954" }, "failure": null, "reversal": { "reversed_at": "2026-10-12T11:02:40Z", "reason": "The network reversed the credit." }, "metadata": {}}Headers
Section titled “Headers”Example
req_7Kp2Vx9QmR4tA unique ID for this request. Quote it when you contact your technical contact.
The API key is missing, wrong or revoked.
object
object
A stable, machine-readable code. New codes may be added in v1, so treat an unknown code by its HTTP
status and retryable flag.
A human-readable explanation. Do not parse it; use code.
The request field the error is about, when there is one.
Whether the same request can succeed if you retry it later.
Extra facts about the error, such as the existing purchase or the network’s status.
object
Examples
{ "error": { "code": "invalid_api_key", "message": "The API key is not valid.", "retryable": false, "request_id": "req_2Mz6Rt8KcW1p" }}Headers
Section titled “Headers”Example
req_7Kp2Vx9QmR4tA unique ID for this request. Quote it when you contact your technical contact.
No such resource on your account.
object
object
A stable, machine-readable code. New codes may be added in v1, so treat an unknown code by its HTTP
status and retryable flag.
A human-readable explanation. Do not parse it; use code.
The request field the error is about, when there is one.
Whether the same request can succeed if you retry it later.
Extra facts about the error, such as the existing purchase or the network’s status.
object
Examples
{ "error": { "code": "not_found", "message": "No purchase pur_01JA7ZK3Q9W2D8M5X4N6B1C0VX on this account.", "retryable": false, "request_id": "req_8Wc3Ld5YhF2k" }}Headers
Section titled “Headers”Example
req_7Kp2Vx9QmR4tA unique ID for this request. Quote it when you contact your technical contact.
© 2026 Aura Mobile Communications Ltd ·poweredbyaura.com ·Privacy ·Terms