POST api/VendorTrans/Add
Request Information
URI Parameters
None.
Body Parameters
VendorTransactionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| vendor_id | integer |
None. |
|
| branch_id | integer |
None. |
|
| name | string |
None. |
|
| preparedbyname | string |
None. |
|
| total | decimal number |
None. |
|
| transportation | decimal number |
None. |
|
| transdate | date |
None. |
|
| transaction_clothes | Collection of VendorTransactionClothModel |
None. |
|
| vendorName | string |
None. |
|
| branchName | string |
None. |
|
| transactionDate | string |
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:
{
"vendor_id": 1,
"branch_id": 2,
"name": "sample string 3",
"preparedbyname": "sample string 4",
"total": 5.0,
"transportation": 6.0,
"transdate": "2025-12-18T16:09:23.9918889+05:00",
"transaction_clothes": [
{
"id": 1,
"transaction_id": 2,
"cloth_id": 3,
"cloth_name": "sample string 4",
"service_id": 5,
"service_name": "sample string 6",
"amount": 7.0,
"qty": 8,
"receive_qty": 9,
"balance_qty": 10,
"total_amount": 11.0
},
{
"id": 1,
"transaction_id": 2,
"cloth_id": 3,
"cloth_name": "sample string 4",
"service_id": 5,
"service_name": "sample string 6",
"amount": 7.0,
"qty": 8,
"receive_qty": 9,
"balance_qty": 10,
"total_amount": 11.0
}
],
"vendorName": "sample string 8",
"branchName": "sample string 9",
"transactionDate": "sample string 10",
"id": 11,
"text": "sample string 12",
"is_active": true,
"created_by": 14,
"created_date": "2025-12-18T16:09:23.9928893+05:00",
"updated_by": 16,
"updated_date": "2025-12-18T16:09:23.9928893+05:00",
"TotalRows": 18
}
application/xml, text/xml
Sample:
<VendorTransactionModel 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">18</TotalRows>
<created_by xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">14</created_by>
<created_date xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">2025-12-18T16:09:23.9928893+05:00</created_date>
<id xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">11</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 12</text>
<updated_by xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">16</updated_by>
<updated_date xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">2025-12-18T16:09:23.9928893+05:00</updated_date>
<branchName>sample string 9</branchName>
<branch_id>2</branch_id>
<name>sample string 3</name>
<preparedbyname>sample string 4</preparedbyname>
<total>5</total>
<transactionDate>sample string 10</transactionDate>
<transaction_clothes>
<VendorTransactionClothModel>
<amount>7</amount>
<balance_qty>10</balance_qty>
<cloth_id>3</cloth_id>
<cloth_name>sample string 4</cloth_name>
<id>1</id>
<qty>8</qty>
<receive_qty>9</receive_qty>
<service_id>5</service_id>
<service_name>sample string 6</service_name>
<total_amount>11</total_amount>
<transaction_id>2</transaction_id>
</VendorTransactionClothModel>
<VendorTransactionClothModel>
<amount>7</amount>
<balance_qty>10</balance_qty>
<cloth_id>3</cloth_id>
<cloth_name>sample string 4</cloth_name>
<id>1</id>
<qty>8</qty>
<receive_qty>9</receive_qty>
<service_id>5</service_id>
<service_name>sample string 6</service_name>
<total_amount>11</total_amount>
<transaction_id>2</transaction_id>
</VendorTransactionClothModel>
</transaction_clothes>
<transdate>2025-12-18T16:09:23.9918889+05:00</transdate>
<transportation>6</transportation>
<vendorName>sample string 8</vendorName>
<vendor_id>1</vendor_id>
</VendorTransactionModel>
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.