POST api/Loan/AddLoan
Request Information
URI Parameters
None.
Body Parameters
ExpenseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| date | date |
None. |
|
| branch_id | integer |
None. |
|
| headofacc_id | integer |
None. |
|
| detail | string |
None. |
|
| amount | decimal number |
None. |
|
| branch_name | string |
None. |
|
| headofacc | string |
None. |
|
| debit_id | integer |
None. |
|
| credit_id | integer |
None. |
|
| id | integer |
None. |
|
| text | string |
None. |
|
| is_active | boolean |
None. |
|
| created_by | integer |
None. |
|
| created_date | date |
None. |
|
| updated_by | integer |
None. |
|
| updated_date | date |
None. |
|
| TotalRows | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"date": "2025-12-18T16:13:51.7019394+05:00",
"branch_id": 2,
"headofacc_id": 3,
"detail": "sample string 4",
"amount": 5.0,
"branch_name": "sample string 6",
"headofacc": "sample string 7",
"debit_id": 8,
"credit_id": 9,
"id": 10,
"text": "sample string 11",
"is_active": true,
"created_by": 13,
"created_date": "2025-12-18T16:13:51.7019394+05:00",
"updated_by": 15,
"updated_date": "2025-12-18T16:13:51.7019394+05:00",
"TotalRows": 17
}
application/xml, text/xml
Sample:
<ExpenseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OneLaundry.Models"> <TotalRows xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">17</TotalRows> <created_by xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">13</created_by> <created_date xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">2025-12-18T16:13:51.7019394+05:00</created_date> <id xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">10</id> <is_active xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">true</is_active> <text xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">sample string 11</text> <updated_by xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">15</updated_by> <updated_date xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">2025-12-18T16:13:51.7019394+05:00</updated_date> <amount>5</amount> <branch_id>2</branch_id> <branch_name>sample string 6</branch_name> <credit_id>9</credit_id> <date>2025-12-18T16:13:51.7019394+05:00</date> <debit_id>8</debit_id> <detail>sample string 4</detail> <headofacc>sample string 7</headofacc> <headofacc_id>3</headofacc_id> </ExpenseModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.