TRUSTPLUG DEVELOPERS

Account summary

GET /api/account/summary

curl https://trustplug.ng/api/account/summary \
  -H "Authorization: Token YOUR_SECRET_KEY"

The response contains data.wallet_balance, data.currency, data.summary.data_gb, data.summary.airtime, data.summary.sold_today_gb, SIM counts, and individual data.groups. Balances belong only to the authenticated account and reflect saved SIM records.

purchases_paused and outstanding show overdue service charges. Summary access remains available while purchases are paused. Times use Africa/Lagos.

Wallet history statistics

data.wallet_stats contains all-time funded, data_spend, airtime_spend, and transaction counts successful, pending, failed. Monetary totals use successful NGN wallet records only. Data spending includes web data purchases and API SIM service charges recorded in the ledger. Pending and failed purchases are excluded from spending totals.

Today’s sales

data.wallet_stats.wallet_data_sold_today_gb reports successful wallet data purchases in GB. wallet_airtime_sold_today and sim_airtime_sold_today report the airtime face value purchased through Wallet and your own master SIM. The SIM inventory summary continues to show data sold today and remaining data across your SIMs.