POST api/payment/pay-bills

Request Information

URI Parameters

None.

Body Parameters

Payment
NameDescriptionTypeAdditional information
PId

integer

None.

PaymentDate

date

None.

BillReference

string

Required

ReceiptNo

string

None.

AdmissionNo

string

Required

School

string

None.

Session

string

None.

Term

string

None.

Class

string

None.

PaymentMode

string

None.

PaymentType

string

None.

DestinationAccount

string

None.

AmountPaid

decimal number

None.

IsReversed

boolean

None.

BillTotal

decimal number

None.

UnitDiscount

decimal number

None.

TotalDiscount

decimal number

None.

PreviousBalance

decimal number

None.

CurrentBalance

decimal number

None.

CollectedBy

string

None.

Details

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PId": 1,
  "PaymentDate": "2024-12-23T17:06:56.0154098+01:00",
  "BillReference": "sample string 2",
  "ReceiptNo": "sample string 3",
  "AdmissionNo": "sample string 4",
  "School": "sample string 5",
  "Session": "sample string 6",
  "Term": "sample string 7",
  "Class": "sample string 8",
  "PaymentMode": "sample string 9",
  "PaymentType": "sample string 10",
  "DestinationAccount": "sample string 11",
  "AmountPaid": 1.1,
  "IsReversed": true,
  "BillTotal": 1.1,
  "UnitDiscount": 1.1,
  "TotalDiscount": 1.1,
  "PreviousBalance": 1.1,
  "CurrentBalance": 1.1,
  "CollectedBy": "sample string 12",
  "Details": "sample string 13"
}

application/xml, text/xml

Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
  <AdmissionNo>sample string 4</AdmissionNo>
  <AmountPaid>1.1</AmountPaid>
  <BillReference>sample string 2</BillReference>
  <BillTotal>1.1</BillTotal>
  <Class>sample string 8</Class>
  <CollectedBy>sample string 12</CollectedBy>
  <CurrentBalance>1.1</CurrentBalance>
  <DestinationAccount>sample string 11</DestinationAccount>
  <Details>sample string 13</Details>
  <IsReversed>true</IsReversed>
  <PId>1</PId>
  <PaymentDate>2024-12-23T17:06:56.0154098+01:00</PaymentDate>
  <PaymentMode>sample string 9</PaymentMode>
  <PaymentType>sample string 10</PaymentType>
  <PreviousBalance>1.1</PreviousBalance>
  <ReceiptNo>sample string 3</ReceiptNo>
  <School>sample string 5</School>
  <Session>sample string 6</Session>
  <Term>sample string 7</Term>
  <TotalDiscount>1.1</TotalDiscount>
  <UnitDiscount>1.1</UnitDiscount>
</Payment>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Payment'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.