POST api/Electricity/ElectricityPayment

Request Information

URI Parameters

None.

Body Parameters

ElectricityPaymentParam
NameDescriptionTypeAdditional information
EntrustToken

string

None.

currency

string

None.

amount

string

None.

phone

string

None.

narration

string

None.

debitAccount

string

None.

adServiceId

string

None.

serviceIdName

string

None.

customerAddress

string

None.

customerName

string

None.

customerAccountId

string

None.

providerRef

string

None.

Tokentype

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EntrustToken": "sample string 1",
  "currency": "sample string 2",
  "amount": "sample string 3",
  "phone": "sample string 4",
  "narration": "sample string 5",
  "debitAccount": "sample string 6",
  "adServiceId": "sample string 7",
  "serviceIdName": "sample string 8",
  "customerAddress": "sample string 9",
  "customerName": "sample string 10",
  "customerAccountId": "sample string 11",
  "providerRef": "sample string 12",
  "Tokentype": "sample string 13"
}

application/xml, text/xml

Sample:
<ElectricityPaymentParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CorporateAPI.RequestObjs">
  <EntrustToken>sample string 1</EntrustToken>
  <Tokentype>sample string 13</Tokentype>
  <adServiceId>sample string 7</adServiceId>
  <amount>sample string 3</amount>
  <currency>sample string 2</currency>
  <customerAccountId>sample string 11</customerAccountId>
  <customerAddress>sample string 9</customerAddress>
  <customerName>sample string 10</customerName>
  <debitAccount>sample string 6</debitAccount>
  <narration>sample string 5</narration>
  <phone>sample string 4</phone>
  <providerRef>sample string 12</providerRef>
  <serviceIdName>sample string 8</serviceIdName>
</ElectricityPaymentParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ElectricityPaymentResponsedata
NameDescriptionTypeAdditional information
Responsecode

string

None.

ResponseDescription

string

None.

PaymentResponse

ElctrcyPaymtDetail

None.

Response Formats

application/json, text/json

Sample:
{
  "Responsecode": "sample string 1",
  "ResponseDescription": "sample string 2",
  "PaymentResponse": {
    "name": "sample string 1",
    "address": "sample string 2",
    "accountId": "sample string 3",
    "amount": "sample string 4",
    "units": 5.1,
    "token": "sample string 6",
    "tranxId": "sample string 7",
    "date": "2024-09-20T21:34:34.2281565+01:00"
  }
}

application/xml, text/xml

Sample:
<ElectricityPaymentResponsedata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CorporateAPI.ResponseObjs">
  <PaymentResponse>
    <accountId>sample string 3</accountId>
    <address>sample string 2</address>
    <amount>sample string 4</amount>
    <date>2024-09-20T21:34:34.2281565+01:00</date>
    <name>sample string 1</name>
    <token>sample string 6</token>
    <tranxId>sample string 7</tranxId>
    <units>5.1</units>
  </PaymentResponse>
  <ResponseDescription>sample string 2</ResponseDescription>
  <Responsecode>sample string 1</Responsecode>
</ElectricityPaymentResponsedata>