Pay electricity
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/vas/electricity \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"planId": "ekedc_prepaid",
"meterNumber": "***********78",
"amount": 2000,
"customerPhone": "080*******8"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
planId: 'ekedc_prepaid',
meterNumber: '***********78',
amount: 2000,
customerPhone: '080*******8'
})
};
fetch('https://api.sendpadi.com/api/v1/merchant/vas/electricity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/vas/electricity"
payload = {
"planId": "ekedc_prepaid",
"meterNumber": "***********78",
"amount": 2000,
"customerPhone": "080*******8"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"transactionId": "vas_electricity_001",
"status": "processing",
"token": "****-****-****"
}
}{
"success": false,
"data": {
"transactionId": "vas_electricity_****",
"reference": "ELECTRICITY-************-****",
"status": "FAILED",
"message": "We couldn't complete your electricity purchase. Please check your meter number and details, then try again."
},
"error": ""
}{
"success": false,
"message": "Invalid request signature",
"error": true,
"errorCode": "MERCHANT_AUTH_SIGNATURE_INVALID"
}VAS (Bill payments)
Pay electricity
Pay electricity via merchant VAS API. Scope: vas:write. Requires Idempotency-Key.
POST
/
api
/
v1
/
merchant
/
vas
/
electricity
Pay electricity
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/vas/electricity \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"planId": "ekedc_prepaid",
"meterNumber": "***********78",
"amount": 2000,
"customerPhone": "080*******8"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
planId: 'ekedc_prepaid',
meterNumber: '***********78',
amount: 2000,
customerPhone: '080*******8'
})
};
fetch('https://api.sendpadi.com/api/v1/merchant/vas/electricity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/vas/electricity"
payload = {
"planId": "ekedc_prepaid",
"meterNumber": "***********78",
"amount": 2000,
"customerPhone": "080*******8"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"transactionId": "vas_electricity_001",
"status": "processing",
"token": "****-****-****"
}
}{
"success": false,
"data": {
"transactionId": "vas_electricity_****",
"reference": "ELECTRICITY-************-****",
"status": "FAILED",
"message": "We couldn't complete your electricity purchase. Please check your meter number and details, then try again."
},
"error": ""
}{
"success": false,
"message": "Invalid request signature",
"error": true,
"errorCode": "MERCHANT_AUTH_SIGNATURE_INVALID"
}Call Validate electricity first. Pick
planId from List billers (category=electricity) — use plans[].planId (slug, e.g. ekedc_prepaid), not plans[].id.Authorizations
API key id (sp_test_… / sp_live_…)
Headers
Unix time in seconds
HMAC-SHA256 signature
UUID. Required on money-moving writes.
Body
application/json
Slug from List billers → data.electricity.plans[].planId (e.g. ekedc_prepaid). Not the UUID id.
Available options:
aedc_prepaid, aedc_postpaid, aple_prepaid, aple_postpaid, bedc_prepaid, bedc_postpaid, eedc_prepaid, eedc_postpaid, ekedc_prepaid, ekedc_postpaid, ibedc_prepaid, ibedc_postpaid, ikedc_prepaid, ikedc_postpaid, jed_prepaid, jed_postpaid, kaedco_prepaid, kaedco_postpaid, kedco_prepaid, kedco_postpaid, phed_prepaid, phed_postpaid, yedc_prepaid, yedc_postpaid Response
OK
The response is of type object.

