POST TOPUP

Request Information

URI Parameters

None.

Body Parameters

APIPaymentModel
NameDescriptionTypeAdditional information
Amount

decimal number

None.

PaymentRequestId

integer

None.

PaymentMethod

PaymentMethod

Required

MobileNo

integer

Matching regular expression pattern: ^[1-9][0-9]*$

Range: inclusive between 100000000 and 999999999999

fundcode

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Amount": 1.1,
  "PaymentRequestId": 2,
  "PaymentMethod": 0,
  "MobileNo": 3,
  "fundcode": 4
}

application/xml, text/xml

Sample:
<APIPaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/INVS_ERP.Data.MPESA">
  <Amount>1.1</Amount>
  <MobileNo>3</MobileNo>
  <PaymentMethod>NoPaymentMethodSelected</PaymentMethod>
  <PaymentRequestId>2</PaymentRequestId>
  <fundcode>4</fundcode>
</APIPaymentModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.