POST api/payments/add

Request Information

URI Parameters

None.

Body Parameters

PaymentRequest
NameDescriptionTypeAdditional information
PayDate

string

None.

PayAmt

decimal number

None.

PayMode

string

None.

PayNotes

string

None.

TenID

integer

None.

CoID

integer

None.

UID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PayDate": "sample string 1",
  "PayAmt": 2.1,
  "PayMode": "sample string 3",
  "PayNotes": "sample string 4",
  "TenID": 5,
  "CoID": 6,
  "UID": 7
}

application/xml, text/xml

Sample:
<DBOperationsController.PaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KODY_MPesaCallbackAPI.Controllers">
  <CoID>6</CoID>
  <PayAmt>2.1</PayAmt>
  <PayDate>sample string 1</PayDate>
  <PayMode>sample string 3</PayMode>
  <PayNotes>sample string 4</PayNotes>
  <TenID>5</TenID>
  <UID>7</UID>
</DBOperationsController.PaymentRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.