Skip to main content
POST
/
business
/
vas
/
electricity
/
purchase
Buy electricity 🔒
curl --request POST \
  --url https://api-staging.usenumero.com/numeroaccount/api/v1/business/vas/electricity/purchase \
  --header 'Content-Type: application/json' \
  --header 'X-Numero-Api-Key: <api-key>' \
  --header 'X-Numero-Signature: <api-key>' \
  --data '
{
  "reference": "<string>",
  "type": "<string>",
  "accountNumber": "<string>",
  "amount": 123,
  "disco": "<string>",
  "phone": "<string>",
  "validationCode": "<string>",
  "transactionPin": "<string>"
}
'
{ "status": true, "message": "Successful", "code": "200", "data": { "message": "Purchase successful", "reference": "ELEC-20240115-001", "data": { "token": "1234-5678-9012-3456-7890", "units": "25.5 kWh" } } }

Authorizations

X-Numero-Api-Key
string
header
required

Your business API key (live_key_...). Issued on approval; managed in Dashboard → Settings → Developer.

X-Numero-Signature
string
header
required

Base64(HMAC-SHA256(secretApiKey, input)) over the raw request body (POST) or canonicalized query string (signed GET). Also send X-Numero-Signature-Version: v2. Required on money-movement / state-changing endpoints (marked 🔒).

Body

application/json
reference
string
required
type
string
required
accountNumber
string
required
amount
number
required
disco
string
phone
string
validationCode
string
transactionPin
string | null

Response

Successful response

Canonical response envelope for the public surface. data on success, error on failure.

data
any
required

Endpoint payload on success (object or array); null on failure.

error
object
required
meta
object
required