POST fruitsapi/saveorupdatesales?preFix={preFix}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| preFix | string |
Required |
Body Parameters
Collection of Sales| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CompanyId | integer |
None. |
|
| BranchId | integer |
None. |
|
| PartyId | string |
None. |
|
| ProdId | integer |
None. |
|
| UserId | integer |
None. |
|
| Qty | decimal number |
None. |
|
| Weight | decimal number |
None. |
|
| NetWeight | 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",
"ProdId": 5,
"UserId": 6,
"Qty": 7.0,
"Weight": 8.0,
"NetWeight": 9.0,
"SelRate": 10.0,
"Amount": 11.0,
"Cancel": "sample string 12",
"OrderReceived": "sample string 13"
},
{
"Id": 1,
"CompanyId": 2,
"BranchId": 3,
"PartyId": "sample string 4",
"ProdId": 5,
"UserId": 6,
"Qty": 7.0,
"Weight": 8.0,
"NetWeight": 9.0,
"SelRate": 10.0,
"Amount": 11.0,
"Cancel": "sample string 12",
"OrderReceived": "sample string 13"
}
]
text/html
Sample:
[{"Id":1,"CompanyId":2,"BranchId":3,"PartyId":"sample string 4","ProdId":5,"UserId":6,"Qty":7.0,"Weight":8.0,"NetWeight":9.0,"SelRate":10.0,"Amount":11.0,"Cancel":"sample string 12","OrderReceived":"sample string 13"},{"Id":1,"CompanyId":2,"BranchId":3,"PartyId":"sample string 4","ProdId":5,"UserId":6,"Qty":7.0,"Weight":8.0,"NetWeight":9.0,"SelRate":10.0,"Amount":11.0,"Cancel":"sample string 12","OrderReceived":"sample string 13"}]
application/xml, text/xml
Sample:
<ArrayOfSales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FruitsApi.Models">
<Sales>
<Amount>11</Amount>
<BranchId>3</BranchId>
<Cancel>sample string 12</Cancel>
<CompanyId>2</CompanyId>
<Id>1</Id>
<NetWeight>9</NetWeight>
<OrderReceived>sample string 13</OrderReceived>
<PartyId>sample string 4</PartyId>
<ProdId>5</ProdId>
<Qty>7</Qty>
<SelRate>10</SelRate>
<UserId>6</UserId>
<Weight>8</Weight>
</Sales>
<Sales>
<Amount>11</Amount>
<BranchId>3</BranchId>
<Cancel>sample string 12</Cancel>
<CompanyId>2</CompanyId>
<Id>1</Id>
<NetWeight>9</NetWeight>
<OrderReceived>sample string 13</OrderReceived>
<PartyId>sample string 4</PartyId>
<ProdId>5</ProdId>
<Qty>7</Qty>
<SelRate>10</SelRate>
<UserId>6</UserId>
<Weight>8</Weight>
</Sales>
</ArrayOfSales>
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.