POST api/AirTime/PurchaseAirTime

Request Information

URI Parameters

None.

Body Parameters

AirtimeRechargeParam
NameDescriptionTypeAdditional information
Phone

string

None.

EntrustToken

string

None.

ProviderID

string

None.

debitAccount

string

None.

amount

string

None.

currency

string

None.

recipientPhoneNumber

string

None.

narration

string

None.

Tokentype

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Phone": "sample string 1",
  "EntrustToken": "sample string 2",
  "ProviderID": "sample string 3",
  "debitAccount": "sample string 4",
  "amount": "sample string 5",
  "currency": "sample string 6",
  "recipientPhoneNumber": "sample string 7",
  "narration": "sample string 8",
  "Tokentype": "sample string 9"
}

application/xml, text/xml

Sample:
<AirtimeRechargeParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CorporateAPI.RequestObjs">
  <EntrustToken>sample string 2</EntrustToken>
  <Phone>sample string 1</Phone>
  <ProviderID>sample string 3</ProviderID>
  <Tokentype>sample string 9</Tokentype>
  <amount>sample string 5</amount>
  <currency>sample string 6</currency>
  <debitAccount>sample string 4</debitAccount>
  <narration>sample string 8</narration>
  <recipientPhoneNumber>sample string 7</recipientPhoneNumber>
</AirtimeRechargeParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AirtimeRechargeResponsedata
NameDescriptionTypeAdditional information
Responsecode

string

None.

ResponseDescription

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Responsecode": "sample string 1",
  "ResponseDescription": "sample string 2"
}

application/xml, text/xml

Sample:
<AirtimeRechargeResponsedata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CorporateAPI.ResponseObjs">
  <ResponseDescription>sample string 2</ResponseDescription>
  <Responsecode>sample string 1</Responsecode>
</AirtimeRechargeResponsedata>