POST api/Payments/Add

Request Information

URI Parameters

None.

Body Parameters

PaymentsModel
NameDescriptionTypeAdditional information
Id

integer

None.

Amount

decimal number

None.

Payment_Date

date

None.

PayMonth

integer

None.

Tenant_Id

integer

None.

Contract_Id

integer

None.

IsActive

boolean

Required

CreatedBy

string

Required

CreatedDate

date

Required

UpdatedBy

string

None.

UpdatedDate

date

None.

First_Name

string

None.

Last_Name

string

None.

Email

string

None.

Phone_Number

string

None.

Address

string

None.

Aadhar

string

None.

Start_Date

string

None.

End_Date

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Amount": 2.1,
  "Payment_Date": "2025-12-11T04:34:03.4659102+05:30",
  "PayMonth": 4,
  "Tenant_Id": 5,
  "Contract_Id": 6,
  "IsActive": true,
  "CreatedBy": "sample string 8",
  "CreatedDate": "2025-12-11T04:34:03.4659102+05:30",
  "UpdatedBy": "sample string 10",
  "UpdatedDate": "2025-12-11T04:34:03.4659102+05:30",
  "First_Name": "sample string 12",
  "Last_Name": "sample string 13",
  "Email": "sample string 14",
  "Phone_Number": "sample string 15",
  "Address": "sample string 16",
  "Aadhar": "sample string 17",
  "Start_Date": "sample string 18",
  "End_Date": "sample string 19"
}

application/xml, text/xml

Sample:
<PaymentsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PropertyRMS.Model">
  <Aadhar>sample string 17</Aadhar>
  <Address>sample string 16</Address>
  <Amount>2.1</Amount>
  <Contract_Id>6</Contract_Id>
  <CreatedBy>sample string 8</CreatedBy>
  <CreatedDate>2025-12-11T04:34:03.4659102+05:30</CreatedDate>
  <Email>sample string 14</Email>
  <End_Date>sample string 19</End_Date>
  <First_Name>sample string 12</First_Name>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Last_Name>sample string 13</Last_Name>
  <PayMonth>4</PayMonth>
  <Payment_Date>2025-12-11T04:34:03.4659102+05:30</Payment_Date>
  <Phone_Number>sample string 15</Phone_Number>
  <Start_Date>sample string 18</Start_Date>
  <Tenant_Id>5</Tenant_Id>
  <UpdatedBy>sample string 10</UpdatedBy>
  <UpdatedDate>2025-12-11T04:34:03.4659102+05:30</UpdatedDate>
</PaymentsModel>

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 'PaymentsModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.