POST fruitsapi/restsaveorupdateorder?preFix={preFix}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| preFix | string |
Required |
Body Parameters
Collection of RestOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CompanyId | integer |
None. |
|
| BranchId | integer |
None. |
|
| PartyId | string |
None. |
|
| SalmanId | string |
None. |
|
| ProdId | integer |
None. |
|
| UserId | integer |
None. |
|
| Qty | decimal number |
None. |
|
| SelRate | decimal number |
None. |
|
| Amount | decimal number |
None. |
|
| Cancel | string |
None. |
|
| OrderReceived | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"CompanyId": 2,
"BranchId": 3,
"PartyId": "sample string 4",
"SalmanId": "sample string 5",
"ProdId": 6,
"UserId": 7,
"Qty": 8.0,
"SelRate": 9.0,
"Amount": 10.0,
"Cancel": "sample string 11",
"OrderReceived": "sample string 12"
},
{
"Id": 1,
"CompanyId": 2,
"BranchId": 3,
"PartyId": "sample string 4",
"SalmanId": "sample string 5",
"ProdId": 6,
"UserId": 7,
"Qty": 8.0,
"SelRate": 9.0,
"Amount": 10.0,
"Cancel": "sample string 11",
"OrderReceived": "sample string 12"
}
]
text/html
Sample:
[{"Id":1,"CompanyId":2,"BranchId":3,"PartyId":"sample string 4","SalmanId":"sample string 5","ProdId":6,"UserId":7,"Qty":8.0,"SelRate":9.0,"Amount":10.0,"Cancel":"sample string 11","OrderReceived":"sample string 12"},{"Id":1,"CompanyId":2,"BranchId":3,"PartyId":"sample string 4","SalmanId":"sample string 5","ProdId":6,"UserId":7,"Qty":8.0,"SelRate":9.0,"Amount":10.0,"Cancel":"sample string 11","OrderReceived":"sample string 12"}]
application/xml, text/xml
Sample:
<ArrayOfRestOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FruitsApi.Models">
<RestOrder>
<Amount>10</Amount>
<BranchId>3</BranchId>
<Cancel>sample string 11</Cancel>
<CompanyId>2</CompanyId>
<Id>1</Id>
<OrderReceived>sample string 12</OrderReceived>
<PartyId>sample string 4</PartyId>
<ProdId>6</ProdId>
<Qty>8</Qty>
<SalmanId>sample string 5</SalmanId>
<SelRate>9</SelRate>
<UserId>7</UserId>
</RestOrder>
<RestOrder>
<Amount>10</Amount>
<BranchId>3</BranchId>
<Cancel>sample string 11</Cancel>
<CompanyId>2</CompanyId>
<Id>1</Id>
<OrderReceived>sample string 12</OrderReceived>
<PartyId>sample string 4</PartyId>
<ProdId>6</ProdId>
<Qty>8</Qty>
<SalmanId>sample string 5</SalmanId>
<SelRate>9</SelRate>
<UserId>7</UserId>
</RestOrder>
</ArrayOfRestOrder>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.