Purchase Electricity Units
Buys prepaid electricity units (returns a token) or settles a postpaid bill.
Before calling: verify the meter with POST /v1/electricity/verify.
Your wallet is debited immediately, then the disco is called synchronously. This endpoint does not long-poll or send a webhook — the HTTP response is final unless it is 202 pending, in which case resolve it with POST /v1/transaction/status.
token and units are populated only for successful prepaid purchases; otherwise they are "" / null.
Authentication
API key issued from the VTUAgent dashboard, sent as Authorization: Bearer {your_api_key}.
Request
Naira. Minimums vary by disco (typically 1000).
Your unique reference for this transaction, max 50 characters. A UUID is recommended. Re-using one is rejected with 400.
Response
Purchase completed — token returned for prepaid
Echo of your request_ref.
Product-specific details; see the endpoint examples.
