Vend Electricity

Make a call to our electricity purchase endpoint to buy electricity

Buy Electricity

POST {{base_url}}/electricity

Headers

Name
Type
Description

authorization*

SECRET_KEY

Set value to Bearer SECRET_KEY

Request Body

Name
Type
Description

meterno*

String

Meter holder number as returned by the verify electricity endpoint

provider*

String

Disco/Provider

amount*

String

Amount to vend

vendtype*

String

Vend type as seen on the verify electricity endpoint

pckgid*

String

As seen from the verify electricity endpoint response

address*

String

As seen from the verify electricity endpoint response

metername

String

Meter holder name as returned by the verify electricity endpoint

{
    "status": true,
    "message": "Success - Bills Payment  effected successfully - Token: 0283-6213-2450-8322-0153",
    "txref": "API2650280812e8401",
    "charged": 10030,
    "token": "Bills Payment  effected successfully - Token: 0283-6213-2450-8322-0153",
    "newbal": 300094.79
}

Take a look at how you might do this:

Sample Response

Last updated

Was this helpful?