{Credential} Agent details - Email Address, Password And|Or Merchant Reference
Private
apiApi version
Private
headersHeaders to be passed to the https request
Private
rootHotRecharge server endpoint
Private
urlThis is the url that will be accessed by the service
Query a zesa transaction for reconciliation: reccommended is to query within the last 30 days of the transaction
Response:
{
ReplyCode: replyCode,
ReplyMsg: replyMsg,
WalletBalance: walletBalance,
Amount: amount,
Discount: discount,
Meter: meter,
AccountName: accountName,
Address: address,
Tokens: [
{
Token: token,
Units: units,
NetAmount: netAmount,
Levy: levy,
Arrears: arrears,
TaxAmount: taxAmount,
ZesaReference: zesaReference,
}
],
AgentReference: agentReference,
RechargeID: rechargeID,
CustomerInfo: {
CustomerName: customerName,
Address: address,
MeterNumber: meterNumber,
Reference: reference,
},
}
Get list of available data bundle options
Response:
{
ReplyCode: 2,
Bundles: [
{
BundleId: 59,
BrandId: 20,
Network: 'Econet WhatsApp',
ProductCode: 'WPD1',
Amount: 2515,
Name: 'WhatsApp (4MB)+ Pinterest 2MB',
Description: 'WhatsApp (4MB)+ Pinterest 2MB',
ValidityPeriod: 1
}
],
AgentReference: '44d76e1d608444df93e9a1a3bfc8d8d3'
}
Bundle product code e.g. DWB15 for weekly data bundle - ECONET
Mobile number to recharge
Optional: customer sms to send
Response:
{
AgentReference: agentReference,
Amount: amount,
Data: data,
Discount: discount,
FinalBalance: finalBalance,
InitialBalance: initialBalance,
RechargeID: rechargeID,
ReplyCode: replyCode,
ReplyMsg: replyMsg,
SMS: sms,
WalletBalance: walletBalance,
Window: window,
}
check zesa customer. please note! You are advised to first check zesa customer before performing zesa recharge, i.e prompt the user to confirm their details first before proceeding meter_number: the 11 digit meter number of suer
Response:
{
ReplyCode: replyCode,
ReplyMsg: replyMsg,
Meter: meter,
AgentReference: agentReference,
CustomerInfo: {
CustomerName: customerName,
Address: address,
MeterNumber: meterNumber,
Reference: reference,
},
}
Private
getPrivate
logAmount to recharge
Mobile number to recharge
Optional
Optional: Customer sms to send
Response:
{
AgentReference: agentReference,
Amount: amount,
Data: data,
Discount: discount,
FinalBalance: finalBalance,
InitialBalance: initialBalance,
RechargeID: rechargeID,
ReplyCode: replyCode,
ReplyMsg: replyMsg,
SMS: sms,
WalletBalance: walletBalance,
Window: window,
}
Private
postQuery transaction
Agent reference for the transaction
Response:
{
ReplyCode: replyCode,
ReplyMsg: replyMsg,
OriginalAgentReference: originalAgentReference,
RawReply: rawReply,
AgentReference: agentReference,
}
Amount to recharge
Mobile number to receive the recharge token
Meter number to be recharged
Optional: Customer sms to send
Response:
{
ReplyCode: replyCode,
ReplyMsg: replyMsg,
WalletBalance: walletBalance,
Amount: amount,
Discount: discount,
Meter: meter,
AccountName: accountName,
Address: address,
Tokens: [
{
Token: token,
Units: units,
NetAmount: netAmount,
Levy: levy,
Arrears: arrears,
TaxAmount: taxAmount,
ZesaReference: zesaReference,
}
],
AgentReference: agentReference,
RechargeID: rechargeID,
}
Private
updateStatic
Private
generateGenerated using TypeDoc
Hot Recharge Web Service Author: Ngonidzashe Mangudya iamngoni@modestnerd.co